Retrieve a received email
GET/v1/emails/inbound/{id}
Parameters
| Name | In | Description |
|---|---|---|
| idrequired | path | |
| Woyra-Version | header | The dated API version to serve. Omit to pin to the oldest supported version. |
Example
curl https://api.woyra.io/v1/emails/inbound/email_01J... \
-H "Authorization: Bearer $WOYRA_KEY"Response
200 The email, with its text, HTML, headers, verdicts and attachment list.
| Field | Type | Description |
|---|---|---|
| object | "inbound_email" | |
| id | string | |
| domain | string | The verified domain that received it. |
| from | string | The sender's address |
| to | string | The address on your domain it was delivered to. |
| recipients | array of string | Everyone on To and Cc, as written. |
| subject | string | |
| text | string | The plain-text body |
| html | string | The HTML body |
| in_reply_to | string | The id of the email you sent that this replies to, when the reply headers name one. |
| thread_id | string | The conversation this belongs to: the reply-to email's thread, or this email's own id when it starts one. |
| message_id | string | The sender's own Message-ID |
| headers | object | |
| verdicts | object | What the receiving provider concluded, each PASS, FAIL, GRAY or PROCESSING_FAILED. |
| verdicts.spf | string | |
| verdicts.dkim | string | |
| verdicts.dmarc | string | |
| verdicts.spam | string | |
| verdicts.virus | string | |
| size_bytes | integer | |
| attachments | array of InboundAttachment | |
| received_at | timestamp | |
| created_at | timestamp |
Errors
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}/attachments/{attachment_id} — Download an attachment
- GET /v1/emails/threads/{id} — A conversation