# GET /mail/queue/{id}/message

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

Read the full contents of a queued message

- Who may call it: administrator, reseller
- Token scope, any of: mail, read, all
- Answers: 200 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

- [urbestack-mail-queue-view](https://urbestack.com/docs/commands/urbestack-mail-queue-view.md): Displays one queued message in full, with headers and body as printed by postcat -q.

## Parameters

- `id` (path, string, matching ^[A-F0-9]{6,20}$, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
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

- 400: --id is required
- 400: A queue id is 6 to 20 uppercase hexadecimal characters
- 400: The mail stack is not installed on this server
- 401: Authentication required
- 404: No such user: <owner>
