A conversation
GET/v1/emails/threads/{id}
Everything in one exchange, sent and received, oldest first. The id is the thread_id any email in it carries: the id of the email that started it. A reply to something you sent lands in that thread; a reply you send with in_reply_to joins it too. Requires emails:read.
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/threads/email_01J... \
-H "Authorization: Bearer $WOYRA_KEY"Response
200 The conversation.
| Field | Type | Description |
|---|---|---|
| object | "thread" | |
| id | string | The id of the email that started it. |
| subject | string | |
| messages | array of object | |
| messages.object | "thread_item" | |
| messages.direction | string | One of sent, received. |
| messages.at | timestamp | |
| messages.email | ||
| messages.received | InboundEmail | A message received on one of your domains. |
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} — Retrieve a received email
- GET /v1/emails/inbound/{id}/attachments/{attachment_id} — Download an attachment