Skip to main content
POST
/
api
/
hyper-ai
/
chat
Server-sent events stream for a Hyper AI chat turn.
curl --request POST \
  --url https://api.production.hyperoru.com/api/hyper-ai/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "context": {},
  "message": "<string>",
  "conversation_id": 123,
  "skill_ids": [
    123
  ]
}
'
{
  "code": "<string>",
  "details": {},
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Session token issued by POST /api/users/login, transported as Authorization: Bearer <token>.

Body

application/json

Chat-start request body.

context
object
required
message
string
required
conversation_id
integer<int64> | null
skill_ids
integer<int64>[] | null

Response

Server-Sent Events stream. The stream emits one of four event kinds: event: status (handshake + keepalives), event: token (incremental text chunks), event: tool_call (tool call metadata the agent invoked), event: done (final marker), or event: error (stream failed). Each event's data: line is a JSON object.