Get up and running with A1Cron in minutes
curl -X POST https://api.a1base.com/v1/cron-jobs/{accountId}/create \ -H "X-API-Key: your-api-key" \ -H "X-API-Secret: your-api-secret" \ -H "Content-Type: application/json" \ -d '{ "name": "Daily Morning Report", "description": "Generate daily sales report", "endpoint_url": "https://your-app.com/api/daily-report", "method": "POST", "headers": { "Authorization": "Bearer your-token", "Content-Type": "application/json" }, "body": "{\"report_type\": \"daily\", \"format\": \"pdf\"}", "timezone": "America/New_York", "schedule_config": { "repeat_type": "days", "repeat_every": 1, "time": "09:00", "end_type": "never" }, "retry_config": { "max_retries": 3, "retry_delay_seconds": 300, "timeout_seconds": 30 }, "tags": ["reports", "daily"], "is_active": true }'
{ "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Daily Morning Report", "description": "Generate daily sales report", "endpoint_url": "https://your-app.com/api/daily-report", "schedule": "0 9 * * *", "method": "POST", "is_active": true, "timezone": "America/New_York", "next_run_at": "2024-01-26T14:00:00Z", "created_at": "2024-01-25T10:30:00Z" } }
id
curl -X GET https://api.a1base.com/v1/cron-jobs/{accountId}/details/{cron_job_id} \ -H "X-API-Key: your-api-key" \ -H "X-API-Secret: your-api-secret"
curl -X POST https://api.a1base.com/v1/cron-jobs/{accountId}/trigger/{cron_job_id} \ -H "X-API-Key: your-api-key" \ -H "X-API-Secret: your-api-secret"
{ "data": { "execution_id": "exe_123456", "status": "success", "response_code": 200, "response_body": "{\"message\": \"Report generated successfully\"}", "executed_at": "2024-01-25T10:35:00Z" } }
curl -X GET "https://api.a1base.com/v1/cron-jobs/{accountId}/logs/{cron_job_id}?limit=10" \ -H "X-API-Key: your-api-key" \ -H "X-API-Secret: your-api-secret"
{ "name": "API Health Check", "endpoint_url": "https://your-api.com/health", "method": "GET", "timezone": "UTC", "schedule_config": { "repeat_type": "hourly", "repeat_every": 1, "time": "00:00" }, "callbacks": { "failure_url": "https://your-app.com/alerts/health-check-failed" } }
{ "name": "Weekday Summary", "endpoint_url": "https://your-app.com/api/summary", "method": "POST", "timezone": "America/Chicago", "schedule_config": { "repeat_type": "weeks", "repeat_every": 1, "time": "17:00", "days_of_week": ["1", "2", "3", "4", "5"] } }
{ "name": "30-Day Campaign", "endpoint_url": "https://your-app.com/api/campaign", "method": "POST", "timezone": "America/Los_Angeles", "schedule_config": { "repeat_type": "days", "repeat_every": 1, "time": "10:00", "end_type": "after", "end_occurrences": 30 } }
My cron job isn't running
is_active
true
Getting authentication errors
Endpoint timeouts
timeout_seconds