Save draft
create_draftSave an email without sending it, to continue or review later. Can prepare a reply, reply-all or forward from an existing message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inbox_id": "<inbox_id>"
},
"name": "create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| html | No | HTML alternative; null clears it. Editing text leaves saved HTML unchanged, so update or clear it too. | |
| text | No | Plain-text body; may be empty while drafting. For a forward prepared from source, this is the note placed before the original. | |
| labels | No | Labels the sent copy gets when the draft is sent. | |
| source | No | Prepare from a ready received or accepted sent message in this inbox. Recipients, subject and forwarded content are saved now and not regenerated when sending. Reply and reply-all recipients come from sender-written headers: check them against the assignment. | |
| subject | No | ||
| inbox_id | Yes | ||
| attachments | No | Files with padded base64 content. An empty array removes all files. | |
| in_reply_to | No | Cherami ID of the received or accepted sent message in this inbox being replied to; null clears it. Set recipients and subject yourself, or use source on creation to derive them. | |
| idempotency_key | No | Makes a retry safe: repeating the call with the same key and identical arguments within 24 hours of the first request returns the draft already created. Use a new key for each intended draft. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| state | Yes | ||
| subject | Yes | ||
| inbox_id | Yes | ||
| replayed | No | ||
| created_at | Yes | Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision. | |
| updated_at | Yes | Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision. | |
| sent_message_id | Yes | ||
| idempotency_expires_at | No | Absolute ISO 8601 service timestamp in UTC (Z), with millisecond precision. |