/queue
GET
/queue
const url = 'https://example.com/api/v1/queue?queue=incoming&limit=50&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/queue?queue=incoming&limit=50&offset=0' \ --header 'Authorization: Bearer <token>'The Postfix queue as postqueue -j reports it now, oldest first, with per-queue counts. domain_admin sees only messages whose sender or a recipient is one of its domains. An unreachable queue agent answers reachable: false with an empty list rather than an error, so the screen can say what is wrong.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”queue
string
q
string
limit
integer
offset
integer
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
items
required
Array<object>
total
required
integer
byQueue
required
object
key
additional properties
integer
queueTotal
required
integer
truncated
required
boolean
takenAt
required
string
reachable
required
boolean
detail
required
string
Example
{ "items": [ { "queue": "incoming" } ]}