Mailbox API

Send a saved draft revision

Changed on
post/mailbox/drafts/{draftId}/send

Request

  • Base URL: https://app.sendmux.ai/api/v1
  • URL: https://app.sendmux.ai/api/v1/mailbox/drafts/{draftId}/send
  • 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, email.send)

Path parameters

draftIdstring required

Stable draft ID.

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

If-Matchstring

Current draft ETag; expected_revision is required.

Request body

expected_revisioninteger required

Exact saved revision to send. A stale revision returns conflict.

expected_schedule_versioninteger

Current schedule version. Required for scheduling and after cancelling a schedule.

scheduled_forstring date-time

Send no earlier than this future time, within 30 days. Include a timezone and at most millisecond precision. Omit to send now.

Response

Saved draft and its revision.

oktrue required

Example response

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

Changes