# POST /mail/queue/{id}/hold

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

UrbeStack release 0.2.35 API operation in the mail group.

Hold a queued message

- Who may call it: administrator, reseller
- Token scope, any of: mail, all
- Answers: 200 OK

Postfix suspends delivery attempts until you release the message with POST /mail/queue/{id}/release. A successful request returns MailQueueHold.

A reseller can hold 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-hold](https://urbestack.com/docs/commands/urbestack-mail-queue-hold.md): Holds one queued message with postsuper -h.

## 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 POST "$API/mail/queue/1/hold" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "count": 1,
  "held": true,
  "id": 1
}
```

## 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: Message <id> is not in the queue
- 404: No such user: <owner>
