{"uid":"cap_ZUNL9VsgSq3suoICSnLkm","slug":"agentmail-get-draft-by-id-ba48d9cd","name":"AgentMail Get Draft by ID","description":"AgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.","url":"https://x402.api.agentmail.to/v0/drafts/%7Bdraft_id%7D","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","pathParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["draft_id"],"properties":{"draft_id":{"type":"string"}},"additionalProperties":false},"queryParams":{"type":"object","properties":{},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}},"additionalProperties":false}},"additionalProperties":false},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"proven_free","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"free","summary":"Free","primary":{"kind":"free","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"free","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_HjrLXURujZjJSlotBiMv4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves a specific email draft by its draft ID from an AI agent's AgentMail inbox","exampleAgentPrompt":"Can you pull up the AgentMail draft with ID 'draft_abc123' so I can review its contents before sending?","exampleUseCases":[{"title":"Review draft before final approval","prompt":"Can you check the contents of draft_xyz789 to make sure the tone and formatting look good before I send it out?"},{"title":"Retrieve draft for editing and updates","prompt":"Pull up the draft with ID draft_tech_proposal so I can add those recent market data points we discussed."},{"title":"Verify draft details for compliance","prompt":"Fetch the email draft draft_legal_review and confirm it includes all the required disclosures and legal language we need."}],"resultDescription":"Returns a JSON object representing the email draft, including its content, metadata, and any other fields associated with the draft identified by the given draft_id.","failureModes":["Draft not found (invalid or non-existent draft_id) — 404 error","Unauthorized access — 401/403 if agent lacks permission to access the inbox","Malformed draft_id — 400 bad request","Service unavailable — 500 internal server error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to retrieve the full details of a previously saved email draft by its unique identifier, for example before editing, sending, or reviewing the draft. Prefer this over listing all drafts when the draft_id is already known.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-08T12:45:41.799Z","isFirstParty":false}