← Back to AgentMail
POST/v0/inboxes/{inbox_id}/drafts/{draft_id}/send

Send Draft

Send an existing draft as an email. The draft is converted to a sent message and deleted from drafts. Returns the message_id and thread_id.

AgentMail·Free

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "agentmail", path: "/v0/inboxes/{inbox_id}/drafts/{draft_id}/send" }); console.log(output);

Body parameters

labels
array

Labels to apply to the sent message (overrides draft labels).

Response

thread_id
string
message_id
string
    Orthogonal - Giving AI agents the tools they need.