Skip to main content
POST
Delete a message, draft or scheduled send
Deletes a message you posted for everyone, discards a draft, or cancels a scheduled send. Cancelling a scheduled email puts it back as a draft, returned as restored. Requires the messages:write scope.

Authorizations

x-api-key
string
header
required

An Avazal API key (avz_…) created in Settings → API keys.

Body

application/json
id
string
required

A message id from messages_list, messages_get or conversations_get.

Response

Success

id
string
required

The id of the object that was deleted.

restored
object | null
required

A chat message or an email, sent, drafted or scheduled. Its id is the one every messages operation takes.