Skip to content

Get a question and its answer

GET
/api/v1/questions/{id}

answer, confidence and the attention fields are populated once state reaches complete. When sufficient_context is false the knowledge base did not hold enough to answer confidently.

NameType
id
required
string

The record’s prefixed ID

200

The question

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

404

No such record in this account

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