/queue/actions
POST
/queue/actions
const url = 'https://example.com/api/v1/queue/actions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"action":"hold","ids":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
action
required
string
ids
required
Array<string>
Responses
Section titled “Responses”Default Response