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
integer
default:"1"

Page number for pagination (minimum: 1)

limit
integer
default:"50"

Number of items per page (minimum: 1, maximum: 100)

is_active
boolean

Filter by active status. Set to true to show only active jobs, false for inactive jobs only.

tags
string

Comma-separated list of tags to filter by. Jobs matching any of the specified tags will be returned.

Example: tags=reports,daily

Response

data
array

Array of cron job objects

pagination
object

Pagination information

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
  }
}