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
}
}
true
to show only active jobs, false
for inactive jobs only.tags=reports,daily
Show Cron Job Object
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
}
}