{"uid":"cap_DL1tj16qLKjMiqXQRRM66","slug":"agentmail-get-pod-draft-attachment-fa5cc22d","name":"AgentMail Get Pod 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/pods/%7Bpod_id%7D/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":["pod_id","draft_id","attachment_id"],"properties":{"pod_id":{"type":"string"},"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_5tk3KOj5K4dUQXN53UFdy","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 within a pod in the AgentMail system","exampleAgentPrompt":"Can you retrieve the attachment with ID att_abc123 from draft dft_xyz789 inside my AgentMail pod pod_001 so I can review what file is attached before sending?","exampleUseCases":null,"resultDescription":"Returns the attachment object associated with the specified draft_id and attachment_id within the given pod. Typically includes attachment metadata and/or file content such as filename, content type, size, and binary or encoded data.","failureModes":["Pod ID not found — 404 if the pod does not exist or is inaccessible","Draft ID not found — 404 if the draft does not exist within the pod","Attachment ID not found — 404 if the attachment does not exist on the draft","Unauthorized — 401/403 if the caller lacks permissions for the pod","Invalid path parameters — 400 if required path params are malformed or missing","Empty response — attachment may exist but have no content body"],"whenToPreferThis":"Use this endpoint when an AI agent needs to inspect or retrieve a specific file attachment from an email draft within a pod context, as opposed to attachments on sent or received messages. Prefer this over inbox-level attachment endpoints when the draft has not yet been sent and is associated with a pod workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:47:06.177Z","isFirstParty":false}