Get an agent's public chat link and share slug
POST /Platform/chat/token
Get an agent's public chat link and share slug.
Returns the link of the agent's chat flow: the hosted chat page any visitor can open without an account. Read-only and stable: every call returns the same link until the flow's slug is rotated, and the link does not expire. Anyone holding it can chat with the agent.
Body parameters
agent_id: str. Agent whose chat link to return.expiration: optional int. Deprecated and ignored; links do not expire.
Returns
ChatTokenResponse
url: str. Chat page URL.token: str. The share slug, or the resume HMAC for a resume URL.
Example request
curl -X POST "https://api.hilus.ai/Platform/chat/token" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'