Skip to main content
POST
/
api
/
prompts
/
ai-chat-stream
Submit a prompt-authoring chat turn for asynchronous streaming.
curl --request POST \
  --url https://api.production.hyperoru.com/api/prompts/ai-chat-stream \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "context": {},
  "message": "<string>",
  "conversation_id": 123,
  "skill_ids": [
    123
  ]
}
'
{
  "status": "<string>",
  "task_id": "<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

Stream task accepted - poll /api/ai-stream

{ "task_id": "...", "status": "queued" } response from async-start endpoints.

status
string
required
Example:

"queued"

task_id
string
required