WoyraDocs
Get an API key

Download an attachment

GET/v1/emails/inbound/{id}/attachments/{attachment_id}

Emails · Requires an API key

The file as the sender attached it, under its own name, as a download. HTML and SVG are served as octet streams so that nothing a stranger mailed you runs in a browser on your key.

Parameters

NameInDescription
idrequiredpath
attachment_idrequiredpath

Example

curl https://api.woyra.io/v1/emails/inbound/email_01J.../attachments/<attachment_id> \
  -H "Authorization: Bearer $WOYRA_KEY"

Response

200 The file.

Errors

StatusCodes
401authentication_required, invalid_api_key
403insufficient_scope, domain_not_verified, recipient_suppressed, sending_paused, mfa_required
404not_found, product_not_offered

Also in Emails