Skip to main content
DELETE
/
v1
/
messages
/
{id}
Cancel a message
curl --request DELETE \
  --url https://api.senderkit.com/v1/messages/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "msg_0a1b2c3d4e5f6g7h",
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

API key with an sk_live_ or sk_test_ prefix.

Path Parameters

id
string
required

Public message ID (e.g. msg_...).

Response

The message was canceled.

id
string
required

Public message ID (e.g. msg_...).

Example:

"msg_0a1b2c3d4e5f6g7h"

status
string
required
Allowed value: "canceled"