Retrieve sync logs across all automations in an organization. Monitor repository synchronization health organization-wide. ## Path Parameters **`organization_id`** string required Organization ID (org_ prefixed) ## Query Parameters **`limit`** integer optional Number of logs per page (1-200, default: 100) **`offset`** integer optional Pagination offset (default: 0) **`status`** string optional Filter by status: `success`, `error`, `warning` ## Returns Returns an array of sync log objects from all automations in the organization. Request ```bash cURL curl -X GET "https://api.aitronos.com/api/v1/streamline/organizations/org_xyz789/sync-logs?status=error&limit=50" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] organization_id = "org_xyz789" response = requests.get( f"https://api.aitronos.com/api/v1/streamline/organizations/{organization_id}/sync-logs", headers={"X-API-Key": api_key}, params={"status": "error", "limit": 50} ) logs = response.json() print(f"Found {len(logs)} error logs across organization") ``` ```javascript JavaScript const apiKey = process.env.FREDDY_API_KEY; const organizationId = "org_xyz789"; const response = await fetch( `https://api.aitronos.com/api/v1/streamline/organizations/${organizationId}/sync-logs?status=error&limit=50`, { headers: { "X-API-Key": apiKey } } ); const logs = await response.json(); console.log(`Found ${logs.length} error logs across organization`); ``` Response ```json 200 OK [ { "id": "rslog_jkl012", "automation_id": "sauto_abc123", "organization_id": "org_xyz789", "sync_type": "manual", "status": "error", "event_type": "validation", "commit_sha": null, "error_code": "INVALID_CREDENTIALS", "error_message": "GitHub credentials are invalid or expired", "details": null, "duration_ms": 320, "created_at": "2025-11-28T11:00:00Z" } ] ``` ```json 403 Forbidden { "success": false, "error": { "code": "FORBIDDEN", "message": "Not a member of the organization", "status": 403 } } ```