Skip to main content
POST
Classify is deprecated. Use Create decisions and orq.router.decisions.create() for new integrations. Existing /classify clients remain supported with the same request and response contract.
See the Decisions guide for examples and migration instructions.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

ID of a model that supports native or emulated classify, including openai/gpt-6-luna.

questions
object
required

Typed questions keyed by an identifier of your choice. Each answer is returned under the same key.

state
required

The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.

fallbacks
object[] | null

Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks. Image requests require native OpenAI image-capable fallbacks.

Maximum array length: 10
identity
object

The identity to attach to the trace.

metadata
object

Key-value metadata attached to the trace.

name
string

The name to display on the trace. If not specified, the default system name will be used.

retry
object

Retry configuration for the request.

Response

Returns one answer per question.

answers
object
required

Answers keyed by the question identifiers from the request.

model
string
required

The requested ID of the model that answered. This can be a fallback model.

usage
object
required

The usage information for the request.

telemetry
object

OpenTelemetry trace and span identifiers for this request.