For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Trust CenterStatusSupportGet a demoPlatform
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
    • Data Models
    • API Conventions
  • Data Models
      • GETList Prompts
      • POSTPush Prompts
        • GETList Commits
        • GETPull Prompts By Commit
  • Evals
  • Legacy
LogoLogo
Trust CenterStatusSupportGet a demoPlatform
Data ModelsPromptsCommits

List Commits

GET
https://api.confident-ai.com/v1/prompts/:alias/commits
GET
/v1/prompts/:alias/commits
$curl -G https://api.confident-ai.com/v1/prompts/PROMPT-ALIAS/commits \
> -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
> -d branch=MY-BRANCH
200Retrieved
1{
2 "success": true,
3 "data": {
4 "commits": [
5 {
6 "id": "144aa01d-af4d-4054-83fa-78e2301d94fb",
7 "hash": "bab04ce",
8 "message": "Committed from API"
9 }
10 ]
11 },
12 "deprecated": false
13}
Retrieves a list of all the commits associated with a prompt
Was this page helpful?
Previous

Pull Prompts By Commit

Next
Built with

Path parameters

aliasstringRequired
The unique alias of the prompt.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Query parameters

branchstringOptional
The unique name of a branch.

Response

successboolean
This is true if the prompt versions were successfully retrieved.
dataobject
deprecatedboolean
This is true if this endpoint is deprecated.