Skip to main content
POST
Ask a natural-language question

Authorizations

Authorization
string
header
required

An API key (shumi_sk_…) or a session JWT. Create a key with shumi login and shumi keys create.

Body

application/json
messages
object[]
required

Conversation history. The last message must have role user.

raw
boolean
default:false

Return only steps, the data Shumi fetched, without a written answer.

Response

The answer.

text
string

The written answer. Absent when raw is true.

steps
any[]

The data Shumi fetched to answer.