# POST /mail/queue/flush

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

Ask Postfix to retry delivery of every queued message immediately

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

The 200 response returns flushed set to true when the retry request succeeds. Requires an administrator token with the mail scope.

## As a command

- [urbestack-mail-queue-flush](https://urbestack.com/docs/commands/urbestack-mail-queue-flush.md): Asks Postfix to retry delivery of every queued message immediately.

## 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/flush" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "flushed": true
}
```

## Errors

- 400: The mail stack is not installed on this server
- 401: Authentication required
