Skip to main content
POST
cURL
Related guide: Classify guide. See the Classify guide for a walkthrough with examples.

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 the classify model to use, for example typesafe/jev-latest.

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.

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 model that served the request, for example typesafe/jev-latest.

usage
object
required

The usage information for the request.