{"uid":"cap_2Q44IFtALknSlaBIbnoi8","slug":"agentmail-get-email-attachment-aa949a0a","name":"AgentMail Get Email Attachment","description":"Service: AgentMail API (/v0/inboxes/{inbox_id}/threads/{thread_id}/attachments/{attachment_id})","url":"https://x402.api.agentmail.to/v0/inboxes/%7Binbox_id%7D/threads/%7Bthread_id%7D/attachments/%7Battachment_id%7D","method":"GET","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"unprobed","priceSource":"registry","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":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves a specific email attachment by ID from a thread within an AI agent's inbox","exampleAgentPrompt":"Fetch the attachment with ID att_abc123 from thread thread_xyz456 in inbox inbox_99 so I can read the file that was sent to me.","exampleUseCases":null,"resultDescription":"Returns the attachment data (file content and/or metadata) for the specified attachment ID within a given email thread and inbox, as a JSON object.","failureModes":["Inbox ID not found — 404 error","Thread ID not found within the given inbox — 404 error","Attachment ID not found within the given thread — 404 error","Unauthorized access to inbox — 401/403 error","Invalid ID format — 400 bad request","Attachment has been deleted or expired — 410 gone"],"whenToPreferThis":"Use this endpoint when an AI agent needs to retrieve a specific, known attachment from an email thread — for example, after listing threads and identifying an attachment ID. Prefer this over listing all messages when you already have the inbox, thread, and attachment identifiers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-10T12:45:15.672Z","isFirstParty":false}