Skip to main content
PATCH
/
v1
/
lexi
/
conversations
/
{id}
Update Lexi Conversation
curl --request PATCH \
  --url https://api.example.com/v1/lexi/conversations/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "archived": true,
  "context": {}
}
'
{
  "data": {
    "id": "<string>",
    "title": "<string>",
    "archived": true,
    "context": {},
    "updated_at": "<string>"
  }
}

Request

Path Parameters

id
string
required
Conversation UUID.

Headers

Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json
Idempotency-Key
string
Optional UUID for retry deduplication.

Body Parameters

title
string
New title. 1 - 200 characters.
archived
boolean
true to archive, false to restore.
context
object
Updated entity context: contact_id, deal_id, matter_id, or null to clear a field.
At least one field must be provided.

Response

data
object
The updated conversation object (same shape as GET /v1/lexi/conversations/{id} without messages).
Responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
curl -X PATCH \
  https://data.leadlex.com/functions/v1/api-gateway/v1/lexi/conversations/conv_01HY1 \
  -H "Authorization: Bearer wbk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"title": "Acme Series B briefing"}'

Example Response

{
  "data": {
    "id": "conv_01HY1",
    "title": "Acme Series B briefing",
    "archived": false,
    "context": { "contact_id": "123e4567-e89b-12d3-a456-426614174000" },
    "updated_at": "2026-04-17T10:45:00Z"
  }
}

Errors

StatusCodeDescription
400validation_errorNo updatable fields provided or title too long
401invalid_keyInvalid or expired API key
403insufficient_permissionsMissing write:ai permission
404not_foundConversation not found
429rate_limitedRate limit exceeded