Download an attachment
GET/v1/emails/inbound/{id}/attachments/{attachment_id}
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
| Name | In | Description |
|---|---|---|
| idrequired | path | |
| attachment_idrequired | path |
Example
curl https://api.woyra.io/v1/emails/inbound/email_01J.../attachments/<attachment_id> \
-H "Authorization: Bearer $WOYRA_KEY"Response
200 The file.
Errors
| Status | Codes |
|---|---|
| 401 | authentication_required, invalid_api_key |
| 403 | insufficient_scope, domain_not_verified, recipient_suppressed, sending_paused, mfa_required |
| 404 | not_found, product_not_offered |
Also in Emails
- GET /v1/emails — List emails
- POST /v1/emails — Send an email
- GET /v1/emails/{id} — Retrieve an email
- POST /v1/emails/{id}/cancel — Cancel a scheduled email
- POST /v1/emails/batch — Send a batch of emails
- GET /v1/templates — List templates
- POST /v1/templates — Save an email template
- GET /v1/templates/{id} — Retrieve a template
- PATCH /v1/templates/{id} — Change a template
- DELETE /v1/templates/{id} — Delete a template
- GET /t/o/{token} — Open tracking image
- GET /t/c/{token} — Click tracking redirect
- GET /v1/emails/inbound — Mail received on your domains
- GET /v1/emails/inbound/{id} — Retrieve a received email
- GET /v1/emails/threads/{id} — A conversation