---
title: "The topics a text is about"
method: POST
path: "/classify"
---

# The topics a text is about

`POST /classify`

## Request

- Base URL: `https://www.edgechat.ai/api/v1`
- URL: `https://www.edgechat.ai/api/v1/classify`
- Auth: none declared

## Query parameters

- `limit` integer
- `fields` string

## Request body

- object
  - `text` string, required

## Response `200`

The topics

- ClassifyResponse
  - `topics` TopicScore[]
    - `id` string
    - `label` string
    - `score` number
    - `entities` integer
    - `path` object[]
    - `api_url` string
  - `top_level` TopicScore[]
    - `id` string
    - `label` string
    - `score` number
    - `entities` integer
    - `path` object[]
    - `api_url` string
  - `entities` integer
  - `license` object
    - `name` string, required
    - `url` string, required
    - `summary` string, required

## Other responses

- `400`: Bad request
- `413`: More than 20,000 characters
- `429`: Rate limited
- `503`: The derived data this route reads is not published yet

---

[API](https://skmtc.dev/edgechat/apis/edgepedia-api.md) · [All operations](https://skmtc.dev/edgechat/apis/edgepedia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/edgechat/apis/edgepedia-api/revisions/cd4eb5972d56?raw)
