Skip to main content
POST
/
models
/
{handle}
/
traits
cURL
curl -X POST https://u22a8.ai/v1/models/acme.support-tone/traits \
  -H "Authorization: Bearer $U22A8_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"traits": [{"name": "Warmth", "positive_label": "warm", "negative_label": "cold"}]}'
{
  "traits": [
    {
      "key": "<string>",
      "name": "<string>",
      "positive_label": "<string>",
      "negative_label": "<string>",
      "sample_count": 123,
      "positive_samples": 123,
      "negative_samples": 123,
      "description": "",
      "kind": "extrinsic",
      "discrimination": 123,
      "explained_variance": 123,
      "anchor_sample_ids": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://u22a8-police-sweep-2026-06-01.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Draft-only — trait and sample edits apply only while the model is in the draft state. A trained (ready) model returns 409; the samples and traits are frozen into its versions.

Authorizations

Authorization
string
header
required

API key issued in the platform console, sent as Authorization: Bearer <key>.

Path Parameters

handle
string
required

Model handle, e.g. 'u22a8.technical-writing'.

Example:

"u22a8.technical-writing"

Body

application/json
traits
TraitInput · object[]
required
Minimum array length: 1

Response

Successful Response

traits
TraitDetail · object[]
required