{"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","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","attachment_id"],"properties":{"draft_id":{"type":"string"},"attachment_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_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-09-08T18:30:01.379Z","isFirstParty":false}