Skip to main content
POST
Ask the agent a question

Authorizations

Authorization
string
header
required

The workspace secret key (sk_…) as Authorization: Bearer sk_…. X-Peeve-Key is accepted too.

Body

application/json
message
string
required

The question, in the end user's words.

external_user_id
string

Your id for the person asking, so the answer is grounded in who they are.

conversation_id
string<uuid>

Continue an existing conversation. Omit to start one.

Response

A discriminated union on path. Handle both branches.

path
string
Allowed value: "answer"
say
string

The grounded answer.

conversation_id
string<uuid>