List Cron Jobs
curl -X GET "https://api.a1base.com/v1/cron-jobs/{accountId}/list?page=1&limit=20&is_active=true&tags=reports,daily" \
-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",
"endpoint_url": "https://api.company.com/reports/daily",
"schedule": "0 9 * * *",
"method": "POST",
"is_active": true,
"timezone": "America/New_York",
"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-25T14:00:00Z"
},
{
"id": "660f9500-f38c-52e5-b827-557766551111",
"name": "Weekly Summary",
"endpoint_url": "https://api.company.com/reports/weekly",
"schedule": "0 8 * * 1",
"method": "GET",
"is_active": true,
"timezone": "UTC",
"next_run_at": "2024-01-29T08:00:00Z",
"last_run_at": "2024-01-22T08:00:00Z",
"consecutive_failures": 0,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-22T08:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total_items": 2,
"total_pages": 1
}
}
List all cron jobs for your company with optional filtering and pagination.
Query Parameters
Page number for pagination (minimum: 1)
Number of items per page (minimum: 1, maximum: 100)
Filter by active status. Set to true
to show only active jobs, false
for inactive jobs only.
Comma-separated list of tags to filter by. Jobs matching any of the specified tags will be returned.
Example: tags=reports,daily
Response
Array of cron job objects
Unique identifier for the cron job
Name of the cron job
The URL that will be called when the cron job executes
Cron expression representing the schedule
HTTP method used for the request
Whether the cron job is currently active
Timezone for the cron job execution
ISO 8601 timestamp of the next scheduled execution
ISO 8601 timestamp of the last execution (null if never run)
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}/list?page=1&limit=20&is_active=true&tags=reports,daily" \
-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",
"endpoint_url": "https://api.company.com/reports/daily",
"schedule": "0 9 * * *",
"method": "POST",
"is_active": true,
"timezone": "America/New_York",
"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-25T14:00:00Z"
},
{
"id": "660f9500-f38c-52e5-b827-557766551111",
"name": "Weekly Summary",
"endpoint_url": "https://api.company.com/reports/weekly",
"schedule": "0 8 * * 1",
"method": "GET",
"is_active": true,
"timezone": "UTC",
"next_run_at": "2024-01-29T08:00:00Z",
"last_run_at": "2024-01-22T08:00:00Z",
"consecutive_failures": 0,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-22T08:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total_items": 2,
"total_pages": 1
}
}
curl -X GET "https://api.a1base.com/v1/cron-jobs/{accountId}/list?page=1&limit=20&is_active=true&tags=reports,daily" \
-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",
"endpoint_url": "https://api.company.com/reports/daily",
"schedule": "0 9 * * *",
"method": "POST",
"is_active": true,
"timezone": "America/New_York",
"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-25T14:00:00Z"
},
{
"id": "660f9500-f38c-52e5-b827-557766551111",
"name": "Weekly Summary",
"endpoint_url": "https://api.company.com/reports/weekly",
"schedule": "0 8 * * 1",
"method": "GET",
"is_active": true,
"timezone": "UTC",
"next_run_at": "2024-01-29T08:00:00Z",
"last_run_at": "2024-01-22T08:00:00Z",
"consecutive_failures": 0,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-22T08:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total_items": 2,
"total_pages": 1
}
}