curl --request GET \
--url https://api.example.com/v1/lexi/conversations/{id}{
"data": {
"id": "<string>",
"title": "<string>",
"context": {},
"archived": true,
"created_at": "<string>",
"messages": [
{
"id": "<string>",
"role": "<string>",
"content": "<string>",
"tool_calls": [
{}
],
"tool_name": "<string>",
"tool_output": {},
"created_at": "<string>"
}
]
}
}Retrieve a single Lexi conversation with its full message history
curl --request GET \
--url https://api.example.com/v1/lexi/conversations/{id}{
"data": {
"id": "<string>",
"title": "<string>",
"context": {},
"archived": true,
"created_at": "<string>",
"messages": [
{
"id": "<string>",
"role": "<string>",
"content": "<string>",
"tool_calls": [
{}
],
"tool_name": "<string>",
"tool_output": {},
"created_at": "<string>"
}
]
}
}GET /v1/lexi/conversations.true, includes the intermediate tool-invocation records alongside user and assistant messages.Authorization: Bearer wbk_your_api_key_here
Show properties
contact_id, deal_id, matter_id, pageShow Message object
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
curl https://data.leadlex.com/functions/v1/api-gateway/v1/lexi/conversations/conv_01HY1 \
-H "Authorization: Bearer wbk_your_api_key_here"
{
"data": {
"id": "conv_01HY1",
"title": "Series B research for Acme Corp",
"context": { "contact_id": "123e4567-e89b-12d3-a456-426614174000" },
"archived": false,
"created_at": "2026-04-15T09:00:00Z",
"messages": [
{
"id": "msg_001",
"role": "user",
"content": "What do we know about Acme's Series B?",
"created_at": "2026-04-15T09:00:00Z"
},
{
"id": "msg_002",
"role": "assistant",
"content": "Acme raised EUR 40m in March 2026 led by a European fund...",
"tool_calls": [],
"created_at": "2026-04-15T09:00:05Z"
}
]
}
}
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing read:ai permission |
| 404 | not_found | Conversation not found |
| 429 | rate_limited | Rate limit exceeded |