Skip to main content
POST
Match a said or read answer to 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+\])*)*$
value
any | null

The answer as said or read: text, or a value.

answers
object

Every answer so far. Send it when the card’s answers depend on earlier ones, such as a car model on its make. An answer already stored at path is left out when the programs are rated, so it never narrows its own choices.

Response

The matched value, the candidates, or none.

exact
any | null

The stored value to answer with.

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.