Email

Create an email draft conversation

POST
/api/email/messages/draft

Creates a draft email conversation bound to the supplied recipient(s) and account. The resulting conversation/message can be edited and sent through the standard send flow.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/email/messages/draft" \  -H "Content-Type: application/json" \  -d '{    "accountId": "665f1a0c0e0a4b001a2c9f50",    "to": "jamie.lee@example.com",    "subject": "Quick follow-up"  }'
{  "conversationId": "665f1a0c0e0a4b001a2c9f70",  "conversation": {    "_id": "665f1a0c0e0a4b001a2c9f70",    "channelType": "email",    "isDraft": true,    "subject": "Follow-up: Maple Court",    "participants": {      "from": "leasing@acme.example",      "to": [        "alex.morgan@example.com"      ]    }  }}