{"uid":"cap_7dgs75RktqD2Ls4_pj6S9","slug":"agentmail-attachment-id-ae399e0b","name":"AgentMail Get Attachment","description":"Get Attachment","url":"https://mpp.api.agentmail.to/v0/threads/:thread_id/attachments/:attachment_id?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["thread_id","attachment_id"],"properties":{"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 a thread","exampleAgentPrompt":"In my AgentMail inbox, fetch the attachment with ID att_abc123 from thread thd_xyz789 — I need the download URL and filename so I can access the file.","exampleUseCases":null,"resultDescription":"Returns an AttachmentResponse object containing the attachment ID, file size in bytes, a time-limited download URL, expiration timestamp, and optionally the filename, content type, content ID, and content disposition (inline or attachment).","failureModes":["Thread ID not found — 404 error if the thread_id does not exist","Attachment ID not found — 404 error if the attachment_id does not belong to the thread","Expired or invalid authorization — 401 error if Bearer token is missing or invalid","Download URL already expired — the returned download_url has an expires_at timestamp after which it is no longer valid","Malformed path parameters — 400 error if thread_id or attachment_id are not valid string identifiers"],"whenToPreferThis":"Use this endpoint when you need to access a specific email attachment by its known ID within a thread, particularly to get a temporary download URL or inspect file metadata (size, type, filename). Prefer this over listing attachments when you already know the attachment_id from a prior thread or message retrieval.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-09T18:47:41.186Z","isFirstParty":false,"canonicalSlug":"agentmail-attachment-id-ba1c5507"}