List Classifier Labels
GEThttps://api.confident-ai.com/v1/classifiers/{classifierId}/labels
Lists a classifier's labels alphabetically, as summary rows. This is also how you read the results of a generation run — generated suggestions arrive with status RECOMMENDED. Retrieve a label by id for its description and polarity. Requires the Starter plan or above.
curl -X GET "https://api.confident-ai.com/v1/classifiers/{classifierId}/labels" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"labels": [
{
"id": "LABEL-ID",
"name": "Positive",
"enabled": true,
"status": "ACTIVE"
}
]
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/workflows"
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
classifierIdstringRequiredThe unique identifier of the classifier.
Response
successbooleanIndicates if the request was successful.
dataobjectShow 1 propertyHide 1 property
labelslist of objectsThe classifier's labels, alphabetically, as summary rows.
Show 4 propertiesHide 4 properties
idstringThe unique identifier of the label.
namestringThe label's name.
enabledbooleanWhether the label can be applied.
statusenumACTIVElabels are in use;RECOMMENDEDones are generated suggestions awaiting review.Show 2 enum valuesHide 2 enum values
RECOMMENDEDACTIVE
linkstringA link to the workflows page.