Get Cron Job Details
curl -X GET "https://api.a1base.com/v1/cron-jobs/{accountId}/details/550e8400-e29b-41d4-a716-446655440000" \
-H "X-API-Key: your-api-key" \
-H "X-API-Secret: your-api-secret"
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Daily Sales Report",
"description": "Generate comprehensive sales report for the previous day",
"endpoint_url": "https://api.company.com/reports/daily",
"schedule": "0 9 * * *",
"method": "POST",
"headers": {
"Authorization": "Bearer report-api-token",
"Content-Type": "application/json"
},
"body": "{\"report_type\": \"sales\", \"format\": \"pdf\"}",
"is_active": true,
"timezone": "America/New_York",
"repeat_type": "days",
"repeat_every": 1,
"days_of_week": null,
"hours": 9,
"minutes": 0,
"end_type": "never",
"end_date": null,
"end_occurrences": null,
"max_retries": 3,
"retry_delay_seconds": 300,
"timeout_seconds": 30,
"success_callback_url": "https://api.company.com/webhooks/report-success",
"failure_callback_url": "https://api.company.com/webhooks/report-failure",
"tags": ["reports", "daily", "sales"],
"next_run_at": "2024-01-26T14:00:00Z",
"last_run_at": "2024-01-25T14:00:00Z",
"consecutive_failures": 0,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-20T10:30:00Z"
}
}
Get comprehensive details about a specific cron job including full configuration and execution history.
Path Parameters
Your A1Base account ID
The unique identifier of the cron job (UUID format)
Response
Detailed cron job information
Unique identifier for the cron job
Name of the cron job
Description of what the cron job does
The URL that will be called when the cron job executes
Cron expression representing the schedule
HTTP method used for the request (GET, POST, PUT, DELETE)
HTTP headers to include with each request
Request body for POST/PUT methods
Whether the cron job is currently active
Timezone for the cron job execution
Type of repetition: hourly, days, weeks, months, years
Frequency of repetition (e.g., every 2 days)
Array of day numbers (0-6) for weekly schedules
Hour component of the scheduled time (0-23)
Minute component of the scheduled time (0-59)
How the schedule ends: never, on, after
ISO 8601 timestamp when the schedule ends (if end_type is “on”)
Number of occurrences before ending (if end_type is “after”)
Maximum number of retry attempts on failure
Seconds to wait between retry attempts
Maximum seconds to wait for endpoint response
Webhook URL to call on successful execution
Webhook URL to call on failed execution
Array of tags for organization
ISO 8601 timestamp of the next scheduled execution
ISO 8601 timestamp of the last execution
Number of consecutive failed executions
ISO 8601 timestamp of when the cron job was created
ISO 8601 timestamp of the last update
curl -X GET "https://api.a1base.com/v1/cron-jobs/{accountId}/details/550e8400-e29b-41d4-a716-446655440000" \
-H "X-API-Key: your-api-key" \
-H "X-API-Secret: your-api-secret"
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Daily Sales Report",
"description": "Generate comprehensive sales report for the previous day",
"endpoint_url": "https://api.company.com/reports/daily",
"schedule": "0 9 * * *",
"method": "POST",
"headers": {
"Authorization": "Bearer report-api-token",
"Content-Type": "application/json"
},
"body": "{\"report_type\": \"sales\", \"format\": \"pdf\"}",
"is_active": true,
"timezone": "America/New_York",
"repeat_type": "days",
"repeat_every": 1,
"days_of_week": null,
"hours": 9,
"minutes": 0,
"end_type": "never",
"end_date": null,
"end_occurrences": null,
"max_retries": 3,
"retry_delay_seconds": 300,
"timeout_seconds": 30,
"success_callback_url": "https://api.company.com/webhooks/report-success",
"failure_callback_url": "https://api.company.com/webhooks/report-failure",
"tags": ["reports", "daily", "sales"],
"next_run_at": "2024-01-26T14:00:00Z",
"last_run_at": "2024-01-25T14:00:00Z",
"consecutive_failures": 0,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-20T10:30:00Z"
}
}
curl -X GET "https://api.a1base.com/v1/cron-jobs/{accountId}/details/550e8400-e29b-41d4-a716-446655440000" \
-H "X-API-Key: your-api-key" \
-H "X-API-Secret: your-api-secret"
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Daily Sales Report",
"description": "Generate comprehensive sales report for the previous day",
"endpoint_url": "https://api.company.com/reports/daily",
"schedule": "0 9 * * *",
"method": "POST",
"headers": {
"Authorization": "Bearer report-api-token",
"Content-Type": "application/json"
},
"body": "{\"report_type\": \"sales\", \"format\": \"pdf\"}",
"is_active": true,
"timezone": "America/New_York",
"repeat_type": "days",
"repeat_every": 1,
"days_of_week": null,
"hours": 9,
"minutes": 0,
"end_type": "never",
"end_date": null,
"end_occurrences": null,
"max_retries": 3,
"retry_delay_seconds": 300,
"timeout_seconds": 30,
"success_callback_url": "https://api.company.com/webhooks/report-success",
"failure_callback_url": "https://api.company.com/webhooks/report-failure",
"tags": ["reports", "daily", "sales"],
"next_run_at": "2024-01-26T14:00:00Z",
"last_run_at": "2024-01-25T14:00:00Z",
"consecutive_failures": 0,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-20T10:30:00Z"
}
}