title: Get Sync Jobs keywords: - get sync jobs - get - sync - jobs # Get Sync Jobs Get Git sync history for an automation. #### Path Parameters **`automation_id`** string required The automation id parameter. #### Query Parameters **`limit`** integer optional ยท Defaults to `20` The limit parameter. ## Returns **`sync_jobs`** array of object Sync Jobs Example ```bash cURL curl -X GET "https://api.aitronos.com/v1/streamline/automations/{automation_id}/syncs" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] response = requests.get( "https://api.aitronos.com/v1/streamline/automations/{automation_id}/syncs", headers={"X-API-Key": api_key} ) print(response.json()) ``` ```javascript JavaScript const apiKey = process.env.FREDDY_API_KEY; const response = await fetch('https://api.aitronos.com/v1/streamline/automations/{automation_id}/syncs', { method: 'GET', headers: { 'X-API-Key': apiKey } }); const data = await response.json(); console.log(data); ``` **Response:** ```json 200 OK { "sync_jobs": [ { "id": "abc123def456", "automation_id": "abc123def456", "status": "active", "commit_sha_before": "example_commit_sha_before", "commit_sha_after": "example_commit_sha_after", "changes_detected": false, "error_message": "example_error_message", "synced_at": "2025-11-15T10:30:00Z", "created_at": "2025-11-15T10:30:00Z" } ] } ``` Errors ```json 401 Unauthorized { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "Authentication required. Please provide a valid API key.", "system_message": "Missing or invalid authorization header", "type": "authentication_error", "status": 401, "trace_id": "req_abc123xyz", "timestamp": "2025-11-11T10:30:00Z", "details": {} } } ``` ```json 403 Forbidden { "success": false, "error": { "code": "INSUFFICIENT_PERMISSIONS", "message": "You do not have permission to access this resource.", "system_message": "Insufficient permissions for this operation", "type": "authorization_error", "status": 403, "trace_id": "req_def456uvw", "timestamp": "2025-11-11T10:30:00Z", "details": {} } } ``` ## Related Resources - [List Automations](/docs/api-reference/streamline/automations-list)