{"uid":"cap_KQsqjpDfQ6g9ERXaEj3Xz","slug":"agentmail-raw-a089023d","name":"AgentMail Get Raw Message","description":"Get Raw Message","url":"https://mpp.api.agentmail.to/v0/inboxes/:inbox_id/messages/:message_id/raw?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["inbox_id","message_id"],"properties":{"inbox_id":{"type":"string","title":"InboxId","description":"The ID of the inbox."},"message_id":{"type":"string","title":"MessageId","description":"ID of message."}}},"responseSchema":{"type":"object","title":"RawMessageResponse","required":["message_id","size","download_url","expires_at"],"properties":{"size":{"type":"integer","title":"MessageSize","description":"Size of message in bytes."},"expires_at":{"type":"string","format":"date-time","description":"Time at which the download URL expires."},"message_id":{"type":"string","title":"MessageId","description":"ID of message."},"download_url":{"type":"string","description":"S3 presigned URL to download the raw message. Expires at expires_at."}},"description":"S3 presigned URL to download the raw .eml file."},"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":"Returns a presigned S3 download URL for the raw .eml file of a specific email message in an AgentMail inbox","exampleAgentPrompt":"Can you get me a download link for the raw .eml file of message msg_abc123 in inbox inbox_xyz456 on AgentMail?","exampleUseCases":null,"resultDescription":"Returns a RawMessageResponse object containing the message ID, the size of the raw message in bytes, a presigned S3 URL to download the raw .eml file, and a timestamp indicating when the download URL expires.","failureModes":["404 if the inbox_id or message_id does not exist","401/403 if the Authorization Bearer token is missing or invalid","Expired download_url if the agent waits too long after fetching (check expires_at before downloading)","500 server error if S3 presigned URL generation fails"],"whenToPreferThis":"Use this endpoint when you need the complete, unprocessed email content including all MIME parts, raw headers, attachments, and encoding — for example, to archive emails as .eml files, to parse non-standard headers, or to pass the full raw message to another system. Prefer this over parsed message endpoints when you need the ground-truth email source rather than extracted fields.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:47:11.291Z","isFirstParty":false,"canonicalSlug":"agentmail-raw-a089023d"}