Delete a message
Permission
messages:writeRate limit writesIdempotent with Idempotency-KeyDeletes the message. It is refused only while a system email of the project uses it (reset that system email to the default first). Broadcasts and automation steps that point at the message are not checked: a broadcast loses its message_id, and an automation step that sends it will fail the readiness check the next time the automation is activated or its graph is saved while live.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredHeaders
Idempotency-Keystring≤ 255 charsAny unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.
RequestcURL
curl --request DELETE \ --url 'https://api.estage.com/v1/messages/message-id' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Idempotency-Key: your-unique-key'
OK
{
"data": {
"id": 311,
"deleted": true
}
}Example. Errors are
{ error: { code, message, details } }.