List conversations
Your inbound mail grouped into conversations with GET /v3/inbound/threads: who wrote, how many messages and who answered last, newest activity first.
A conversation (thread) groups an email you received with everything that belongs to it: the answers that follow, the replies you send with `POST /v3/inbound/messages/{id}/reply` and — when someone answers one of your emails — that email of yours. An AI agent or a support tool reads one conversation instead of rebuilding it from In-Reply-To and References headers.
GET /v3/inbound/threads
When a conversation starts
- A new email arrives that does not answer anything you have here — it starts a conversation.
- Someone answers one of your emails — for example one recipient of a campaign replies. That answer starts a conversation, and your original email is its first message (type
outbound), so you can see what the person replied to. Every person who answers gets their own conversation. - Sending never starts a conversation. A bulk send to 10 000 people creates no conversations at all; if 37 of them answer, you get 37 conversations.
- Answers join. An email that answers a message already in a conversation joins it, and so does every reply you send through the reply endpoint.
- A new email of yours is a new topic. Sending to someone who already has a conversation with you does not add that email to it; if they answer it, the answer starts its own conversation. Use
fromto see every conversation with one person. - Late links merge. When an email links two conversations (its
Referencesname messages of both), they become one; the id of the merged one keeps working and returns the surviving conversation.
Conversations are matched on the standard Message-ID, In-Reply-To and References headers only — never on the subject, so two unrelated emails called "Invoice" stay apart. Your outgoing emails carry a Message-ID wemail can recognise, which is how an answer finds the exact email it answers; it only links emails of your own workspace.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
automated | string | Optional | human (default) — conversations with at least one message from a person; automated — only conversations made of automated mail (out-of-office replies, bounces, mailing lists…); all — both. The default keeps the auto-replies a bulk send brings back out of your agent’s way. |
acked | string | Optional | false — conversations with at least one inbound message you have not acknowledged; true — conversations whose inbound messages are all acknowledged. Omitted = all. |
domain | string | Optional | Only conversations with an inbound message on this recipient domain (case-insensitive). |
recipient | string | Optional | Only conversations with an inbound message to this exact address (case-insensitive; to or any envelope_to). |
from | string | Optional | Only conversations with one person: every conversation in which this sender address (case-insensitive) wrote to you. A person who answered two campaigns and sent one support question has three separate conversations — from lists all three together. |
since | string | Optional | Only conversations with activity at or after this ISO 8601 timestamp. |
limit | integer | Optional | Page size, 1–100. Default 25. |
cursor | string | Optional | The next_cursor of the previous page. |
The conversation summary
| Parameter | Type | Required | Description |
|---|---|---|---|
id | uuid | Required | Conversation id — the same value as thread_id on an inbound message, the reply response and the inbound.received webhook. |
subject / snippet | string | Required | Subject and first 160 characters of the latest inbound message. |
participants | string[] | Required | Senders of the recent inbound messages, newest first (at most 10). |
message_count / inbound_count / outbound_count | integer | Required | All messages; inbound ones; your emails (the email it answers and your replies). |
last_direction | string | Required | inbound — the latest message came in and may be waiting for an answer; outbound — you answered last. |
automated | boolean | Required | true when every inbound message was classified as automated mail. |
acked | boolean | Required | true when every inbound message is acknowledged. |
latest_inbound_id | uuid | Optional | The latest inbound message — answer it with the reply endpoint. |
created_at / last_activity_at | string | Required | When the conversation started and when the latest message arrived or was sent. |
A conversation lives as long as its inbound mail: when the last inbound message expires under your retention or is deleted, the conversation goes too. A send_only key cannot read inbound mail (403 insufficient_scope). The same data is available to AI agents through the list_threads and get_thread MCP tools.
Responses
| Status | Description |
|---|---|
200 | { items, has_more, next_cursor } — conversations, latest activity first. |
400 | validation_error — invalid filters; invalid_cursor — the cursor is not a next_cursor value. |
401 | Missing or invalid API key. |
403 | insufficient_scope — a send_only key cannot read inbound mail. |
429 | More than 120 calls in a minute on this key. |
Code examples
curl "https://api.wemail.io/v3/inbound/threads?acked=false&limit=25" \
-H "Authorization: Bearer afn_live_…"import { WemailClient } from "@wemailio/sdk";
const wemail = new WemailClient(process.env.WEMAIL_API_KEY);
const page = await wemail.inbound.listInboundThreads({ acked: "false", limit: 25 });
for (const t of page.items) console.log(t.id, t.lastDirection, t.subject, t.participants);import os
from wemail import WemailClient
wemail = WemailClient(api_key=os.environ["WEMAIL_API_KEY"])
page = wemail.inbound.list_inbound_threads(acked="false", limit=25)
for t in page.items:
print(t.id, t.last_direction, t.subject, t.participants)ctx := context.WithValue(context.Background(), wemail.ContextAccessToken, os.Getenv("WEMAIL_API_KEY"))
page, _, err := client.API.InboundAPI.ListInboundThreads(ctx).Acked("false").Limit(25).Execute()
if err != nil { log.Fatal(err) }
for _, t := range page.Items { fmt.Println(t.Id, t.LastDirection, t.Subject) }{
"items": [
{
"id": "9b2f6a1c-3d4e-4f5a-8b6c-7d8e9f0a1b2c",
"subject": "Re: Autumn offer",
"snippet": "Hi, is the 20% discount also valid for the annual plan?",
"participants": ["Maria Papadopoulou <maria@efood.gr>"],
"message_count": 3,
"inbound_count": 2,
"outbound_count": 1,
"last_direction": "inbound",
"automated": false,
"acked": false,
"latest_inbound_id": "6f1c2a1e-7d3b-4b7e-9f0e-2a4c8d9b1e55",
"created_at": "2026-11-08T09:12:44.120Z",
"last_activity_at": "2026-11-08T10:03:10.512Z"
}
],
"has_more": false,
"next_cursor": null
}