Introducing Confident Voice: Watch the Launch Video Now

List Prompt Labels

(v2)

GET

Lists every label defined on the prompt, in alphabetical order, each with the version it points at.

GET/v2/prompts/{promptId}/labels
curl -X GET "https://api.confident-ai.com/v2/prompts/{promptId}/labels" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "labels": [
      {
        "label": "production",
        "version": "00.00.02"
      }
    ]
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

Response

List Prompt Labels succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    The labels defined on a prompt.

    Show 1 propertyHide 1 property
    • labelslist of objects

      This is the list of labels defined on the prompt, in alphabetical order, each with the version it points at.

      Show 2 propertiesHide 2 properties
      • labelstring

        The label, unique within the prompt.

      • versionstring

        The version number the label points at.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI