{"uid":"cap_EvevJAM5S3r801h6A_3op","slug":"agentmail-attachment-id-11d112c6","name":"AgentMail Get Attachment","description":"Get Attachment","url":"https://mpp.api.agentmail.to/v0/pods/:pod_id/threads/:thread_id/attachments/:attachment_id?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["pod_id","thread_id","attachment_id"],"properties":{"pod_id":{"type":"string","title":"PodId","description":"ID of pod."},"thread_id":{"type":"string","title":"ThreadId","description":"ID of thread."},"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 email attachment within an AgentMail thread","exampleAgentPrompt":"Can you fetch the attachment with ID att_abc123 from thread thr_xyz456 in pod pod_789 in AgentMail and give me the download link and filename?","exampleUseCases":[{"title":"Extract invoice from customer email","prompt":"I got an email with an invoice attached. Can you grab that file from my inbox and give me the download link so I can process it in our accounting system?"},{"title":"Retrieve document for contract review","prompt":"One of our clients sent over a signed contract in an attachment. Pull that file from the thread and get me a temporary download URL so our legal team can review it."},{"title":"Access receipt for expense report","prompt":"I need to attach a receipt to my expense report. Can you find the receipt file that was emailed to me and get me the download link and filename?"}],"resultDescription":"Returns an object containing the attachment ID, file size in bytes, filename, content type, content disposition (inline or attachment), content ID, a temporary download URL, and the expiry timestamp for that download URL.","failureModes":["404 Not Found if attachment_id, thread_id, or pod_id does not exist","401 Unauthorized if Bearer token is missing or invalid","403 Forbidden if the caller lacks access to the specified pod","410 Gone if the download URL has already expired and a fresh fetch is needed","400 Bad Request if required path parameters are missing or malformed"],"whenToPreferThis":"Use this endpoint when an AI agent needs to access or process a specific email attachment from an AgentMail-managed inbox — especially when you already have the pod_id, thread_id, and attachment_id (e.g. from a prior list-threads or webhook event). Prefer this over generic email APIs when operating within the AgentMail ecosystem for AI agent inboxes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:50:07.084Z","isFirstParty":false,"canonicalSlug":"agentmail-attachment-id-ba1c5507"}