> ## 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.

# Get Commits By Branch

> Get commit history for a node at a specific branch.

This endpoint matches the frontend's expected URL pattern:
/orgs/{org_id}/nodes/{node_id}/tree/{branch}/commits



## OpenAPI

````yaml get /orgs/{org_id}/nodes/{node_id}/tree/{branch}/commits
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}/tree/{branch}/commits:
    get:
      tags:
        - node-history
      summary: Get Commits By Branch
      description: |-
        Get commit history for a node at a specific branch.

        This endpoint matches the frontend's expected URL pattern:
        /orgs/{org_id}/nodes/{node_id}/tree/{branch}/commits
      operationId: >-
        get_commits_by_branch_orgs__org_id__nodes__node_id__tree__branch__commits_get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Org Id
        - name: node_id
          in: path
          required: true
          schema:
            type: string
            title: Node Id
        - name: branch
          in: path
          required: true
          schema:
            type: string
            title: Branch
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            description: Number of commits to return
            default: 50
            title: Limit
          description: Number of commits to return
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            description: Number of commits to skip
            default: 0
            title: Offset
          description: Number of commits to skip
        - 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/CommitHistoryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CommitHistoryResponse:
      properties:
        node_id:
          type: string
          title: Node Id
          description: Node ID
        history:
          items:
            $ref: '#/components/schemas/CommitResponse'
          type: array
          title: History
          description: Commit history
        total:
          type: integer
          title: Total
          description: Total number of commits
        limit:
          type: integer
          title: Limit
          description: Items per page
        offset:
          type: integer
          title: Offset
          description: Current offset
      type: object
      required:
        - node_id
        - history
        - total
        - limit
        - offset
      title: CommitHistoryResponse
      description: Response model for node commit history.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CommitResponse:
      properties:
        id:
          type: string
          title: Id
          description: Commit ID
        node_id:
          type: string
          title: Node Id
          description: Node ID
        message:
          type: string
          title: Message
          description: Commit message
        author:
          type: string
          title: Author
          description: Commit author
        author_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Author Email
          description: Author email address
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Commit timestamp
        parent_commits:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Parent Commits
          description: Parent commit IDs
      type: object
      required:
        - id
        - node_id
        - message
        - author
        - created_at
      title: CommitResponse
      description: Response model for commit 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

````