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

/mail/queue/{id}/message

First published 14 Oct 20260.2.0Unchanged since publication

Read the full contents of a queued message

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadall
Answers200 OK

The queued object contains the message headers and body as printed by postcat -q. This is a read-only operation. The audit log records the queue ID and who read it on every read.

A reseller can read the message only if its sender or a recipient belongs to one of the reseller's domains or one of their customers' domains. The API returns 400 if id falls outside the required format of 6 to 20 uppercase hexadecimal characters.

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/message" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "queued": {
    "bytes": 1,
    "cut": true,
    "id": 1,
    "message": {
      "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",
    "text": "text"
  }
}

Errors

5 errors, each a status and a sentence
400--id is required
400A queue id is 6 to 20 uppercase hexadecimal characters
400The mail stack is not installed on this server
401Authentication required
404No such user: <owner>
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-message/