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

/mail/queue/flush

First published 3 Oct 20260.1.0Unchanged since publication

Ask Postfix to retry delivery of every queued message immediately

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

Run as root on the server

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/mail/queue/flush" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "flushed": true
}

Errors

2 errors, each a status and a sentence
400The mail stack is not installed on this server
401Authentication required
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-mail-queue-flush/