Skip to main content

Track Chat Location

POST 

/v1/chats/:chat_id/location

Record that the current user is viewing chat_id at payload['path'].

The frontend pings this endpoint when a chat becomes active in a panel or when the route changes while a chat is selected. Without it the location table is only populated on user-message send, which orphans chats after /viz/new → /viz/{id} redirects (the user-message that started the chat was sent on /viz/new — no further user message means no /viz/{id} entry).

Request

Responses

Successful Response