Mailboxes

Create a draft

Saves a draft of a new message, or of a reply when inReplyToMessageId names a message in the mailbox, and returns it with status 201. A phone channel's draft holds a recipient number and text. Send it with POST /v1/mailboxes/{id}/drafts/{draftId}/send.

post/v1/mailboxes/{id}/drafts

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/mailboxes/{id}/drafts
  • Auth: API key in header x-api-key

Path parameters

idstring required

Request body

channel'email' nullable
endpointIdstring
tostring[] nullable
ccstring[] nullable
bccstring[] nullable
replyTostring[] nullable
subjectstring nullable
textstring nullable
htmlstring nullable
inReplyToMessageIdstring

Response

Success

idstring required
channel'email' required
threadIdstring required
inReplyToMessageIdstring required
state'saved' | 'locked' | 'sent' required
lockedByActionIdstring required
tostring[] required
subjectstring nullable required
createdAtstring required
updatedAtstring required
endpointIdstring required
ccstring[] required
bccstring[] required
replyTostring[] required
htmlstring nullable required
textstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.