GET
/
v2
/
schedules
curl https://qstash.upstash.io/v2/schedules \
  -H "Authorization: Bearer <token>"
[
  {
    "scheduleId": "scd_1234",
    "createdAt": 1623345678001,
    "cron": "0 0 1 * *",
    "destination": "https://example.com",
    "method": "POST",
    "header": {
      "Content-Type": ["application/json"]
    },
    "body": "{\"message\":\"hello\"}",
    "retries": 3
  }
]

Response

createdAt
int
required
The creation time of the object. UnixMilli
id
string
required
The id of the schedule.
cron
string
required
The cron expression used to schedule the message.
destination
string
required
Url or topic name
method
string
required
The HTTP method to use for the message.
header
Record<string, string[]>
required
The headers of the message.
body
string
required
The body of the message.
retries
int
The number of retries that should be attempted in case of delivery failure.
delay
int
The delay in seconds before the message is delivered.
callback
string
The url where we send a callback to after the message is delivered
curl https://qstash.upstash.io/v2/schedules \
  -H "Authorization: Bearer <token>"
[
  {
    "scheduleId": "scd_1234",
    "createdAt": 1623345678001,
    "cron": "0 0 1 * *",
    "destination": "https://example.com",
    "method": "POST",
    "header": {
      "Content-Type": ["application/json"]
    },
    "body": "{\"message\":\"hello\"}",
    "retries": 3
  }
]