Get Lexi Conversation
curl --request GET \
--url https://api.example.com/v1/lexi/conversations/{id}import requests
url = "https://api.example.com/v1/lexi/conversations/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/lexi/conversations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/lexi/conversations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/lexi/conversations/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/lexi/conversations/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/lexi/conversations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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>"
}
]
}
}Lexi AI
Get Lexi Conversation
Retrieve a single Lexi conversation with its full message history
GET
/
v1
/
lexi
/
conversations
/
{id}
Get Lexi Conversation
curl --request GET \
--url https://api.example.com/v1/lexi/conversations/{id}import requests
url = "https://api.example.com/v1/lexi/conversations/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/lexi/conversations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/lexi/conversations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/lexi/conversations/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/lexi/conversations/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/lexi/conversations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
string
required
Conversation UUID returned by
GET /v1/lexi/conversations.Query Parameters
boolean
default:"false"
When
true, includes the intermediate tool-invocation records alongside user and assistant messages.integer
default:"200"
Maximum number of messages to return (most recent first). Maximum 1000.
Headers
Authorization: Bearer wbk_your_api_key_here
Response
object
Show properties
Show properties
string
Conversation UUID
string
Conversation title
object
Entity context:
contact_id, deal_id, matter_id, pageboolean
Archive state
string
ISO 8601 creation timestamp
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"
import requests
API_KEY = "wbk_your_api_key_here"
conv_id = "conv_01HY1"
r = requests.get(
f"https://data.leadlex.com/functions/v1/api-gateway/v1/lexi/conversations/{conv_id}",
headers={"Authorization": f"Bearer {API_KEY}"},
)
convo = r.json()["data"]
print(convo["title"], "messages:", len(convo["messages"]))
const id = 'conv_01HY1';
const res = await fetch(
`https://data.leadlex.com/functions/v1/api-gateway/v1/lexi/conversations/${id}`,
{ headers: { Authorization: 'Bearer wbk_your_api_key_here' } },
);
const { data } = await res.json();
console.log(data.messages.length);
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
| 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 |