Launch Week 02 wrapped — explore all five launches

List Versions

GEThttps://api.confident-ai.com/v2/prompts/{promptId}/versions

Lists every version released for the prompt, oldest first.

GET/v2/prompts/{promptId}/versions
curl -X GET "https://api.confident-ai.com/v2/prompts/{promptId}/versions" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "versions": [
      {
        "id": "<PROMPT-VERSION-ID>",
        "version": "00.00.01"
      }
    ],
    "type": "TEXT"
  },
  "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 Versions succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    Show 2 propertiesHide 2 properties
    • versionslist of objects

      This is the list of versions released for the prompt, oldest first.

      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 number.

      • versionstring

        This is the version number of the prompt version.

    • typeenum

      This is the type of the prompt, which can be either a simple text or a list of messages.

      Show 2 enum valuesHide 2 enum values
      • TEXT
      • LIST
  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI