Skip to main content
GET
/
agents
/
{namespace_slug}
/
{agent_name}
/
branches
List Branches by Agent
curl --request GET \
  --url https://api.example.com/agents/{namespace_slug}/{agent_name}/branches
{
  "branches": [
    {
      "agent_id": "<string>",
      "git_branch": "<string>",
      "git_branch_normalized": "<string>",
      "id": "<string>",
      "replicas": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "current_version": {
        "deployed_at": "2023-11-07T05:31:56Z",
        "git_hash": "<string>",
        "id": "<string>",
        "status": "DEPLOYING",
        "git_message": "",
        "source_filesystem_id": "<string>"
      },
      "retired_at": "2023-11-07T05:31:56Z",
      "retired_reason": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.terminaluse.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

namespace_slug
string
required
agent_name
string
required

Query Parameters

include_retired
boolean
default:false

Include retired branches in results

Response

Successful Response

Response for listing branches.

branches
BranchResponse · object[]
required

List of branches

total
integer
required

Total count