Skip to main content
POST
Create Metric

Headers

x-anyreach-org
string | null

Organization ID for user PATs (pat_ prefix tokens)

Body

application/json

Schema for API requests to create a new metric (excludes organization_id).

key is optional — slugified from the name when omitted.

name
string
required
key
string | null
description
string | null
metric_kind
enum<string>
default:objective
Available options:
objective,
perceptual
modality
enum<string>
default:transcript
Available options:
transcript,
audio
perceiver
string | null
panel_size
integer
default:1
Required range: 1 <= x <= 10
routing_policy
Routing Policy · object | null
gate_predicate
Gate Predicate · object | null
criteria
CriterionItemRequest · object[]

Response

Successful Response