Schedules
List Schedules
This endpoint returns a list of all schedules.
curl -XGET https://qstash.upstash.io/v1/schedules \
-H "Authorization: Bearer <token>"
[
{
"scheduleId": "scd_5mA1sL5RX6YphLfBnRTtiYPzZ8pt",
"cron": "0 * * * *",
"createdAt": 1691245856333,
"content": {
"header": {
"Content-Type": ["application/json"]
},
"body": "{\"message\":\"hello\"}"
},
"destination": {
"topic": {
"topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA",
"name": "test",
"endpoints": [
{
"endpointId": "ept_6j7BNZus3ZyPy6P7QtLUMCC3Rq7h",
"url": "https://www.example.com",
"topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA"
}
],
"type": "url",
"url": "https://www.example.com"
},
"settings": {
"retries": 3
}
}
]
Response
Schedules
Array<Schedule>
requiredWas this page helpful?
curl -XGET https://qstash.upstash.io/v1/schedules \
-H "Authorization: Bearer <token>"
[
{
"scheduleId": "scd_5mA1sL5RX6YphLfBnRTtiYPzZ8pt",
"cron": "0 * * * *",
"createdAt": 1691245856333,
"content": {
"header": {
"Content-Type": ["application/json"]
},
"body": "{\"message\":\"hello\"}"
},
"destination": {
"topic": {
"topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA",
"name": "test",
"endpoints": [
{
"endpointId": "ept_6j7BNZus3ZyPy6P7QtLUMCC3Rq7h",
"url": "https://www.example.com",
"topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA"
}
],
"type": "url",
"url": "https://www.example.com"
},
"settings": {
"retries": 3
}
}
]