API operation · mail group
GET
/mail/queue
First published 3 Oct 2026
0.1.0Unchanged since publicationList messages in the Postfix queue
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadallAnswers200 OK
Returns all messages waiting in the Postfix queue in queue, with each message's sender, recipients and any reasons for delay. Requires an administrator token with the mail scope.
As a command
Run as root on the serverExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/mail/queue" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"queue": {
"available": 1,
"count": 1,
"error": "Domain 'example.com' already exists",
"queue": [
{
"arrival_time": 1,
"forced_expire": 1,
"id": 1,
"queue": "text",
"recipients": [
{
"address": "info@example.com",
"delay_reason": "text"
}
],
"sender": "text",
"size": 1
}
],
"read_at": "text"
}
}Errors
2 errors, each a status and a sentence401Authentication required404Message <id> is not in the queueNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-mail-queue/