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

# List Org Repo Stats (Admin)

> Returns commit statistics for each repository in the recoupable GitHub organization. Each item includes the repo name, URL, total commit count, latest 5 commit messages, earliest and latest commit timestamps, and the list of account repo URLs that include this org repo as a submodule. Requires the authenticated account to be a Recoup admin. Authentication via x-api-key or Authorization Bearer token.



## OpenAPI

````yaml api-reference/openapi/accounts.json GET /api/admins/sandboxes/orgs
openapi: 3.1.0
info:
  title: Recoup API - Accounts
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.recoupable.dev
security: []
paths:
  /api/admins/sandboxes/orgs:
    get:
      description: >-
        Returns commit statistics for each repository in the recoupable GitHub
        organization. Each item includes the repo name, URL, total commit count,
        latest 5 commit messages, earliest and latest commit timestamps, and the
        list of account repo URLs that include this org repo as a submodule.
        Requires the authenticated account to be a Recoup admin. Authentication
        via x-api-key or Authorization Bearer token.
      parameters: []
      responses:
        '200':
          description: Org repo statistics retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminSandboxOrgsResponse'
        '401':
          description: Unauthorized - missing or invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountErrorResponse'
        '403':
          description: Forbidden - authenticated account is not a Recoup admin
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountErrorResponse'
      security:
        - apiKeyAuth: []
        - bearerAuth: []
components:
  schemas:
    AdminSandboxOrgsResponse:
      type: object
      required:
        - status
        - repos
      description: Response containing commit statistics for all org repositories
      properties:
        status:
          type: string
          enum:
            - success
            - error
          description: Status of the request
        repos:
          type: array
          description: >-
            List of org repos with their commit statistics, ordered by
            total_commits descending
          items:
            $ref: '#/components/schemas/OrgRepoRow'
    AccountErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        message:
          type: string
          description: Error message describing what went wrong
    OrgRepoRow:
      type: object
      required:
        - repo_name
        - repo_url
        - total_commits
        - latest_commit_messages
        - earliest_committed_at
        - latest_committed_at
        - account_repos
      description: Commit statistics for a single GitHub org repository
      properties:
        repo_name:
          type: string
          description: Repository name
          example: chat
        repo_url:
          type: string
          description: Full GitHub HTML URL of the repository
          example: https://github.com/recoupable/chat
        total_commits:
          type: integer
          description: Total number of commits in the repository
          example: 5696
        latest_commit_messages:
          type: array
          description: Messages from the 5 most recent commits
          items:
            type: string
          example:
            - Merge test into main
            - 'fix: duration stuck at 0ms for in-progress tasks'
        earliest_committed_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of the earliest (first) commit
          example: '2024-09-27T17:16:01Z'
        latest_committed_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of the most recent commit
          example: '2026-03-10T19:57:37Z'
        account_repos:
          type: array
          items:
            type: object
            properties:
              account_id:
                type: string
              email:
                type: string
                nullable: true
              repo_url:
                type: string
            required:
              - account_id
              - repo_url
          description: >-
            List of accounts using this org repo as a submodule, with
            account_id, email, and repo_url
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).
    bearerAuth:
      type: http
      scheme: bearer

````