Get what a chat page needs to render and connect

GET /Platform/chat/bootstrap

Get what a chat page needs to render and connect.

Called by a chat front end after it has a visitor credential: a chat session token from the hosted page, a personal link's token, or a resume token from a resume link. Returns the agent, the socket address, the flow's settings, and mode: agent for a new chat (a personal link included), resume when the credential reopens one conversation. Connect to ws_url with the same credential. Read-only.

When the session is close to expiry, a renewed token comes back in the X-Hilus-Session-Refreshed response header (never in the body); store it for the next call.

Returns

ChatBootstrapResponse

Example request

curl -X GET "https://api.hilus.ai/Platform/chat/bootstrap" \
  -H "Authorization: Bearer $HILUS_API_KEY"