Skip to content
StatusSupportDashboard

Content

Classify user-authored text and images synchronously and receive a decision in the response.

Classify content
POST/v1/content
ModelsExpand Collapse
ContentCreateResponse object { content_id, labels, user_id, version }

Synchronous classification result for the submitted content.

content_id: string

SafetyKit identifier for the classified content.

labels: array of object { decision, escalation, label, 2 more } or object { decision, escalation, label, 3 more }

Per-label results for the submitted content.

One of the following:
object { decision, escalation, label, 2 more }
decision: "match" or "not_match" or "review"

Whether the submitted content matches the label.

One of the following:
"match"
"not_match"
"review"
escalation: "none" or "completed" or "error"

Escalation outcome for this label.

One of the following:
"none"
"completed"
"error"
label: string

Label identifier.

score: number

Classifier score between 0 and 1. Higher means more likely matching. Null when no classifier scored the label.

type: "classifier"
object { decision, escalation, label, 3 more }
decision: "match" or "not_match" or "review"

Whether the submitted content matches the label.

One of the following:
"match"
"not_match"
"review"
escalation: "none" or "completed" or "error"

Escalation outcome for this label.

One of the following:
"none"
"completed"
"error"
label: "reference_set_match"
score: number

Similarity between the submitted content and the matched entry.

set_id: string

Identifier of the matched reference set.

type: "similarity"
user_id: string

The user_id from the request.

version: string

The API version that served this request.