boundry.
RegionSydney, Australia
Documentation/Download an email attachment
GET/emails/{emailId}/attachments/{attachmentId}

Download an email attachment

Authentication

Bearer authentication is required for this operation.

Path parameters

NameTypeDescription
emailIdrequiredstring

Email identifier.

attachmentIdrequiredstring

Attachment identifier.

Request examples

request.sh
bash
curl --request GET 'https://api.au.boundry.dev/emails/string/attachments/string' \
+  -H 'Authorization: Bearer $BOUNDRY_API_KEY' \
+

200 response

Attachment bytes.

FieldTypeDescription
response.jsonExample response
application/octet-stream
"binary attachment bytes"

401 response

Invalid API key.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "attachmentId": "att_01j0example",
  "emailId": "msg_01j0example"
}

404 response

Requested resource was not found.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "attachmentId": "att_01j0example",
  "emailId": "msg_01j0example"
}

422 response

Request validation failed.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "attachmentId": "att_01j0example",
  "emailId": "msg_01j0example"
}