MillionSend Docs

Create a draft

POST
/inboxes/{inbox_id}/drafts

A standalone draft, or with thread_id and reply_to_email_id a reply draft in that thread. One unsent reply draft per email: creating another answers 200 with the existing one. A reply draft copies no recipients; set to before sending. Nothing is sent until POST /inboxes/{inbox_id}/drafts/{draft_id}/send.

Path Parameters

inbox_id*string
Formatuuid

Request Body

application/json
  1. body
to?|array<string>|

An address or a list of them; "Name " works too

cc?|array<string>|

An address or a list of them; "Name " works too

bcc?|array<string>|

An address or a list of them; "Name " works too

subject?string
html?string
text?string
thread_id?string

With reply_to_email_id: a reply draft in this thread

Formatuuid
reply_to_email_id?string

The email of the thread the draft answers

Formatuuid

Response Body

The existing reply draft

application/json
  1. response
object*"inbox_draft"
Value in"inbox_draft"
id*string
Formatuuid
type*string
Value in"standalone""reply"
to*array<string>
cc*array<string>
bcc*array<string>
subject*string
html*string
text*string
thread_id*string
Formatuuid
reply_to_email_id*string
Formatuuid
email_id*string
Formatuuid
created_at*string
updated_at*string
status*string
Value in"draft""pending_approval""sent""rejected""expired"
approval_reasons*array<string>
forward*boolean
decided_by*string
decided_at*string
expires_at*string
Example Request
curl -X POST 'https://api.millionsend.com/inboxes/497f6eca-6276-4993-bfeb-53cbbbba6f08/drafts' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "object": "inbox_draft",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "type": "standalone",  "to": [    "string"  ],  "cc": [    "string"  ],  "bcc": [    "string"  ],  "subject": "string",  "html": "string",  "text": "string",  "thread_id": "1de43264-67cb-48af-89f9-e865c375bb84",  "reply_to_email_id": "5e00f13a-4994-422b-8a76-6ae8ac072852",  "email_id": "8e6bf5ae-e456-4654-87f8-33e2156caffc",  "created_at": "string",  "updated_at": "string",  "status": "draft",  "approval_reasons": [    "string"  ],  "forward": true,  "decided_by": "string",  "decided_at": "string",  "expires_at": "string"}