List Logs
Paginate through logs of published messages
1 min read
get/v2/logs
Request example
Response
get/v2/logs
Authorization
1 alternative authorization method available — see the spec for details.
Query parameters
By providing a cursor you can paginate through all of the logs
Filter logs by message ID
Filter logs by message state
| Value | Description |
|---|---|
| CREATED | The message has been accepted and stored in QStash |
| ACTIVE | The task is currently being processed by a worker. |
| RETRY | The task has been scheduled to retry. |
| ERROR | The execution threw an error and the task is waiting to be retried or failed. |
| IN_PROGRESS | The task is in one of ACTIVE, RETRY or ERROR state. |
| DELIVERED | The message was successfully delivered. |
| FAILED | The task has errored too many times or encountered an error that it cannot recover from. |
| CANCEL_REQUESTED | The cancel request from the user is recorded. |
| CANCELLED | The cancel request from the user is honored. |
Options:
CREATEDACTIVERETRYERRORIN_PROGRESSDELIVEREDCANCEL_REQUESTEDCANCELLEDFilter logs by destination URL
Filter logs by URL Group name
Filter logs by schedule ID
Filter logs by queue name
Filter logs by starting date, in milliseconds (Unix timestamp). This is inclusive.
Filter logs by ending date, in milliseconds (Unix timestamp). This is inclusive.
Filter logs by label. Supports multi-value filtering. You can pass multiple values to match messages with any of the given labels (OR logic).
Examples:
label=my_labellabel=label_1&label=label_2
Responses
application/json
200
List of logs
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.
Show child attributesHide child attributes
The timestamp of the log entry in Unix milliseconds
The message ID associated with the log entry
Base64 encoded body of the message.
The state of the message at the time of the log entry.
Options:
CREATEDACTIVERETRYERRORDELIVEREDFAILEDCANCEL_REQUESTEDCANCELLEDThe error message if the log entry corresponds to an error state.
The next scheduled time of the message. (Unix timestamp in milliseconds)
The URL to which the message is being delivered.
The URL Group (a.k.a. topic) name if this message was sent to a URL Group.
The endpoint name of the message if the endpoint is given a name within the URL group.
The scheduleId of the message if the message is triggered by a schedule
The name of the queue if the message is enqueued to a queue.
The status code of the response. Only set if the state is ERROR
The base64 encoded body of the response. Only set if the state is ERROR
The headers of the response. Only set if the state is ERROR
Show child attributesHide child attributes
The timeout(in milliseconds) of the outgoing http requests, after which Qstash cancels the request
HTTP method of the message for outgoing request
Callback is the URL address where QStash sends the response of a publish
The headers sent to the callback URL
Show child attributesHide child attributes
Failur eCallback is the URL address where QStash sends the response of a failed message after all retries are exhausted
The headers sent to the failure callback URL
Show child attributesHide child attributes
The maximum number of retries for the message
The retry delay expression used for calculating retry delays
The label assigned to the message. Deprecated in favor of
labels.The list of labels assigned to the message.