> ## Documentation Index
> Fetch the complete documentation index at: https://sourcebot-whoisthey-pin-citation-commit-sha.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List commit authors

> Returns a paginated list of unique authors who committed in a repository, sorted by commit count descending. Optionally scoped to a file path.



## OpenAPI

````yaml /api-reference/sourcebot-public.openapi.json get /api/commits/authors
openapi: 3.0.3
info:
  title: Sourcebot Public API
  version: v5.0.4
  description: >-
    OpenAPI description for the public Sourcebot REST endpoints used for search,
    repository listing, and file browsing. Authentication is instance-dependent:
    API keys are the standard integration mechanism, OAuth bearer tokens are
    EE-only, and some instances may allow anonymous access.
servers: []
security:
  - bearerToken: []
  - apiKeyHeader: []
  - {}
tags:
  - name: Search & Navigation
    description: Code search and symbol navigation endpoints.
  - name: Repositories
    description: Repository listing and metadata endpoints.
  - name: Git
    description: Git history, diff, and file content endpoints.
  - name: System
    description: System health and version endpoints.
  - name: Enterprise (EE)
    description: Enterprise endpoints for user management and audit logging.
paths:
  /api/commits/authors:
    get:
      tags:
        - Git
      summary: List commit authors
      description: >-
        Returns a paginated list of unique authors who committed in a
        repository, sorted by commit count descending. Optionally scoped to a
        file path.
      operationId: listCommitAuthors
      parameters:
        - schema:
            type: string
            description: The fully-qualified repository name.
          required: true
          description: The fully-qualified repository name.
          name: repo
          in: query
        - schema:
            type: string
            description: >-
              The git ref (branch, tag, or commit SHA) to list authors from.
              Defaults to `HEAD`.
          required: false
          description: >-
            The git ref (branch, tag, or commit SHA) to list authors from.
            Defaults to `HEAD`.
          name: ref
          in: query
        - schema:
            type: string
            description: Restrict authors to those who touched this file path.
          required: false
          description: Restrict authors to those who touched this file path.
          name: path
          in: query
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            default: 1
          required: false
          name: page
          in: query
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            maximum: 100
            default: 50
          required: false
          name: perPage
          in: query
      responses:
        '200':
          description: Paginated commit author list.
          headers:
            X-Total-Count:
              description: >-
                Total number of unique authors matching the query across all
                pages.
              schema:
                type: integer
            Link:
              description: Pagination links formatted per RFC 8288.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicListCommitAuthorsResponse'
        '400':
          description: Invalid query parameters or git ref.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiServiceError'
        '404':
          description: Repository not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiServiceError'
        '500':
          description: Unexpected failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiServiceError'
components:
  schemas:
    PublicListCommitAuthorsResponse:
      type: array
      items:
        $ref: '#/components/schemas/PublicCommitAuthor'
    PublicApiServiceError:
      type: object
      properties:
        statusCode:
          type: number
        errorCode:
          type: string
        message:
          type: string
      required:
        - statusCode
        - errorCode
        - message
      description: Structured error response returned by Sourcebot public API endpoints.
    PublicCommitAuthor:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
        commitCount:
          type: integer
          minimum: 0
      required:
        - name
        - email
        - commitCount
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your API key.
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-Sourcebot-Api-Key
      description: >-
        Header of the form `X-Sourcebot-Api-Key: <token>`, where `<token>` is
        your API key.

````