Skip to content

/queue/actions

POST
/queue/actions
curl --request POST \
--url https://example.com/api/v1/queue/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "action": "hold", "ids": [ "example" ] }'

Hold (postsuper -h), release (postsuper -H) or delete (postsuper -d) queued messages. Ids a domain_admin cannot see are refused as a whole request rather than silently skipped. Deleting is irreversible: Postfix has no undelete.

Media typeapplication/json
object
action
required
string
Allowed values: hold release delete
ids
required
Array<string>
>= 1 items <= 200 items

Default Response

Media typeapplication/json
object
action
required
string
Allowed values: hold release delete
requested
required
integer
>= -9007199254740991 <= 9007199254740991
affected
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
output
required
string
Example
{
"action": "hold"
}