{"uid":"cap_qbPmUayHOuTCy42Lre_kg","slug":"agentmail-attachment-id-d279ad7a","name":"AgentMail Get Draft Attachment","description":"Get Attachment","url":"https://mpp.api.agentmail.to/v0/drafts/:draft_id/attachments/:attachment_id?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["draft_id","attachment_id"],"properties":{"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 temporary download URL for a specific attachment on an email draft","exampleAgentPrompt":"Can you get the attachment details for attachment abc123 on draft draft_xyz456 in AgentMail — I need the filename, size, and download URL?","exampleUseCases":null,"resultDescription":"Returns an AttachmentResponse object containing the attachment_id, file size in bytes, a temporary download_url, an expires_at timestamp for when the URL expires, and optionally the filename, content_type, content_id, and content_disposition (inline or attachment).","failureModes":["draft_id not found — 404 error if the specified draft does not exist","attachment_id not found — 404 error if the attachment does not exist on the given draft","Missing or invalid Authorization header — 401 unauthorized error","Download URL already expired — the URL returned is time-limited and will return 403/410 after expiry","Malformed path parameters — 400 bad request if draft_id or attachment_id are missing or invalid format"],"whenToPreferThis":"Use this endpoint when you need to retrieve metadata or a download link for a specific attachment on an AgentMail draft email. Prefer this when you already know both the draft_id and attachment_id and need the file's content type, size, filename, or a temporary URL to actually download the file content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:46:00.038Z","isFirstParty":false,"canonicalSlug":"agentmail-attachment-id-cd7b2cd7"}