GET
/
v2
/
dlq
curl https://qstash.upstash.io/v2/dlq \
  -H "Authorization: Bearer <token>"
{ 
  "messages": [
    {
      "messageId": "msg_123",
      "topicId": "tpc_123",
      "url":"https://example.com",
      "method": "POST",
      "header": {
        "My-Header": ["my-value"]
      },
      "body": "{\"foo\":\"bar\"}",
      "createdAt": 1620000000000,
      "state": "failed"
    }
  ]
}
List all messages currently inside the DLQ

Request

cursor
string
By providing a cursor you can paginate through all of the messages in the DLQ
messageId
string
Filter DLQ messages by message id.
url
string
Filter DLQ messages by url.
topicName
string
Filter DLQ messages by url group.
scheduleId
string
Filter DLQ messages by schedule id.
queueName
string
Filter DLQ messages by queue name.
api
string
Filter DLQ messages by API name.
fromDate
number
Filter DLQ messages by starting date, in milliseconds (Unix timestamp). This is inclusive.
toDate
number
Filter DLQ messages by ending date, in milliseconds (Unix timestamp). This is inclusive.
responseStatus
number
Filter DLQ messages by HTTP response status code.
callerIp
string
Filter DLQ messages by IP address of the publisher.
count
number
The number of messages to return. Default and maximum is 100.
order
string
The sorting order of DLQ messages by timestamp. Valid values are “earliestFirst” and “latestFirst”. The default is “earliestFirst”.

Response

cursor
string
A cursor which you can use in subsequent requests to paginate through all messages. If no cursor is returned, you have reached the end of the messages.
messages
Array
curl https://qstash.upstash.io/v2/dlq \
  -H "Authorization: Bearer <token>"
{ 
  "messages": [
    {
      "messageId": "msg_123",
      "topicId": "tpc_123",
      "url":"https://example.com",
      "method": "POST",
      "header": {
        "My-Header": ["my-value"]
      },
      "body": "{\"foo\":\"bar\"}",
      "createdAt": 1620000000000,
      "state": "failed"
    }
  ]
}