Skip to main content
DELETE
/
v1
/
lexi
/
conversations
/
{id}
Delete Lexi Conversation
curl --request DELETE \
  --url https://api.example.com/v1/lexi/conversations/{id}

Request

Deleting a conversation is irreversible. The conversation row and all of its messages and tool-invocation records are removed. If you merely want to hide a conversation from the sidebar, use PATCH /v1/lexi/conversations/{id} with archived: true instead.

Path Parameters

id
string
required
Conversation UUID to delete.

Headers

Authorization: Bearer wbk_your_api_key_here
Idempotency-Key
string
Optional UUID. Repeated DELETEs with the same key return the same result without erroring.

Response

On success returns HTTP 204 No Content with an empty body. The response still carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID headers for observability.
curl -X DELETE \
  https://data.leadlex.com/functions/v1/api-gateway/v1/lexi/conversations/conv_01HY1 \
  -H "Authorization: Bearer wbk_your_api_key_here" \
  -i

Example Response

HTTP/1.1 204 No Content
X-Request-ID: req_01HY1K0E7V8Q0YXH7DSTX5B3CA

Errors

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