Get your free beta license ↗
API operation · mail group
GET

/mail/queue/{id}

First published 14 Oct 20260.2.0Unchanged since publication

Get a queued Postfix message and its delivery logs

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadall
Answers200 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 server

Parameters

idpath ·string, matching ^[A-F0-9]{6,20}$Required

Example

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 sentence
400A queue id is 6 to 20 uppercase hexadecimal characters
401Authentication required
404Message <id> is not in the queue
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/