MailgentMailgent
API ReferenceThreads

List Threads

GET /v0/threads

List email threads in your agent's inbox. Returns most recently updated first.

Scope: mail:read

GET /v0/threads

Query Parameters

ParamTypeDefaultDescription
limitnumber50Max results (max 100)
pageTokenstringCursor from previous response

Response 200

{
  "threads": [
    {
      "threadId": "thd_a3f91b00c4e2d7e8",
      "inboxId": "agent-x8k2m@mailgent.dev",
      "subject": "Question about pricing",
      "messageCount": 3,
      "createdAt": "2026-03-28T10:00:00.000Z",
      "updatedAt": "2026-03-28T14:30:00.000Z"
    }
  ],
  "count": 1,
  "nextPageToken": "2026-03-28T09:00:00.000Z"
}

Fields

FieldDescription
threadIdUnique thread identifier
subjectSubject of the first message
messageCountTotal messages in thread
updatedAtWhen the last message was added

cURL

curl https://api.mailgent.dev/v0/threads?limit=10 \
  -H "Authorization: Bearer mgent-your-api-key"

MCP

Tool: mail.list_threads

On this page