{"uid":"cap_ZVZJeK7RBIFjlT3Ibq16Y","slug":"agentmail-attachment-id-c6ae580d","name":"AgentMail Get Draft Attachment","description":"Get Attachment","url":"https://mpp.api.agentmail.to/v0/pods/:pod_id/drafts/:draft_id/attachments/:attachment_id?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["pod_id","draft_id","attachment_id"],"properties":{"pod_id":{"type":"string","title":"PodId","description":"ID of pod."},"draft_id":{"type":"string","title":"DraftId","description":"ID of draft."},"attachment_id":{"type":"string","title":"AttachmentId","description":"ID of attachment."}}},"responseSchema":{"type":"object","title":"AttachmentResponse","required":["attachment_id","size","download_url","expires_at"],"properties":{"size":{"type":"integer","title":"AttachmentSize","description":"Size of attachment in bytes."},"filename":{"type":"string","title":"AttachmentFilename","description":"Filename of attachment."},"content_id":{"type":"string","title":"AttachmentContentId","description":"Content ID of attachment."},"expires_at":{"type":"string","format":"date-time","description":"Time at which the download URL expires."},"content_type":{"type":"string","title":"AttachmentContentType","description":"Content type of attachment."},"download_url":{"type":"string","description":"URL to download the attachment."},"attachment_id":{"type":"string","title":"AttachmentId","description":"ID of attachment."},"content_disposition":{"enum":["inline","attachment"],"type":"string","title":"AttachmentContentDisposition","description":"Content disposition of attachment."}}},"example":null,"exampleRequest":null,"tags":["email","inboxes","domains","drafts","threads","webhooks","messaging","ai","social"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"proven_free","priceSource":"unknown","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":null,"accepted":[]},"paymentMethods":[],"brandName":"AgentMail","brandSlug":"agentmail","brandBaseUrl":"https://agentmail.to","brandDocsUrl":"https://docs.agentmail.to","whatItDoes":"Retrieves metadata and a time-limited download URL for a specific attachment on an email draft within an AgentMail pod.","exampleAgentPrompt":"Can you fetch the details for attachment att_abc123 on draft drft_xyz789 in my AgentMail pod pod_main01 — I need the filename, size, and download URL so I can review the file before sending?","exampleUseCases":[{"title":"Verify attachments before sending emails","prompt":"I'm about to send out some important contract documents to clients. Can you check the attachment on my draft email and make sure the file size looks right and the content type is correct before I hit send?"},{"title":"Download and process attachment files","prompt":"I have an email draft with a PDF report attached. Can you grab the download URL for that attachment so I can pull the file and validate its contents programmatically?"},{"title":"Check attachment expiry for archival","prompt":"I need to know when the download URLs expire for all the attachments I've added to my outgoing drafts, so I can manage my file retention and archival schedule accordingly."}],"resultDescription":"Returns an AttachmentResponse object with the attachment ID, file size in bytes, filename, content type, content ID, content disposition (inline or attachment), a time-limited download URL, and the expiry timestamp for that URL.","failureModes":["404 Not Found — attachment_id, draft_id, or pod_id does not exist or does not match","401 Unauthorized — missing or invalid Bearer token in Authorization header","403 Forbidden — authenticated user does not have access to the specified pod or draft","410 Gone — download URL has already expired; re-fetch to get a new one","400 Bad Request — malformed path parameters"],"whenToPreferThis":"Use this endpoint when you need to inspect or download a specific attachment that has already been added to an email draft within an AgentMail pod — for example, to verify file metadata before sending, or to retrieve the download URL for processing the attachment content. Prefer this over listing all attachments when you already know the attachment_id.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:50:54.791Z","isFirstParty":false,"canonicalSlug":"agentmail-attachment-id-cd7b2cd7"}