List Prompt Labels
(v2)GET
Lists every label defined on the prompt, in alphabetical order, each with the version it points at.
curl -X GET "https://api.confident-ai.com/v2/prompts/{promptId}/labels" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"labels": [
{
"label": "production",
"version": "00.00.02"
}
]
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
promptIdstringRequiredThe unique id of the prompt.
Response
List Prompt Labels succeeded.
successbooleanIndicates if the request was successful.
dataobjectThe labels defined on a prompt.
Show 1 propertyHide 1 property
labelslist of objectsThis is the list of labels defined on the prompt, in alphabetical order, each with the version it points at.
Show 2 propertiesHide 2 properties
labelstringThe label, unique within the prompt.
versionstringThe version number the label points at.
deprecatedbooleanIndicates if this endpoint is deprecated.