Skip to content
Navigation

Create a schedule

POST
/v1/schedules

Create a recurring job with a UTC cadence preset. Daily and weekdays run at 09:00 UTC, and weekly runs on Mondays at 09:00 UTC. The Wait Until and Wait for Reply starters are available for one-off submissions.

Authorization

  • bearerAuth
    optional
    HTTP Bearer

    Authorization: Bearer <token>

  • browserSession
    optional
    API key in cookie
  • localBrowserSession
    optional
    API key in cookie

Request body JSON required

  • name
    string
    required
    maxLength: 100 · minLength: 1
  • task
    string
    required
    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
  • payload
    object
    required
  • preset
    every-minute
    or
    hourly
    or
    daily
    or
    weekdays
    or
    weekly
    required
  • maxAttempts
    optional
    integer

    Defaults to the task's maximum attempts.

    maximum: 5 · minimum: 1

Returns

201

Created schedule

JSON
  • schedule
    object
    required
    • id
      string
      required
    • name
      string
      required
      maxLength: 100 · minLength: 1
    • task
      string
      required
      maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
    • payload
      object
      required
    • preset
      every-minute
      or
      hourly
      or
      daily
      or
      weekdays
      or
      weekly
      required
    • enabled
      boolean
      required
    • maxAttempts
      optional
      integer
      maximum: 5 · minimum: 1 · default: 3
    • nextRunAt
      optional

      Any of the following:

      • string
      • null
    • timezone
      optional
      string

400

Invalid input
JSON
  • error
    string
    required

401

Authentication is required
JSON
  • error
    string
    required

403

The credential lacks permission
JSON
  • error
    string
    required

404

Task not found in this environment
JSON
  • error
    string
    required

429

Schedule limit reached
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close