GET
/
v1
/
schedules
/
{scheduleId}
curl -XGET https://qstash.upstash.io/v1/schedules/scd_1234 \
  -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
    }
  }
}

Request

scheduleId
string
required
The unique id of the schedule.

Response

content
Content
required
createdAt
int
Unix timestamp with millisecond precision when the schedule was created.
cron
string
required
The cron expression.
destination
Destination
required
Destination of the schedule. The destination can either be a URL or a topic. Check the type field first to determine which one it is.
scheduleId
string
required
The unique id of the schedule
settings
Settings
curl -XGET https://qstash.upstash.io/v1/schedules/scd_1234 \
  -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
    }
  }
}