Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

API key for programmatic access (Authorization: Bearer sk-<api_key>)

Body

application/json

Privacy classification endpoint (passthrough)

Proxies privacy classification requests to a token-classification model (e.g. openai/privacy-filter) that returns PII spans with categories and scores. Only the model field is read from the request for routing; the rest is forwarded as-is.

These documentation-only types approximate the request and response bodies for OpenAPI schema generation. The runtime handler still accepts a raw Bytes body and forwards it transparently to the provider.

model
string
required

ID of the model to use for privacy classification.

input
any

Text or list of texts to classify. Either a string or array of strings.

threshold
number<double> | null

Optional minimum confidence score for returned spans (0.0–1.0).

Response

Privacy classification completed successfully

data
any

Per-input classification results; each entry contains spans and per-input usage.

model
string

Model identifier that produced the classification.