Mailbox API

Create a saved draft

Changed on
post/mailbox/drafts

Request

  • Base URL: https://app.sendmux.ai/api/v1
  • URL: https://app.sendmux.ai/api/v1/mailbox/drafts
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.sendmux.ai/oauth/authorize, token URL https://app.sendmux.ai/oauth/token, scopes: mailbox.read, mailbox.drafts.write)

Query parameters

mailbox_idstring

Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.

Headers

Idempotency-Keystring

Reuse this key when retrying the same create request.

Request body

custom_headersobject

Custom X- headers preserved with this revision.

html_bodystring

HTML body, preserved when saved.

reply_to_message_idstring

Message in this inbox to reply to; thread headers are snapshotted.

subjectstring

Subject; may be empty.

text_bodystring

Plain-text body.

Response

Saved draft and its revision.

oktrue required

Example response

{
  "meta": {
    "request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}

Changes