Email

Create a draft

Prepares (optionally schedules) an unsent message.

post/email/inboxes/{inbox_id}/drafts

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/email/inboxes/{inbox_id}/drafts
  • Auth: API key in header Authorization

Path parameters

inbox_idstring required

Inbox id (inbox_…)

Headers

Idempotency-Keystring

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

subjectstring
textstring
htmlstring
reply_tostring
in_reply_tostring
labelsstring[]
send_atstring date-time

Schedule send time (ISO 8601)

Response

Created

objectstring required
idstring required
inbox_idstring required
thread_idstring required
reply_tostring nullable required
in_reply_tostring nullable required
subjectstring nullable required
textstring required
htmlstring required
labelsstring[] required
send_atstring date-time nullable required
send_status'draft' | 'scheduled' | 'sending' | 'failed' required
created_atstring date-time required

Changes

No recorded changes to this operation across all 2 revisions of this API.