curl -X GET "https://api.a1base.com/v1/cron-jobs/{accountId}/logs/550e8400-e29b-41d4-a716-446655440000?page=1&limit=20&status=failure" \ -H "X-API-Key: your-api-key" \ -H "X-API-Secret: your-api-secret"
{ "data": [ { "id": "exe_123456789", "cron_job_id": "550e8400-e29b-41d4-a716-446655440000", "executed_at": "2024-01-25T14:00:00Z", "status": "success", "response_code": 200, "response_body": "{\"message\": \"Report generated successfully\"}", "error_message": null }, { "id": "exe_987654321", "cron_job_id": "550e8400-e29b-41d4-a716-446655440000", "executed_at": "2024-01-24T14:00:05Z", "status": "failure", "response_code": 500, "response_body": "{\"error\": \"Database connection failed\"}", "error_message": "Endpoint returned status code 500" }, { "id": "exe_456789123", "cron_job_id": "550e8400-e29b-41d4-a716-446655440000", "executed_at": "2024-01-23T14:00:00Z", "status": "timeout", "response_code": null, "response_body": null, "error_message": "Request timed out after 30 seconds" } ], "pagination": { "page": 1, "limit": 20, "total_items": 3, "total_pages": 1 } }
success
failure
error
timeout
2024-01-01T00:00:00Z
2024-01-31T23:59:59Z
Show Execution Log Object
Show Pagination Object
Find Recent Failures
GET /v1/cron-jobs/{accountId}/logs/{cron_job_id}?status=failure&limit=10
Daily Success Rate
GET /v1/cron-jobs/{accountId}/logs/{cron_job_id}?start_date=2024-01-25T00:00:00Z&end_date=2024-01-25T23:59:59Z
Timeout Issues
GET /v1/cron-jobs/{accountId}/logs/{cron_job_id}?status=timeout
Error Patterns
GET /v1/cron-jobs/{accountId}/logs/{cron_job_id}?status=error&limit=50