cURL
curl --request GET \ --url https://api.example.com/v1/inbound/{id}/attachments/{attachmentId}
Download an attachment from a received email.
curl https://www.unosend.co/api/v1/inbound/550e8400-e29b-41d4-a716-446655440000/attachments/att_123 \ -H "Authorization: Bearer un_xxxxxxxxxx" \ --output document.pdf
Content-Type
Content-Disposition
Content-Type: application/pdf Content-Disposition: attachment; filename="document.pdf"