Skip to main content
POST
/
models
/
{handle}
/
score
curl https://u22a8.ai/v1/models/u22a8.commit-message/score \
  -H "Authorization: Bearer $U22A8_API_KEY" \
  -H "Content-Type: text/plain" \
  --data-binary 'Fix race condition in worker dispatch by draining the in-flight queue before shutdown'
{
  "scores": {},
  "composite": 123,
  "confidence": "moderate",
  "headroom": 123,
  "detail": {},
  "input_tokens": 0,
  "metadata": {
    "request_id": "<string>",
    "version_id": "v37",
    "sample_ids": [
      123
    ]
  }
}

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.

Send content as JSON, or the raw text with Content-Type: text/plain. A URL in content is fetched and its extracted text is scored. Set Accept: text/plain for a bar-chart rendering instead of JSON. An optional feedback map captures labels as new samples for continuous learning. The full response shape is documented in the score card.

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

content
string
required

Text or URL to score. URLs are auto-fetched.

Example:

"https://example.com/article"

traits
string[] | null

Score only these traits. Omit to score all.

feedback
Feedback · object

Optional {trait_key_or_name: label_or_quality} map for continuous learning. When supplied, each entry is captured as a labelled sample alongside the score. Values may be a polarity label ("positive"|"negative"|"good"|...) or a float in [0, 1]. Rejected with feature_unavailable on models with zero-data-retention enabled.

Example:
{ "clarity": "positive", "depth": 0.8 }

Response

Successful Response

scores
Scores · object
required
composite
integer
required
confidence
string
default:moderate
headroom
integer | null
detail
Detail · object
input_tokens
integer
default:0
metadata
ScoreMetadata · object

Audit and lifecycle metadata attached to a score response.

version_id is the active snapshot the score served from, formatted as "vN" to match the pinned-handle form (handle@vN); null before the first train. sample_ids is populated only when the request included a feedback block — one id per trait whose feedback was captured.