About this endpoint
What it does
Predicts classifications across one or more tiers in a single POST request. You send one or more content signals in the request body, and the response returns tier-specific prediction lists.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | A URL to classify. Nullable. |
| text | String | No | Text to classify. Nullable. |
| title | String | No | Title associated with the content. Nullable. |
| top_k | Integer | No | Number of predictions to return. Default: 3. Minimum: 1. Maximum: 20. |
| domain | String | No | Domain associated with the content. Nullable. |
| keywords | String | No | Keywords associated with the content. Nullable. |
| tiers | String Array | No | Which tiers to predict, for example ['tier1', 'tier2']. Nullable. |
Response
Returns a JSON object with a tiers object field. tiers is a map whose values are arrays of prediction objects; each prediction object contains label and score fields, and may include additional properties.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| tiers | Object | No | A map of tier names to arrays of prediction objects. Each prediction object includes label as a string and score as a number. The schema allows additional properties. |