{"uid":"cap_gNcyeQet2k9eP6naaSFsl","slug":"palmyr-email-attachment-retrieval-21d442bf","name":"Palmyr Email Attachment Retrieval","description":"Autonomous infrastructure for AI agents — pay with USDC on Solana or Base via x402.","url":"https://palmyr.ai/email/attachments/%7BattachmentId%7D?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"properties":{"input":{"properties":{"queryParams":{"type":"object","additionalProperties":true}}},"output":{"properties":{"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_V4baefk9VZbfp093RuDoR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches or processes a specific email attachment by its attachment ID, paid via x402 USDC microtransaction","exampleAgentPrompt":"Can you grab the attachment with ID abc123 from that email and give me its contents so I can read through it?","exampleUseCases":[{"title":"Extract invoice data from email","prompt":"I just got an email with an invoice attachment—can you pull that file for me and tell me what's in it so I can log the amount?"},{"title":"Retrieve contract for legal review","prompt":"There's a PDF contract attached to the email from our vendor—can you fetch that attachment and grab the contents so I can review the terms?"},{"title":"Process receipt for expense tracking","prompt":"Can you get the receipt attachment from that confirmation email and pull the file contents so I can add it to my expense report?"}],"resultDescription":"Returns the binary or text content of the specified email attachment, potentially including file metadata such as filename, MIME type, and size, accessed via a paid x402 microtransaction on Solana or Base.","failureModes":["Attachment not found — invalid or expired attachmentId returns 404","Payment failure — insufficient USDC balance or x402 payment rejected","Unauthorized access — attachment belongs to a different account","Attachment too large — timeout or payload size limit exceeded","Network error — upstream email provider unavailable"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically retrieve a specific email attachment by its ID from the Palmyr email infrastructure, particularly in agentic workflows where attachments must be fetched and processed autonomously using USDC micropayments via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-07T06:30:36.609Z","isFirstParty":false,"canonicalSlug":"palmyr-email-attachment-retrieval-21d442bf"}