Skip to main content
POST
/
v1
/
evaluator-bindings
Create an evaluator binding
curl --request POST \
  --url https://api-sandbox.featherhq.com/v1/evaluator-bindings \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "evaluator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "scenario_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_critical": false
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "evaluator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "scope": "<string>",
  "scenario_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_critical": true,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Create a binding scoped to either a scenario or an agent.

The scope discriminator must match the populated id: scope='scenario' requires scenario_id and forbids agent_id (and vice-versa).

is_critical=True marks this binding's runs as load-bearing for the session's headline success/partial/failure verdict. Non-critical bindings still run and display, but don't move the session pill.

evaluator_id
string<uuid>
required
scope
enum<string>
required
Available options:
scenario,
agent
scenario_id
string<uuid> | null
agent_id
string<uuid> | null
is_critical
boolean
default:false

Response

Successful Response

id
string<uuid>
required
organization_id
string<uuid>
required
evaluator_id
string<uuid>
required
scope
string
required
scenario_id
string<uuid> | null
required
agent_id
string<uuid> | null
required
is_critical
boolean
required
created_at
string<date-time>
required