Skip to Content

Cancel scheduled email

POST
/emails/{id}/cancel

Cancel a scheduled transactional email before it goes out. It is kept with status CANCELLED, is not billed, and a notification it held under delivery.throttle may be sent again straight away. This cannot be undone.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API Key>

API Key authentication. The project is automatically derived from the key.

/v1/track requires a public key (pk_*) — it is the one endpoint intended for client-side use, and a secret key is rejected there with 401.

Every other endpoint requires a secret key (sk_*) and rejects public keys with 401.

So the two key types are not interchangeable in either direction: pick the key that matches the endpoint you are calling.

Path parameters

id*string

Email ID, as returned by POST /v1/send.

Formatuuid

Response body

The cancelled email

application/json
  1. response
id?string
status?string
Value in"SCHEDULED""CANCELLED""PENDING""SENDING""SENT""DELIVERED""OPENED""CLICKED""BOUNCED""COMPLAINED""FAILED"
sourceType?string
Value in"TRANSACTIONAL""CAMPAIGN""WORKFLOW""INBOUND"
subject?string
contact?
scheduledFor?|

When a scheduled email is (or was) due.

Formatdate-time
sentAt?|
Formatdate-time
createdAt?string
Formatdate-time
Example request
curl -X POST 'https://api.send.47signals.com/emails/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'
Example response
{  "id": "string",  "status": "SCHEDULED",  "sourceType": "TRANSACTIONAL",  "subject": "string",  "contact": {    "id": "string",    "email": "string"  },  "scheduledFor": "2019-08-24T14:15:22Z",  "sentAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z"}