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

# Read safe metadata for a repository commit



## OpenAPI

````yaml /openapi.json get /api/repositories/{repoRef}/commits/{refOrSha}
openapi: 3.1.0
info:
  title: Atoll API
  version: 1.0.0
  description: >-
    REST API for Atoll project management, agent collaboration, strategy
    tracking, and integrations.
servers:
  - url: https://atollhq.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Projects
  - name: Project access
  - name: Issues
  - name: Issue details
  - name: Milestones
  - name: Artifacts
  - name: Strategy
  - name: Members and agents
  - name: Planning
  - name: Setup
  - name: Integrations and billing
  - name: Notifications and public
  - name: Private inbox
  - name: Agent executions
  - name: Human attention
paths:
  /api/repositories/{repoRef}/commits/{refOrSha}:
    get:
      tags:
        - Projects
      summary: Read safe metadata for a repository commit
      operationId: get_repository_commit
      parameters:
        - name: repoRef
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: refOrSha
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Commit metadata with exact-SHA provenance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RepositoryCommitResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    RepositoryCommitResponse:
      allOf:
        - $ref: '#/components/schemas/RepositoryProvenance'
      type: object
      required:
        - commit
      properties:
        commit:
          type: object
          required:
            - sha
            - html_url
            - message
            - message_truncated
            - author
            - committer
            - parents
            - parents_truncated
          properties:
            sha:
              type: string
            html_url:
              type: string
              format: uri
              nullable: true
            message:
              type: string
              maxLength: 20000
            message_truncated:
              type: boolean
            author:
              type: object
              nullable: true
            committer:
              type: object
              nullable: true
            parents:
              type: array
              maxItems: 100
              items:
                type: object
                required:
                  - sha
                  - html_url
                properties:
                  sha:
                    type: string
                  html_url:
                    type: string
                    format: uri
                    nullable: true
                additionalProperties: false
            parents_truncated:
              type: boolean
          additionalProperties: false
      additionalProperties: true
    RepositoryProvenance:
      type: object
      required:
        - repo_ref
        - repository
        - requested_ref
        - resolved_commit_sha
      properties:
        repo_ref:
          type: string
          format: uuid
        repository:
          type: object
          required:
            - owner
            - name
            - full_name
          properties:
            owner:
              type: string
            name:
              type: string
            full_name:
              type: string
          additionalProperties: false
        requested_ref:
          type: string
        resolved_commit_sha:
          type: string
          pattern: ^[0-9a-fA-F]{40}$
      additionalProperties: true
    Error:
      type: object
      description: >-
        Common error responses contain error. Shared missing-auth and
        unknown-API responses also contain a stable code.
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
      examples:
        - error: Unauthorized
          code: unauthorized
        - error: Not found
          code: not_found
      additionalProperties: true
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found or not visible
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Unexpected server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_atoll_<key>

````