Download a Message attachment
GET
/api/v1/mail/messages/{id}/attachments/{section_id}
const url = 'https://example.com/api/v1/mail/messages/example/attachments/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/mail/messages/example/attachments/example \ --header 'Authorization: Bearer <token>'Route: /api/v1/mail/messages/{id}/attachments/{section_id}. Inputs: id, section_id, Range. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
section_id
required
string
Header Parameters
Section titled “Header Parameters”Range
string | null
One byte range for a bounded download chunk
Responses
Section titled “Responses”Attachment bytes
A bounded attachment byte range
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The requested byte range is not satisfiable
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}