Skip to Content
MailroomMailroom home

Cancel a queued, scheduled, or pending email

POST
/emails/{id}/cancel

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Response Body

Cancelled

application/json
  1. response
id*string
status*EmailStatus
Value in"queued""pending_approval""scheduled""sending""sent""delivered""bounced""complained""failed""suppressed""rejected""cancelled"
from?string
to?array<string>
subject?string
agent_id?string|null
approval_id?string|null
created_at?string
Formatdate-time
Example Request
curl -X POST 'https://api.mailroom.gosuevals.com/v1/emails/string/cancel'
Example Response
{  "id": "eml_01HZX",  "status": "queued",  "from": "string",  "to": [    "string"  ],  "subject": "string",  "agent_id": "string",  "approval_id": "string",  "created_at": "2019-08-24T14:15:22Z"}