Create a draft
POST
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.
inbox_id*stringFormat
uuidapplication/json- 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?stringhtml?stringtext?stringthread_id?stringWith reply_to_email_id: a reply draft in this thread
Format
uuidreply_to_email_id?stringThe email of the thread the draft answers
Format
uuidThe existing reply draft
application/json- response
object*"inbox_draft"Value in
"inbox_draft"id*stringFormat
uuidtype*stringValue in
"standalone""reply"to*array<string>cc*array<string>bcc*array<string>subject*stringhtml*stringtext*stringthread_id*stringFormat
uuidreply_to_email_id*stringFormat
uuidemail_id*stringFormat
uuidcreated_at*stringupdated_at*stringstatus*stringValue in
"draft""pending_approval""sent""rejected""expired"approval_reasons*array<string>forward*booleandecided_by*stringdecided_at*stringexpires_at*stringcurl -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"}