Skip to main content
POST

Authorizations

X-DOMO-Developer-Token
string
header
required

Body

application/json

Request for classifying content into predefined categories using the Messages API.

The Classification service uses LLM structured outputs to reliably classify content into one or more predefined categories. The service dynamically generates JSON schemas based on the provided labels to ensure type-safe responses.

input
object[]
required

The input message content to classify (text, images, documents, etc.)

Text-based message content.

labels
object[]
required

The list of possible classification labels with optional descriptions (2-50 labels required)

classificationType
enum<string>
required

The type of classification: SINGLE_LABEL or MULTI_LABEL

Available options:
SINGLE_LABEL,
MULTI_LABEL
instructions
string

Optional instructions for classification behavior

model
string

The ID of the model to use (optional, uses default if not specified)

modelConfiguration
object

Additional model parameters (temperature, max_tokens, etc.)

sessionId
string<uuid>

AI session ID for associating with existing session

reasoningConfig
object

Configuration for reasoning behavior

Response

Successful classification response.

Response for text classification. Supports both single-label and multi-label classifications uniformly. All classification responses return a list of labels via the output() method.

output
string[]

The classification output - a list of selected labels.

classificationType
enum<string>

The type of classification (SINGLE_LABEL or MULTI_LABEL).

Available options:
SINGLE_LABEL,
MULTI_LABEL
model
string

The ID of the model used for classification.

isCustomerModel
boolean

Whether the model is a customer model (vs Domo provided).

sessionId
string<uuid>

The AI session ID associated with this response.

requestId
string<uuid>

The request ID associated with this response.

modelProviderUsage
object

The token usage from the model provider.