Skip to main content
GET
/
v1
/
inbound
/
{id}
/
attachments
/
{attachmentId}
Retrieve Attachment
curl --request GET \
  --url https://api.example.com/v1/inbound/{id}/attachments/{attachmentId}
id
string
required
The ID of the inbound email.
attachmentId
string
required
The ID of the attachment to download.

Request

cURL
curl https://www.unosend.co/api/v1/inbound/550e8400-e29b-41d4-a716-446655440000/attachments/att_123 \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  --output document.pdf

Response

The response is the raw attachment file with appropriate Content-Type and Content-Disposition headers.
Content-Type: application/pdf
Content-Disposition: attachment; filename="document.pdf"