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": [
{}
]
}
]
}
}Retrieve a single email thread with its full message list
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": [
{}
]
}
]
}
}GET /v1/email/threads.true, the full HTML and text body of each message is returned. Set to false for a lightweight summary response.Authorization: Bearer wbk_your_api_key_here
Show properties
Show Message object
inbound or outboundinclude_body=trueinclude_body=trueX-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"
{
"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": []
}
]
}
}
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing read:email permission |
| 404 | not_found | No thread with the given ID exists in this workspace |
| 429 | rate_limited | Rate limit exceeded |