> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yertle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Branches

> List all branches for a node.

Returns each branch with its head commit, base branch, latest commit
message, and last-activity timestamp — enough to power a branch picker
or a "recent branches" view without follow-up requests.



## OpenAPI

````yaml get /orgs/{org_id}/nodes/{node_id}/branches
openapi: 3.1.0
info:
  title: Flow API
  description: Content-addressing backend with Git-like versioning
  version: 1.0.0
servers:
  - url: https://api.yertle.com
    description: Production
security: []
paths:
  /orgs/{org_id}/nodes/{node_id}/branches:
    get:
      tags:
        - branches
      summary: List Branches
      description: |-
        List all branches for a node.

        Returns each branch with its head commit, base branch, latest commit
        message, and last-activity timestamp — enough to power a branch picker
        or a "recent branches" view without follow-up requests.
      operationId: list_branches_orgs__org_id__nodes__node_id__branches_get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
        - name: node_id
          in: path
          required: true
          schema:
            type: string
            title: Node Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BranchListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BranchListResponse:
      properties:
        branches:
          items:
            $ref: '#/components/schemas/BranchResponse'
          type: array
          title: Branches
          description: List of branches
        total:
          type: integer
          title: Total
          description: Total number of branches
      type: object
      required:
        - branches
        - total
      title: BranchListResponse
      description: Response model for branch lists.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BranchResponse:
      properties:
        node_id:
          type: string
          title: Node Id
          description: Node ID
        name:
          type: string
          title: Name
          description: Branch name
        head_commit:
          type: string
          title: Head Commit
          description: Head commit ID
        base_branch:
          anyOf:
            - type: string
            - type: 'null'
          title: Base Branch
          description: Base branch name
        created_by:
          type: string
          title: Created By
          description: User who created the branch
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Creation timestamp
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Last update timestamp
        head_commit_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Head Commit Message
          description: Head commit message
        last_activity:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Activity
          description: Last activity timestamp
      type: object
      required:
        - node_id
        - name
        - head_commit
        - created_by
        - created_at
        - updated_at
      title: BranchResponse
      description: Response model for branch data.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````