List Classifier Versions
(v2)GET
Lists a classifier's version history, newest first, so the first entry is what the classifying model is shown today. A version is appended whenever the description or the set of labels the model can apply changes, which includes RECOMMENDED labels added by a generation run or by the model itself while the classifier classifies automatically. A version can be restored in the app, not through this API. Requires the Starter plan or above.
curl -X GET "https://api.confident-ai.com/v2/classifiers/{classifierId}/versions" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"versions": [
{
"id": "<CLASSIFIER-VERSION-ID>",
"classifierId": "<CLASSIFIER-ID>",
"sequence": 2,
"version": "00.00.02",
"description": "Analyzes the emotional tone of user interactions.",
"labels": [
{
"name": "Positive",
"description": "User expresses satisfaction, gratitude, or positive sentiment."
}
],
"createdAt": "2025-01-18T16:45:00.000Z",
"author": {
"id": "<USER-ID>",
"email": "jane@acme.com",
"name": "Jane Doe",
"image": null
}
}
],
"totalClassifierVersions": 2,
"page": 1,
"pageSize": 25
},
"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.
Query parameters
pageintegerdefault: 1The page to return. Defaults to 1.
pageSizeintegerdefault: 25The number of versions per page, at most 100. Defaults to 25.
Response
List Classifier Versions succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne page of a classifier's version history, with the total across all pages.
Show 4 propertiesHide 4 properties
versionslist of objectsThe classifier's history for the current page, newest version first, so the first entry of the first page is the current version.
Show 8 propertiesHide 8 properties
idstringThe id of the version, generated by Confident AI.
classifierIdstringThe id of the classifier this version belongs to.
sequenceintegerThe position of this version in the classifier's history, counting from 1. The highest sequence is the current version, which is the one new classifications run against.
versionstringThe human-readable label for
sequence, written as three two-digit groups that roll over at 100, so sequence 2 is00.00.02and sequence 100 is00.01.00.descriptionstring | nullThe classifier description the model was shown, or null when it had none.
labelslist of objectsThe labels the model could apply, ordered by name: enabled ACTIVE labels, plus enabled RECOMMENDED ones when the classifier classifies automatically.
Show 2 propertiesHide 2 properties
namestringThe name of the label.
descriptionstringWhen the label applies, as the classifying model read it.
createdAtstringWhen this version was snapshotted.
authorobject | nullA Confident AI user, as referenced by the records they created.
Show 4 propertiesHide 4 properties
idstringThis is the id of the user.
emailstringThis is the email address of the user.
namestring | nullThis is the display name of the user, or
nullwhen they have not set one.imagestring | nullThis is the URL of the user's avatar, or
nullwhen they have none.
totalClassifierVersionsintegerThe number of versions this classifier has, across every page.
pageintegerThe page this response covers.
pageSizeintegerThe number of versions per page.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.