Skip to main content
GET
/
v1
/
email
/
threads
/
{id}
Get Email Thread
curl --request GET \
  --url https://api.example.com/v1/email/threads/{id}
{
  "data": {
    "id": "<string>",
    "subject": "<string>",
    "participants": [
      {}
    ],
    "contact_ids": [
      {}
    ],
    "deal_id": "<string>",
    "messages": [
      {
        "id": "<string>",
        "from": "<string>",
        "to": [
          {}
        ],
        "cc": [
          {}
        ],
        "sent_at": "<string>",
        "direction": "<string>",
        "body_text": "<string>",
        "body_html": "<string>",
        "attachments": [
          {}
        ]
      }
    ]
  }
}

Request

Path Parameters

id
string
required
Thread identifier, as returned by GET /v1/email/threads.

Query Parameters

include_body
boolean
default:"true"
When true, the full HTML and text body of each message is returned. Set to false for a lightweight summary response.

Headers

Authorization: Bearer wbk_your_api_key_here

Response

data
object
Every response returns X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID headers.
curl https://data.leadlex.com/functions/v1/api-gateway/v1/email/threads/18c9a4b2e7ff21aa \
  -H "Authorization: Bearer wbk_your_api_key_here"

Example Response

{
  "data": {
    "id": "18c9a4b2e7ff21aa",
    "subject": "Proposal for Series B counsel",
    "participants": ["jane@example.com", "team@emasex.de"],
    "contact_ids": ["123e4567-e89b-12d3-a456-426614174000"],
    "deal_id": null,
    "messages": [
      {
        "id": "m1",
        "from": "jane@example.com",
        "to": ["team@emasex.de"],
        "cc": [],
        "sent_at": "2026-04-15T09:01:00Z",
        "direction": "inbound",
        "body_text": "Can you send over your standard engagement letter?",
        "body_html": "<p>Can you send over your standard engagement letter?</p>",
        "attachments": []
      }
    ]
  }
}

Errors

StatusCodeDescription
401invalid_keyInvalid or expired API key
403insufficient_permissionsMissing read:email permission
404not_foundNo thread with the given ID exists in this workspace
429rate_limitedRate limit exceeded