GET
/
v1
/
mail
/
threads
curl --request GET \
  --url http://localhost:8000/api/v1/mail/threads
{
  "data": [
    {
      "id": "<string>",
      "history_id": "<string>",
      "messages": [
        {
          "id": "<string>",
          "body": "<string>",
          "html_body": "<string>",
          "user_id": "<string>",
          "date": "<string>",
          "snippet": "<string>",
          "subject": "<string>",
          "thread_id": "<string>",
          "starred": true,
          "unread": true,
          "cc": [
            {
              "email": "<string>",
              "name": "<string>"
            }
          ],
          "bcc": [
            {
              "email": "<string>",
              "name": "<string>"
            }
          ],
          "from": [
            {
              "email": "<string>",
              "name": "<string>"
            }
          ],
          "reply_to": [
            {
              "email": "<string>",
              "name": "<string>"
            }
          ],
          "labels": [
            "<string>"
          ],
          "in_reply_to": "<string>"
        }
      ]
    }
  ],
  "meta": {
    "limit": 123,
    "cursors": {
      "before": "<string>",
      "current": "<string>",
      "next": "<string>"
    }
  }
}

Query Parameters

cursor
string

Cursor to start from. You can find cursors for next & previous pages in the meta.cursors property of the response.

raw
boolean

Include raw response. When you want more data from the source

started_after
string
started_before
string
last_updated_before
string
last_updated_after
string
assignee_id
string

Response

200 - application/json
data
object[]
required
meta
object
required