API operation · mail group
GET
/mail/queue/{id}
First published 14 Oct 2026
0.2.0Unchanged since publicationGet a queued Postfix message and its delivery logs
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadallAnswers200 OK
Returns the queued message in message with its log details, including each delivery attempt and the remote server's reply, the next hop and the log lines. The response includes the subject when mail.log_subjects is enabled.
The id must contain 6 to 20 uppercase hexadecimal characters. An invalid id returns 400. Requires an administrator token with the mail scope.
As a command
Run as root on the serverParameters
idpath ·string, matching ^[A-F0-9]{6,20}$RequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/mail/queue/1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"message": {
"attempt_count": 1,
"attempts": [
{
"at": "text",
"delay": 1,
"dsn": "text",
"relay": "text",
"reply": "text",
"status": "active",
"to": "text"
}
],
"hops": [
"text"
],
"last_at": "text",
"last_reply": "text",
"last_status": "text",
"log_lines": [
"text"
],
"message": {
"arrival_time": 1,
"forced_expire": 1,
"id": 1,
"queue": "text",
"recipients": [
{
"address": "info@example.com",
"delay_reason": "text"
}
],
"sender": "text",
"size": 1
},
"next_hop": "text",
"read_at": "text",
"subject": "text",
"subjects_logged": true
}
}Errors
3 errors, each a status and a sentence400A queue id is 6 to 20 uppercase hexadecimal characters401Authentication 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.2.0 on 14 Oct 2026.
urbestack.com/docs/api/get-mail-queue-id/