List Tool Versions
(v2)GET
Lists a tool's versions, newest first, so the first is its latest. Changing a tool's mode or schema adds a version.
curl -X GET "https://api.confident-ai.com/v2/tools/{toolId}/versions" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"versions": [
{
"version": "00.00.02",
"mode": "ALLOW_ADDITIONAL",
"schema": {
"type": "object",
"properties": {
"customerId": {
"type": "string",
"description": "The id of the customer to look up."
},
"nameFormat": {
"type": "string",
"enum": [
"FULL",
"FIRST"
],
"description": "Whether to return the full name or only the first name."
}
},
"required": [
"customerId"
]
},
"createdAt": "2025-01-18T16:45:00.000Z"
}
],
"totalToolVersions": 2,
"page": 1,
"pageSize": 25
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
toolIdstringRequiredThe id of the tool.
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 Tool Versions succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne page of a tool's versions, with the total across all pages.
Show 4 propertiesHide 4 properties
versionslist of objectsThe tool's versions for the current page, newest first.
Show 4 propertiesHide 4 properties
versionstringThe version of the tool.
modeenumThis is the mode for your tool input fields, which controls whether fields outside the schema are allowed.
Show 3 enum valuesHide 3 enum values
ALLOW_ADDITIONALNO_ADDITIONALSTRICT
schemaobjectThe JSON Schema for the tool's input. List each parameter under
propertieswith atype, and name the mandatory ones inrequired. A parameter can also have adescription, anenumof allowed values, oritemsfor an array. Whether extra properties are allowed is set bymode.createdAtstringWhen the version was saved.
totalToolVersionsintegerThe number of versions this tool has.
pageintegerThe page this response covers.
pageSizeintegerThe number of versions per page.
deprecatedbooleanIndicates if this endpoint is deprecated.