Skip to main content
POST
Create a heuristic classifier

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Create/update payload for a classifier. name is the stable rule name referenced by Decisions and emitted into the router YAML.

name
string
required
Required string length: 1 - 80
domain
string
required
Minimum string length: 1
description
string | null
classifier_type
enum<string>
default:keyword
Available options:
keyword,
embedding
keywords
string[]
phrases
string[]
operator
enum<string>
default:OR
Available options:
OR,
AND
threshold
number
default:0.7
Required range: 0 <= x <= 1
case_sensitive
boolean
default:false
enabled
boolean
default:true

Response

Successful Response

A persisted heuristic classifier (keyword/embedding) mapping prompts to a governance domain. Compiled into the router config on publish.

id
string
required
name
string
required
domain
string
required
description
string | null
classifier_type
enum<string>
default:keyword
Available options:
keyword,
embedding
keywords
string[]
phrases
string[]
operator
enum<string>
default:OR
Available options:
OR,
AND
threshold
number
default:0.7
case_sensitive
boolean
default:false
enabled
boolean
default:true
created_by
string | null
created_at
string | null
updated_at
string | null