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 Branches
        • POSTCreate Branch
        • PUTUpdate Branch
        • DELDelete Branch
  • Evals
  • Legacy
LogoLogo
Trust CenterStatusSupportGet a demoPlatform
Data ModelsPromptsBranches

List Branches

GET
https://api.confident-ai.com/v1/prompts/:alias/branches
GET
/v1/prompts/:alias/branches
$curl https://api.confident-ai.com/v1/prompts/PROMPT-ALIAS/branches \
> -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200Retrieved
1{
2 "success": true,
3 "data": {
4 "branches": [
5 {
6 "id": "br_123456",
7 "name": "main"
8 },
9 {
10 "id": "br_123789",
11 "name": "NewBranch"
12 }
13 ]
14 },
15 "deprecated": false
16}
Retrieves a list of all the branches associated with a prompt
Was this page helpful?
Previous

Create Branch

Next
Built with

Path parameters

aliasstringRequired
The unique alias of the prompt.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Response

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