Skip to main content
POST
Add a test question

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Any unique string (e.g. a UUID). Retrying with the same key within 24 hours replays the first response instead of repeating the change.

Path Parameters

Body

application/json
question
string
required
Maximum string length: 1000
Example:

"How long does delivery take?"

expectedSourceIds
string[]

Knowledge source ids the search must return (any one counts). Ids of other agents are dropped.

Maximum array length: 10
expectedFacts
string[]

Facts the answer must state, up to 500 characters each; an AI judge checks them. Give at least one fact or one source.

Maximum array length: 10
Example:

Response

id
string
required
question
string
required
expectedSourceIds
string[]
required
expectedSources
object[]
required
expectedFacts
string[]
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required