Get Classifier
(v2)GET
Retrieves a classifier by id, with the filters that scope what it runs on, its generation config, and every label it can apply.
curl -X GET "https://api.confident-ai.com/v2/classifiers/{classifierId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<CLASSIFIER-ID>",
"name": "Sentiment",
"description": "Analyzes the emotional tone of user interactions.",
"enabled": true,
"autoClassify": true,
"includeAudio": false,
"dataModel": "TRACE",
"filters": {
"operator": "AND",
"groups": [
{
"operator": "AND",
"filters": [
{
"category": "User Id",
"condition": "Is less than",
"value": "string",
"key": "string"
}
]
}
]
},
"autoGenerationConfig": {
"sampleSize": 200
},
"labels": [
{
"id": "<CLASSIFIER-LABEL-ID>",
"name": "Positive",
"description": "User expresses satisfaction, gratitude, or positive sentiment.",
"enabled": true,
"status": "RECOMMENDED",
"polarity": "HIGHER_IS_BETTER"
}
]
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/workflows",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
classifierIdstringRequiredThe id of the classifier.
Response
Get Classifier succeeded.
successbooleanIndicates if the request was successful.
dataobjectA classifier: what it runs on, how it generates labels, and the labels it can apply.
Show 10 propertiesHide 10 properties
idstringThe id of the classifier, generated by Confident AI.
namestringThe name of the classifier.
descriptionstring | nullWhat this classifier is for, or
nullwhen it has no description.enabledbooleanWhether the classifier runs at all.
autoClassifybooleanWhether incoming items are classified automatically as they arrive.
includeAudiobooleanWhether the item's call recording and any audio in its inputs and outputs are sent to the classifier alongside the text.
dataModelenumWhat kind of production item a classifier labels:
TRACElabels individual traces,SPANlabels a span together with the spans under it,THREADlabels whole conversations. It is fixed when the classifier is created.Show 3 enum valuesHide 3 enum values
TRACESPANTHREAD
filtersobjectA set of filter groups combined by a top-level operator. Each group combines its filter rows by its own operator, and each row matches one property, such as
NameorUser Id, against a value with a condition such asIsorContains.Show 2 propertiesHide 2 properties
operatorenumHow the groups combine:
ANDmatches a record only when every group matches it, andORmatches it when any one group does.Show 2 enum valuesHide 2 enum values
ANDOR
groupslist of objectsThe groups of filters to apply, each combining its own filters with its own operator.
Show 2 propertiesHide 2 properties
operatorenumShow 2 enum valuesHide 2 enum values
ANDOR
filterslist of objectsShow 4 propertiesHide 4 properties
categoryenumShow 100 enum valuesHide 100 enum values
User IdCustomer IdCustomer NameThread IdTrace UUIDTrace NameTrace VersionTrace StatusTrace TagsTraceSpan UUIDNameSpan NameSpan TypeSpan StatusMetrics StatusError StatusCalled toolHanded off toHanded off byNearest parent of typeAnywhere underTop levelNameModelProviderIntegrationInput argumentEmbedderChunk SizeTop-KHyperparameterDatasetDataset NameTest Run IDIdentifierTest FileStatusOfficialEvals ModeTests PassedTests FailedPass RateFail RateStar RatingThumbs RatingExplanationExpected OutputExpected OutcomeAnnotatorEnd UserAnnotation TypeAnnotation NameAnnotation DateAnnotation RatingAnnotation ThumbsAnnotation ChoiceAnnotation Yes / NoAnnotation TextMetric ScoreMetric StatusMetric VersionNameMetadataClassifierClassifier VersionMetricMetric NameTrace CountTest Case IDRequested review fromAssigned toTagsLabelsTools CalledFinalizedGolden IDIngestion TaskLatencyEnvironmentReview flagVulnerabilityVulnerability TypeAttack MethodRisk CategoryFrameworkAssessment IDPrompt AliasPrompt VersionPrompt LabelPrompt Commit HashPromptAnnotationsFailure ModeRecommendedSub-mode NameSub-mode RecommendedSub-mode CertaintyStatus CodeActor Type
conditionenum | enum | enum | enum | enum | enum | enum | enum | enum | enumShow 10 variantsHide 10 variants
enum
Show 6 enum valuesHide 6 enum values
Is less thanIs equal or less thanIs greater thanIs equal or greater thanIs equal toDoes not equal
- OR
enum
Show 2 enum valuesHide 2 enum values
HasHas not
- OR
enum
Show 2 enum valuesHide 2 enum values
IsIs not
- OR
enum
Show 2 enum valuesHide 2 enum values
Is one ofIs not one of
- OR
enum
Show 4 enum valuesHide 4 enum values
IsIs notIs emptyIs not empty
- OR
enum
Show 2 enum valuesHide 2 enum values
ContainsDoes not contain
- OR
enum
Show 3 enum valuesHide 3 enum values
ContainsContains onlyDoes not contain
- OR
enum
Show 4 enum valuesHide 4 enum values
Has decreased by more thanHas decreased by less thanHas increased by more thanHas increased by less than
- OR
enum
Show 1 enum valueHide 1 enum value
Has changed from
- OR
enum
Show 1 enum valueHide 1 enum value
Is between
valuestring | number | list of stringsShow 3 variantsHide 3 variants
string
- OR
number
- OR
list of strings
keystring
autoGenerationConfigobject | nullHow many recent traces, spans or threads a generation run samples and classifies.
Show 1 propertyHide 1 property
sampleSizeintegerHow many traces, spans or threads to sample. Defaults to 200.
labelslist of objectsThe labels this classifier can apply.
Show 6 propertiesHide 6 properties
idstringThe id of the label, generated by Confident AI.
namestringThe name of the label, unique within the classifier.
descriptionstringWhen this label applies. This is the instruction the classifying model reads, so it states the condition rather than restating 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 a signal is good, bad, or neither, for trend reporting.
Show 3 enum valuesHide 3 enum values
HIGHER_IS_BETTERLOWER_IS_BETTERNEUTRAL
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.