---
title: "Assign text to one of the labels you supply - support tickets, intents, topics, spam or not, anything. The returned label is checked against your list, so the model cannot invent a category: an answer outside your labels is rejected rather than passed through. Comes back with a confidence and a one-line reason. Fixed price per call."
method: POST
path: "/v1/tools/classify-text"
---

# Assign text to one of the labels you supply - support tickets, intents, topics, spam or not, anything. The returned label is checked against your list, so the model cannot invent a category: an answer outside your labels is rejected rather than passed through. Comes back with a confidence and a one-line reason. Fixed price per call.

`POST /v1/tools/classify-text`

## Request

- Base URL: `https://agents.dexl.io`
- URL: `https://agents.dexl.io/v1/tools/classify-text`
- Auth: API key in header `X-Payment`

Paid per call via x402. Send without payment to get the exact price in the 402.

## Request body

- object
  - `text` string, required
  - `labels` string[], required: The only categories allowed in the answer.

## Response `200`

The tool output

## Other responses

- `400`: The input did not match the schema
- `402`: Payment required

---

[API](https://skmtc.dev/dexl/apis/dexl-agents.md) · [All operations](https://skmtc.dev/dexl/apis/dexl-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/dexl/apis/dexl-agents/revisions/e3692765c3f7?raw)
