Skip to main content
List the attachment metadata for a message. The bytes are never inlined — download each file with an authenticated GET on its url. GET /v1/emails/{id}/attachments Works for both directions: for an inbound message the attachments are parsed from the received MIME; for an outbound message they’re the files you sent. Each entry includes a url you fetch with your bearer token to stream the bytes.

Path parameters

string
required
The message id.

Request

Response

200 OK — a data array of attachment metadata. The array is empty when the message has no attachments.
200 OK

Fields

string
The attachment identifier.
string
The file name.
string
The MIME type, e.g. application/pdf.
integer
The size in bytes.
string
The authenticated download URL. GET it with your Authorization: Bearer header to stream the bytes.
The url needs your key. The download url isn’t a public link — it requires the same Authorization: Bearer header as every other request. Don’t hand it to a browser or embed it where the key would leak.