Retrieve Classifier Label
GEThttps://api.confident-ai.com/v1/classifiers/{classifierId}/labels/{labelId}
Retrieves a single label on a classifier. Requires the Starter plan or above.
curl -X GET "https://api.confident-ai.com/v1/classifiers/{classifierId}/labels/{labelId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"label": {
"id": "LABEL-ID",
"name": "Positive",
"description": "User expresses satisfaction or gratitude.",
"enabled": true,
"status": "ACTIVE",
"polarity": "HIGHER_IS_BETTER"
}
},
"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.
labelIdstringRequiredThe unique identifier of the label.
Response
successbooleanIndicates if the request was successful.
dataobjectShow 1 propertyHide 1 property
labelobjectOne label a classifier can apply.
Show 6 propertiesHide 6 properties
idstringThe unique identifier of the label.
namestringThe label's name.
descriptionstringWhen this label applies. This is the instruction the classifying model reads, so it should describe the condition rather than restate the 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
polarityenumWhether more of this label is good, bad, or neither, for trend reporting.
Show 3 enum valuesHide 3 enum values
HIGHER_IS_BETTERLOWER_IS_BETTERNEUTRAL
linkstringA link to the workflows page.