Emails

Cancel a scheduled email

POST/emails/{id}/cancel

Cancels an email that has not started sending. Cancelling twice is fine. Its scheduled_at is kept and a cancelled event is added to its timeline. Refused with 409 once it is being sent or was sent.

Permission: emails:send · on the API key screen: Transactional email → Full access · All permissions

Path parameters

  • idstringrequired

    The id of the email.

Response

  • objectstring

    One of: email

    At most 2,000 characters.

  • idstring

    At most 2,000 characters.

  • statusstring

    One of: scheduled queued sending sent failed cancelled

    At most 2,000 characters.

  • last_eventstring | null

    One of: sent delivered delivery_delayed bounced complained opened clicked failed suppressed

    At most 2,000 characters.

  • fromstring

    At most 400 characters.

  • tostring[]

    At most 50 items.

  • ccstring[]

    At most 50 items.

  • bccstring[]

    At most 50 items.

  • reply_tostring[]

    At most 50 items.

  • subjectstring

    At most 998 characters.

  • template_idstring | null

    The transactional template the email was rendered from (template_id on the send); null when it was sent with its own html / text.

    At most 2,000 characters.

  • tagsobject[]

    At most 10 items.

    Show properties
    • namestringrequired

      Letters, digits, _ and -.

      At least 1 characters. At most 64 characters.

    • valuestringrequired

      Letters, digits, _ and -.

      At least 1 characters. At most 256 characters.

  • attachmentsobject[]

    At most 10 items.

    Show properties
    • filenamestring

      At most 255 characters.

    • content_typestring | null

      At most 127 characters.

    • sizenumber
  • suppressedstring[]

    Recipients that were not sent to because the address is on the account's suppression list (a hard bounce, a complaint or a manual block).

    At most 50 items.

  • errorstring | null

    At most 2,000 characters.

  • scheduled_atstring | null

    At most 2,000 characters.

  • sent_atstring | null

    At most 2,000 characters.

  • created_atstring

    At most 2,000 characters.

  • eventsobject[]

    What happened to the email, oldest first (GET /emails/{id} only; empty in lists).

    At most 200 items.

    Show properties
    • typestring

      One of: sent delivered delivery_delayed bounced complained opened clicked failed suppressed cancelled

      At most 2,000 characters.

    • atstring

      At most 2,000 characters.

    • detailstring | null

      At most 2,000 characters.