sendsend.email

Cancel a scheduled email

POST/v1/emails/{id}/cancel

Stops a scheduled email before it is sent and gives its quota back. A message that is already on its way cannot be cancelled.

Required scope: emails:send

Parameters

NameInDescription
idrequiredpathThe email id.

Example

curl -X POST 'https://api.sendsend.email/v1/emails/ID/cancel' \
  -H "Authorization: Bearer $SENDSEND_API_KEY"

Response 200

{
  "id": "msg_8Xk2…",
  "status": "cancelled"
}

Errors

StatusCodeWhen
404not_foundNo such resource in this project.
409not_schedulableThe email is not scheduled any more (sent, already cancelled or on its way).
401unauthorizedThe API key is missing, invalid or revoked.
403forbiddenThe key does not have the scope this endpoint needs.

Every error has the same shape. See Errors.