Launch Week 02 wrapped — explore all five launches

List Commits

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

Retrieves a list of all the commits associated with a prompt

GET/v1/prompts/{alias}/commits
curl -X GET "https://api.confident-ai.com/v1/prompts/{alias}/commits" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "commits": [
      {
        "id": "144aa01d-af4d-4054-83fa-78e2301d94fb",
        "hash": "bab04ce",
        "message": "Committed from API"
      }
    ]
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • aliasstringRequired

    The unique alias of the prompt.

Query parameters

  • branchstring

    The unique name of a branch.

Response

  • successboolean

    This is true if the prompt versions were successfully retrieved.

  • dataobject

    Show 1 propertyHide 1 property
    • commitslist of objects

      Show 3 propertiesHide 3 properties
      • idstring

        The id of a commit generated by Confident AI, not to be confused with prompt id or commit hash.

      • hashstring

        The hash of a commit generated by Confident AI.

      • messagestring

        The message associated with a commit, not to be confused with a prompt's message.

  • deprecatedboolean

    This is true if this endpoint is deprecated.

Built byConfident AI