GET
/
v2
/
logs
curl https://qstash.upstash.io/v2/logs \
  -H "Authorization: Bearer <token>"
{
  "cursor": "1686652644442-12",
  "events":[
    {
      "time": "1686652644442",
      "messageId": "msg_123",
      "state": "delivered",
      "url": "https://example.com",
      "header": { "Content-Type": [ "application/x-www-form-urlencoded" ] },
      "body": "bWVyaGFiYSBiZW5pbSBhZGltIHNhbmNhcg=="
    }
  ] 
}

Request

cursor
string

By providing a cursor you can paginate through all of the logs.

messageId
string

Filter logs by message id.

state
string

Filter logs by state

url
string

Filter logs by url.

topicName
string

Filter logs by URL Group (topic) name.

scheduleId
string

Filter logs by schedule id.

queueName
string

Filter logs by queue name.

fromDate
number

Filter logs by starting date, in milliseconds (Unix timestamp). This is inclusive.

toDate
number

Filter logs by ending date, in milliseconds (Unix timestamp). This is inclusive.

count
number

The number of logs to return. Default and max is 1000.

order
string

The sorting order of logs by timestamp. Valid values are “earliestFirst” and “latestFirst”. The default is “latestFirst”.

Response

cursor
string

A cursor which you can use in subsequent requests to paginate through all logs. If no cursor is returned, you have reached the end of the logs.

events
Array
curl https://qstash.upstash.io/v2/logs \
  -H "Authorization: Bearer <token>"
{
  "cursor": "1686652644442-12",
  "events":[
    {
      "time": "1686652644442",
      "messageId": "msg_123",
      "state": "delivered",
      "url": "https://example.com",
      "header": { "Content-Type": [ "application/x-www-form-urlencoded" ] },
      "body": "bWVyaGFiYSBiZW5pbSBhZGltIHNhbmNhcg=="
    }
  ] 
}