curl -X GET "https://qstash.upstash.io/v1/messages/msg_123/tasks" \
-H "Authorization: Bearer <token>"
{
"cursor": 1678901234567,
"tasks": [
{
"completedAt": 1678901123456,
"error": "",
"lastErrorAt": 0,
"maxRetry": 3,
"messageId": "abc123",
"nextProcessAt": 1678902000000,
"retried": 2,
"state": "processing",
"taskId": "task001",
"url": "https://example.com/task001"
},
{
"completedAt": 1678900876543,
"error": "Connection timeout",
"lastErrorAt": 1678901800000,
"maxRetry": 5,
"messageId": "def456",
"nextProcessAt": 1678902100000,
"retried": 4,
"state": "retrying",
"taskId": "task002",
"url": "https://example.com/task002"
}
]
}
This endpoint returns the last 100 tasks in descending chronological order.
Use the cursor parameter to paginate.
curl -X GET "https://qstash.upstash.io/v1/messages/msg_123/tasks" \
-H "Authorization: Bearer <token>"
{
"cursor": 1678901234567,
"tasks": [
{
"completedAt": 1678901123456,
"error": "",
"lastErrorAt": 0,
"maxRetry": 3,
"messageId": "abc123",
"nextProcessAt": 1678902000000,
"retried": 2,
"state": "processing",
"taskId": "task001",
"url": "https://example.com/task001"
},
{
"completedAt": 1678900876543,
"error": "Connection timeout",
"lastErrorAt": 1678901800000,
"maxRetry": 5,
"messageId": "def456",
"nextProcessAt": 1678902100000,
"retried": 4,
"state": "retrying",
"taskId": "task002",
"url": "https://example.com/task002"
}
]
}
Show Task
curl -X GET "https://qstash.upstash.io/v1/messages/msg_123/tasks" \
-H "Authorization: Bearer <token>"
{
"cursor": 1678901234567,
"tasks": [
{
"completedAt": 1678901123456,
"error": "",
"lastErrorAt": 0,
"maxRetry": 3,
"messageId": "abc123",
"nextProcessAt": 1678902000000,
"retried": 2,
"state": "processing",
"taskId": "task001",
"url": "https://example.com/task001"
},
{
"completedAt": 1678900876543,
"error": "Connection timeout",
"lastErrorAt": 1678901800000,
"maxRetry": 5,
"messageId": "def456",
"nextProcessAt": 1678902100000,
"retried": 4,
"state": "retrying",
"taskId": "task002",
"url": "https://example.com/task002"
}
]
}
Was this page helpful?