Skip to main content
GET
/
v2
/
logs
List Logs
curl --request GET \
  --url https://qstash.upstash.io/v2/logs \
  --header 'Authorization: Bearer <token>'
{
  "cursor": "<string>",
  "logs": [
    {
      "time": 123,
      "messageId": "<string>",
      "header": {},
      "body": "<string>",
      "state": "CREATED",
      "error": "<string>",
      "nextDeliveryTime": 123,
      "url": "<string>",
      "topicName": "<string>",
      "endpointName": "<string>",
      "scheduleId": "<string>",
      "queueName": "<string>",
      "responseStatus": 123,
      "responseBody": "<string>",
      "responseHeaders": {},
      "timeout": 123,
      "method": "<string>",
      "callback": "<string>",
      "callbackHeaders": {},
      "failureCallback": "<string>",
      "failureCallbackHeaders": {},
      "maxRetries": 123,
      "retryDelayExpression": "<string>",
      "label": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

QStash authentication token

Query Parameters

cursor
string

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

messageId
string

Filter logs by message ID

state
enum<string>

Filter logs by message 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.
Available options:
CREATED,
ACTIVE,
RETRY,
ERROR,
IN_PROGRESS,
DELIVERED,
CANCEL_REQUESTED,
CANCELLED
url
string

Filter logs by destination URL

topicName
string

Filter logs by URL Group name

scheduleId
string

Filter logs by schedule ID

queueName
string

Filter logs by queue name

fromDate
integer<int64>

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

toDate
integer<int64>

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

count
integer
default:100

The number of log entries to return.

Required range: x <= 100
order
enum<string>
default:latestFirst

The sorting order of logs by timestamp.

Available options:
latestFirst,
earliestFirst
label
string

Filter logs by the label of the message assigned by the user

Response

200 - application/json

List of logs

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.

logs
object[]