Chat Widget

End Conversation

End a conversation at the visitor's request (Quick Exit).

Marks the conversation completed and triggers the post-processing pipeline. Idempotent — ending an already-completed conversation returns ended=false.

Auth: X-Session-Token header, or a JSON body {"session_token": ...} as a fallback for navigator.sendBeacon, which cannot set headers and must send text/plain to avoid a CORS preflight — so the body is parsed manually rather than via a Pydantic model.

post/chat/{conversation_id}/end

Path parameters

conversation_idstring uuid required

Response

Successful Response

endedboolean required

True if this call ended the conversation; false if it was already completed/expired

Changes

No recorded changes to this endpoint across all 1 revision of this API.