Serve the hosted chat page
GET /Platform/chat/page
Serve the hosted chat page.
Returns the HTML page a visitor chats on (unauthenticated; the credential
is in the link). Open it with the chat's share slug as ?token= for a
new chat: the page is issued a one-hour chat session token and connects
to the visitor chat socket. A resume link carries its token in the URL
fragment instead (#resume=...); the page reads it in the browser and
reopens that one conversation. A personal link does the same with
#link=... and starts a new chat with that link's values. When a
link has both a slug and a fragment, the slug wins. An
invalid slug returns an error page, never the chat.
Query parameters
token: optional str. The chat's share slug (sh_...) for a new chat; omit for a resume or personal link.
Returns
The HTML page. Sent as text/html, not JSON.
Example request
curl -X GET "https://api.hilus.ai/Platform/chat/page" \
-H "Authorization: Bearer $HILUS_API_KEY"