Launch Week 02 wrapped — explore all five launches

List Commits

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

Lists the commits of the prompt, newest first. Pass branch to list only the commits reachable from that branch.

GET/v2/prompts/{promptId}/commits
curl -X GET "https://api.confident-ai.com/v2/prompts/{promptId}/commits" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "commits": [
      {
        "id": "<COMMIT-ID>",
        "hash": "bab04ce",
        "message": "Committed from API"
      }
    ]
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

Query parameters

  • branchstring

    The name of the branch to read from. Defaults to main when omitted.

Response

List Commits succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    Show 1 propertyHide 1 property
    • commitslist of objects

      This is the list of commits on the prompt, newest first.

      Show 3 propertiesHide 3 properties
      • idstring

        The id of a commit generated by Confident AI, not to be confused with the prompt id or the 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 messages.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI