Skip to main content
GET
/
v1
/
lexi
/
conversations
/
{id}
Get Lexi Conversation
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>"
      }
    ]
  }
}

Request

Path Parameters

id
string
required
Conversation UUID returned by GET /v1/lexi/conversations.

Query Parameters

include_tool_steps
boolean
default:"false"
When true, includes the intermediate tool-invocation records alongside user and assistant messages.
limit
integer
default:"200"
Maximum number of messages to return (most recent first). Maximum 1000.

Headers

Authorization: Bearer wbk_your_api_key_here

Response

data
object
Responses include 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"

Example Response

{
  "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"
      }
    ]
  }
}

Errors

StatusCodeDescription
401invalid_keyInvalid or expired API key
403insufficient_permissionsMissing read:ai permission
404not_foundConversation not found
429rate_limitedRate limit exceeded