{"uid":"cap_gzadXTvbgJcFk5D-0H4Q7","slug":"agentmail-attachment-id-cd7b2cd7","name":"AgentMail Get Draft Attachment","description":"Get Attachment","url":"https://mpp.api.agentmail.to/v0/inboxes/:inbox_id/drafts/:draft_id/attachments/:attachment_id?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["inbox_id","draft_id","attachment_id"],"properties":{"draft_id":{"type":"string","title":"DraftId","description":"ID of draft."},"inbox_id":{"type":"string","title":"InboxId","description":"The ID of the inbox."},"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":"unprobed","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 download URL for a specific attachment on an email draft in an AgentMail inbox.","exampleAgentPrompt":"Can you fetch the attachment details for attachment ID 'att_abc123' on draft ID 'dft_xyz789' in inbox 'inbox_001'? I need the download URL and filename.","exampleUseCases":null,"resultDescription":"Returns an AttachmentResponse object containing the attachment_id, filename, content_type, size in bytes, a temporary download_url, the expiry timestamp (expires_at), content_disposition (inline or attachment), and optional content_id.","failureModes":["404 Not Found — invalid inbox_id, draft_id, or attachment_id","401 Unauthorized — missing or invalid Bearer token","Download URL already expired — expires_at has passed","Attachment does not belong to the specified draft or inbox","Malformed path parameters causing routing errors"],"whenToPreferThis":"Use this endpoint when you need to retrieve metadata or a download URL for a file attached to a specific email draft in AgentMail. Prefer this over generic file storage lookups when the attachment is associated with an AI agent's inbox draft workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:48:45.539Z","isFirstParty":false,"canonicalSlug":"agentmail-attachment-id-cd7b2cd7"}