Launch Week 02 wrapped — explore all five launches

List Versions

GEThttps://api.confident-ai.com/v1/prompts/{alias}/versions

Retrieves a list of all versions associated with a given prompt alias.

GET/v1/prompts/{alias}/versions
curl -X GET "https://api.confident-ai.com/v1/prompts/{alias}/versions" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "textVersions": [
      {
        "id": "prm_xyz456",
        "version": "00.00.01"
      }
    ],
    "messagesVersions": null
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • aliasstringRequired

    The unique alias of the prompt.

Response

  • successboolean

    This is true if the prompt versions were successfully retrieved.

  • dataobject

    Show 2 propertiesHide 2 properties
    • textVersionslist of objects

      This is the list of versions associated with the text prompt, which is null if the prompt is a messages prompt.

      Show 2 propertiesHide 2 properties
      • idstring

        This is the id of the prompt version generated by Confident AI, not to be confused with the version.

      • versionstring

        This is the version number of a prompt version.

    • messagesVersionslist of objects

      This is the list of versions associated with the messages prompt, which is null if the prompt is a text prompt.

      Show 2 propertiesHide 2 properties
      • idstring

        This is the id of the prompt version generated by Confident AI, not to be confused with the version.

      • versionstring

        This is the version number of a prompt version.

  • deprecatedboolean

    This is true if this endpoint is deprecated.

Built byConfident AI