Get Execution Logs
Retrieve the execution history and logs for a specific cron job. This endpoint provides detailed information about past executions, including success/failure status, response codes, and error messages.
Path Parameters
Your A1Base account ID
The unique identifier of the cron job (UUID format)
Query Parameters
Page number for pagination (minimum: 1)
Number of items per page (minimum: 1, maximum: 100)
Filter by execution status: success
, failure
, error
, timeout
Filter logs after this date (ISO 8601 format)
Example: 2024-01-01T00:00:00Z
Filter logs before this date (ISO 8601 format)
Example: 2024-01-31T23:59:59Z
Response
Array of execution log objects
Pagination information
Log Analysis Examples
Understanding Status Codes
The endpoint returned a 2xx status code
The endpoint returned a 4xx or 5xx status code
Network error or invalid endpoint URL
The request exceeded the configured timeout
Best Practices
- Regular Monitoring: Check logs daily for critical jobs
- Set Up Alerts: Use failure callbacks to get notified immediately
- Analyze Patterns: Look for time-based failure patterns
- Export Important Logs: Download logs before they expire
- Calculate Metrics: Track success rates and response times
Log Retention
Execution logs are retained for 30 days. Export important logs if you need longer retention.