← Back to AgentMail
DELETE/v0/inboxes/{inbox_id}/drafts/{draft_id}
Delete Draft
Permanently delete a draft. Important: pass method: "DELETE" in your run request.
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}"
});
console.log(output);