GET /api/admin/inspect-sched-q/v1
Note
This page was generated by extracting information from a JSON Schema data file for the API. It may be missing some information, or otherwise suggest approximate or placeholder values based on information in the schema file; this is due to limitations on how that data is extracted from the underlying Rust code and into the JSON Schema, and then again from there and into these docs.
Retrieve information about messages in a scheduled queue.
Query Parameters
queue_name- requiredstring. The name of the scheduled queuewant_body- optionalboolean. If true, return the message body in addition to the metadatalimit- optional nullableinteger. Return up tolimitmessages in the queue sample. Depending on the strategy configured for the queue, messages may not be directly reachable via this endpoint. If no limit is provided, all messages in the queue will be sampled.
Responses
Status 200
Obtained queue information
Content-Type: application/json
This is an object value, with the following properties:
-
delayed_metric- requiredinteger. -
last_changed- requiredstring(date-time). -
messages- required array of InspectMessageV1Response. -
now- requiredstring(date-time). -
num_scheduled- requiredinteger. -
queue_config- requiredobject. -
queue_name- requiredstring.
Examples
{
"delayed_metric": 42,
"last_changed": "1990-12-31T23:59:60Z",
"messages": [
{
"id": "d7ef132b5d7711eea8c8000c29c33806",
"message": {
"data": "From: user@example.com\nSubject: Hello\n\nHello there",
"due": "1990-12-31T23:59:60Z",
"meta": {},
"num_attempts": 42,
"recipient": "recipient@example.com",
"scheduling": {},
"sender": "sender@sender.example.com"
}
}
],
"now": "1990-12-31T23:59:60Z",
"num_scheduled": 42,
"queue_config": {},
"queue_name": "campaign_name:tenant_name@example.com"
}