{"uid":"cap_4cRw8YvE0y2t7S7XrHdb4","slug":"agentmail-get-draft-attachment-2968eed4","name":"AgentMail Get Draft Attachment","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/attachments/%7Battachment_id%7D?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"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_eAEQpwBjL9A7E9GYVX6Lx","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 attachment from an email draft by draft ID and attachment ID","exampleAgentPrompt":"Can you fetch attachment abc123 from draft draft456 in AgentMail so I can see what file is attached before sending?","exampleUseCases":null,"resultDescription":"Returns JSON with details about the specified attachment on the draft, including file metadata and content information. The response schema is open-ended JSON.","failureModes":["draft_id not found — 404 not found error","attachment_id not found on the specified draft — 404 not found error","Invalid or missing authentication — 401 unauthorized","draft_id or attachment_id malformed — 400 bad request","Attachment has been deleted — 410 gone"],"whenToPreferThis":"Use this endpoint when you need to inspect or retrieve a specific file attachment on a draft email before sending it, particularly in agentic workflows where you need to verify or read back attachment content that was previously added to a draft.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T06:49:47.474Z","isFirstParty":false,"canonicalSlug":"agentmail-get-draft-attachment-2968eed4"}