Skip to main content
POST
Public agent chat (NDJSON stream)

Authorizations

Authorization
string
header
required

Workspace API key (sk_ws_…)

Path Parameters

agentId
string
required

Project (agent) id

Body

application/json
prompt
string
required
client
string

Salty hash identifying the visitor (for per-visitor rate limiting).

threadKey
string

Conversation thread id (resumes a thread server-side).

history
object[]

Preceding turns, oldest first.

section
string

A page/section id the wrapper scopes the answer to.

brandSlug
string

Brand slug override.

Response

NDJSON stream of ChatStreamEvent, one per line

type
string
required
text
string

Text fragment (for token/delta events).

content
string

Full accumulated text on completion (some events).

message
string