Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
API reference for managing scheduled tasks
Authorization: Bearer YOUR_API_KEY
https://api.a1base.com/v1
POST /cron-jobs
endpoint_url
frequency
time
timezone
method
headers
body
day_of_week
day_of_month
custom_schedule
{ "endpoint_url": "https://api.example.com/webhook", "frequency": "daily", "time": "09:00", "timezone": "America/New_York", "method": "POST", "headers": { "Authorization": "Bearer token123", "Content-Type": "application/json" }, "body": { "action": "daily_update", "params": { "user_id": "all" } } }
{ "id": "crn_123456789", "endpoint_url": "https://api.example.com/webhook", "frequency": "daily", "time": "09:00", "timezone": "America/New_York", "method": "POST", "headers": { "Authorization": "Bearer token123", "Content-Type": "application/json" }, "body": { "action": "daily_update", "params": { "user_id": "all" } }, "status": "active", "created_at": "2023-05-20T15:30:45Z", "next_execution": "2023-05-21T09:00:00-04:00" }
GET /cron-jobs
status
limit
offset
{ "data": [ { "id": "crn_123456789", "endpoint_url": "https://api.example.com/webhook", "frequency": "daily", "time": "09:00", "timezone": "America/New_York", "method": "POST", "status": "active", "created_at": "2023-05-20T15:30:45Z", "next_execution": "2023-05-21T09:00:00-04:00" }, { "id": "crn_987654321", "endpoint_url": "https://api.example.com/weekly-report", "frequency": "weekly", "time": "07:00", "day_of_week": 1, "timezone": "America/Los_Angeles", "method": "GET", "status": "paused", "created_at": "2023-05-15T10:20:30Z", "next_execution": null } ], "meta": { "total": 2, "limit": 20, "offset": 0 } }
GET /cron-jobs/{id}
id
{ "id": "crn_123456789", "endpoint_url": "https://api.example.com/webhook", "frequency": "daily", "time": "09:00", "timezone": "America/New_York", "method": "POST", "headers": { "Authorization": "Bearer token123", "Content-Type": "application/json" }, "body": { "action": "daily_update", "params": { "user_id": "all" } }, "status": "active", "created_at": "2023-05-20T15:30:45Z", "next_execution": "2023-05-21T09:00:00-04:00", "last_execution": { "timestamp": "2023-05-20T09:00:00-04:00", "status": "success", "response_code": 200, "response_time_ms": 245 } }
PATCH /cron-jobs/{id}
{ "time": "10:30", "headers": { "Authorization": "Bearer new_token456", "Content-Type": "application/json" } }
{ "id": "crn_123456789", "endpoint_url": "https://api.example.com/webhook", "frequency": "daily", "time": "10:30", "timezone": "America/New_York", "method": "POST", "headers": { "Authorization": "Bearer new_token456", "Content-Type": "application/json" }, "body": { "action": "daily_update", "params": { "user_id": "all" } }, "status": "active", "created_at": "2023-05-20T15:30:45Z", "updated_at": "2023-05-20T16:45:12Z", "next_execution": "2023-05-21T10:30:00-04:00" }
POST /cron-jobs/{id}/pause
{ "id": "crn_123456789", "status": "paused", "next_execution": null }
POST /cron-jobs/{id}/resume
{ "id": "crn_123456789", "status": "active", "next_execution": "2023-05-21T10:30:00-04:00" }
DELETE /cron-jobs/{id}
{ "id": "crn_123456789", "deleted": true }
GET /cron-jobs/{id}/executions
{ "data": [ { "id": "exe_987654321", "cron_job_id": "crn_123456789", "timestamp": "2023-05-20T09:00:00-04:00", "status": "success", "response_code": 200, "response_time_ms": 245, "response_body": { "status": "processed", "message": "Daily update successfully triggered" } }, { "id": "exe_876543210", "cron_job_id": "crn_123456789", "timestamp": "2023-05-19T09:00:00-04:00", "status": "failed", "response_code": 500, "response_time_ms": 1245, "error": "Internal server error at destination" } ], "meta": { "total": 2, "limit": 20, "offset": 0 } }
{ "error": { "code": "validation_error", "message": "Invalid frequency value", "details": { "frequency": ["Must be one of: daily, weekly, monthly, custom"] } } }