Skip to main content
POST
/
schedules
Create Schedule
curl --request POST \
  --url https://api.example.com/schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "cron_expr": "<string>",
  "endpoint": "<string>",
  "method": "POST",
  "description": "<string>",
  "payload": {},
  "timezone": "UTC",
  "timeout_seconds": 3600,
  "max_retries": 0,
  "retry_delay_seconds": 60
}
'
{
  "id": "<string>",
  "name": "<string>",
  "method": "<string>",
  "endpoint": "<string>",
  "cron_expr": "<string>",
  "timezone": "<string>",
  "timeout_seconds": 123,
  "max_retries": 123,
  "retry_delay_seconds": 123,
  "enabled": true,
  "description": "<string>",
  "payload": {},
  "next_run_at": 123,
  "created_at": 123,
  "updated_at": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Maximum string length: 255
cron_expr
string
required
Maximum string length: 128
endpoint
string
required
Maximum string length: 512
method
string
default:POST
Maximum string length: 10
description
string | null
Maximum string length: 1024
payload
Payload · object
timezone
string
default:UTC
Maximum string length: 64
timeout_seconds
integer
default:3600
Required range: 1 <= x <= 86400
max_retries
integer
default:0
Required range: 0 <= x <= 10
retry_delay_seconds
integer
default:60
Required range: 1 <= x <= 3600

Response

Successful Response

id
string
required
name
string
required
method
string
required
endpoint
string
required
cron_expr
string
required
timezone
string
required
timeout_seconds
integer
required
max_retries
integer
required
retry_delay_seconds
integer
required
enabled
boolean
required
description
string | null
payload
Payload · object
next_run_at
integer | null
created_at
integer | null
updated_at
integer | null