GET
/
v2
/
events
curl https://qstash.upstash.io/v2/events \
  -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=="
    }
  ] 
}

QStash events are being renamed to Logs to better reflect their purpose and to not get confused with Workflow Events.

Request

cursor
string

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

messageId
string

Filter events by message id.

state
string

Filter events by state

ValueDescription
CREATEDThe message has been accepted and stored in QStash
ACTIVEThe task is currently being processed by a worker.
RETRYThe task has been scheduled to retry.
ERRORThe execution threw an error and the task is waiting to be retried or failed.
IN_PROGRESSThe task is in one of ACTIVE, RETRY or ERROR state.
DELIVEREDThe message was successfully delivered.
FAILEDThe task has errored too many times or encountered an error that it cannot recover from.
CANCEL_REQUESTEDThe cancel request from the user is recorded.
CANCELLEDThe cancel request from the user is honored.
url
string

Filter events by url.

topicName
string

Filter events by URL Group (topic) name.

scheduleId
string

Filter events by schedule id.

queueName
string

Filter events by queue name.

fromDate
number

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

toDate
number

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

count
number

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

order
string

The sorting order of events 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 events. If no cursor is returned, you have reached the end of the events.

events
Array
curl https://qstash.upstash.io/v2/events \
  -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=="
    }
  ] 
}