Skip to main content
POST
Search the answers of a planning question

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Body

application/json
programs
object[]
required

The programs, each at the version this server rates with or at a pinned version. Each reads only the paths its own contract declares.

Required array length: 1 - 10 elements
path
string
required

The card’s path, such as Policy.drivers[0].occupation.

Maximum string length: 500
Pattern: ^[A-Za-z_][A-Za-z0-9_]*(\[\d+\])*(\.[A-Za-z_][A-Za-z0-9_]*(\[\d+\])*)*$
query
string
default:""

What the person typed.

Maximum string length: 200
limit
integer
Required range: 1 <= x <= 100
answers
object

Every answer so far, when the card’s answers depend on earlier ones (a car’s model on its make). An answer stored at path is left out when the programs are rated.

context
object

The plan request’s context. Send what the plan was sent, so the card is searched in the answers the plan narrowed it to.

asOf
string<date>

The plan request’s asOf.

Response

Up to limit answers, best first.

choices
null[]
required

Each {value, label}, with catchAll where it stands for any answer the list does not name.

noMatch
boolean
notAsked
object[]

The programs that could not be asked: one that could not be read is asked nothing, and one that could not rate answers gave none of the choices they narrow. The match is the other programs’ alone, so an answer only these programs take reads as none. Absent when every program was asked.