Send a message to an agent and get its reply

POST /Platform/chat/send

Send a message to an agent and get its reply.

Runs one full agent turn, tools included, and returns when the turn is finished. Identity comes from normal org authentication; identity claims in the request are never accepted. To continue, pass the returned conversation_id back on the next call. branch selects the configuration that drives the turn and must match the conversation's branch when continuing one. mock applies to one call only, so send it on every turn of a mocked conversation.

Side effects: a real turn (no mock) runs the agent's tools for real, which can reach people and systems outside Hilus (messages, bookings, writes), and stores the conversation. Each stored assistant message carries metadata.llm_request_id, the id the lab uses to diagnose or replay that reply.

Body parameters

Returns

ChatResponse

Example request

curl -X POST "https://api.hilus.ai/Platform/chat/send" \
  -H "Authorization: Bearer $HILUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'