Authentication
Bearer token for API authentication. Format:
Bearer YOUR_API_KEY
Path Parameters
Unique identifier for the email record. Must be a valid email ID.
Request Examples
Response
Response Fields
Unique identifier for the email record.
Original email ID from the email service.
Message ID from the email headers.
Email subject line.
Senderβs email address.
Senderβs display name, if available.
Primary recipientβs email address.
Carbon copy recipients, if any.
Blind carbon copy recipients, if any.
Reply-to email address, if different from sender.
Primary recipientβs email address (same as βtoβ for backward compatibility).
ISO 8601 timestamp when the email was received.
Whether the email has been read. Automatically set to true when fetched via this endpoint.
ISO 8601 timestamp when the email was read. Set automatically when fetching via this endpoint.
Complete email content and attachments.
Parsed email addresses with names.
Email metadata and parsing information.
Email security verification results.
Email processing and storage information.
ISO 8601 timestamp when the email record was created.
ISO 8601 timestamp when the email record was last updated.
Error Responses
400 Bad Request - Invalid ID
400 Bad Request - Invalid ID
401 Unauthorized
401 Unauthorized
404 Not Found
404 Not Found
500 Internal Server Error
500 Internal Server Error
Usage Examples
Basic Email Retrieval
Processing Attachments
Security Verification Check
When you fetch an email using this endpoint, itβs automatically marked as read and the
readAt
timestamp is updated.Use the
metadata.parseSuccess
field to check if the email was parsed correctly. If parseSuccess
is false, check the parseError
field for details.Verified: This endpoint documentation has been verified against the actual API implementation in
/inbound-app/app/api/v2/mail/[id]/route.ts
and /inbound-app/functions/mail/primary.ts
. All endpoint paths, request/response structures, error codes, and examples are accurate and up-to-date.