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

# Get repository details

> Get repository details including size and data types from the main branch.



## OpenAPI

````yaml https://dev.hub.oxen.ai/api/_spec/oxen_server_openapi.json get /api/repos/{namespace}/{repo_name}
openapi: 3.1.0
info:
  description: >-
    Oxen is a fast, unstructured data version control, to help version large
    machine learning datasets written in Rust.
  license:
    name: ''
  title: oxen-server
  version: 0.50.0
servers:
  - description: Production API
    url: https://hub.oxen.ai
  - description: Local Development
    url: http://localhost:3000
security:
  - api_key: []
tags:
  - description: Namespace management endpoints
    name: Namespaces
  - description: Repository management endpoints.
    name: Repositories
paths:
  /api/repos/{namespace}/{repo_name}:
    get:
      tags:
        - Repositories
      summary: Get repository details
      description: >-
        Get repository details including size and data types from the main
        branch.
      operationId: show
      parameters:
        - description: Namespace of the repository
          example: ox
          in: path
          name: namespace
          required: true
          schema:
            type: string
        - description: Name of the repository
          example: ImageNet-1k
          in: path
          name: repo_name
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RepositoryDataTypesResponse'
          description: Repository details
        '404':
          description: Repository not found
components:
  schemas:
    RepositoryDataTypesResponse:
      example:
        repository:
          data_types:
            - count: 1000
              data_type: image
            - count: 5
              data_type: tabular
          is_empty: false
          name: my-corn-pics
          namespace: bessie
          size: 1074288000
        status: success
        status_message: resource_found
      properties:
        repository:
          $ref: '#/components/schemas/RepositoryDataTypesView'
        status:
          type: string
        status_message:
          type: string
      required:
        - status
        - status_message
        - repository
      type: object
    RepositoryDataTypesView:
      example:
        data_types:
          - count: 1000
            data_type: image
          - count: 5
            data_type: tabular
        is_empty: false
        name: my-corn-pics
        namespace: bessie
        size: 1073741824
      properties:
        data_types:
          items:
            $ref: '#/components/schemas/DataTypeCount'
          type: array
        is_empty:
          type: boolean
        min_version:
          type:
            - string
            - 'null'
        name:
          type: string
        namespace:
          type: string
        size:
          format: int64
          minimum: 0
          type: integer
      required:
        - namespace
        - name
        - size
        - data_types
        - is_empty
      type: object
    DataTypeCount:
      properties:
        count:
          minimum: 0
          type: integer
        data_type:
          type: string
      required:
        - count
        - data_type
      type: object
  securitySchemes:
    api_key:
      bearerFormat: JWT
      scheme: bearer
      type: http

````