Skip to content

Ask a question

POST
/api/v1/questions

Answering runs asynchronously: the response is 202 Accepted with the question in its initial state. Poll GET /api/v1/questions/{id} until state is complete. Rate limited to 10 per minute. Consumes credits. Viewers may ask questions; this is the one write that a read-only role is allowed, though the token still needs the write scope.

Media typeapplication/json
object
question
required
object
question
required
string
custom_prompt
string

Extra instructions for the model

answer_detail_level
integer
default: 1
Allowed values: 0 1 2

0 = low, 1 = normal, 2 = high

202

Accepted; poll for the answer

Response body
Media typeapplication/json
object
id
string
question
string
answer
string | null

Set once state is complete

verbatim_answer
boolean

The answer was copied verbatim from a single knowledge base item

state
string
Allowed values: new ready_to_answer references_fetched answered confidence_calculated complete
confidence
number | null
<= 1
confidence_rationale
string | null
answer_detail_level
string
Allowed values: low normal high
custom_prompt
string | null
requires_attention
boolean
attention_points
Array<string> | null

Points a human should check before relying on the answer

sufficient_context
boolean | null

Whether the knowledge base held enough to answer

created_at
string format: date-time
updated_at
string format: date-time
user
One of:

The member who owns or answered a record. id is the numeric database ID.

object
id
integer
name
string
email
string format: email

403

Out of credits, or no active subscription (usage_blocked)

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation

422

The record could not be saved

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation