---
title: "Get repository details"
method: GET
path: "/api/repos/{namespace}/{repo_name}"
tags: ["Repositories"]
---

# Get repository details

`GET /api/repos/{namespace}/{repo_name}`

## Request

- Base URL: `https://hub.oxen.ai`
- URL: `https://hub.oxen.ai/api/repos/{namespace}/{repo_name}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oxen/apis/oxen-server/docs/api/repos/:namespace/:repo_name/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Path parameters

- `namespace` string, required
- `repo_name` string, required

## Response `200`

Repository details

- RepositoryDataTypesResponse
  - `repository` RepositoryDataTypesView, required
    - `is_empty` boolean, required
    - `min_version` string, nullable
    - `name` string, required
    - `namespace` string, required
    - `repo_uuid` string, uuid, nullable: The immutable UUID this repo's storage is addressed by. `None` for a repository whose identity backfill has not run.
    - `storage_kind` 'local' | 's3', required: Storage backend kind. Serializes as `"local"` / `"s3"` on the wire and on disk.
    - `branch_count` integer
    - `data_types` DataTypeCount[], required
      - `count` integer, required
      - `data_type` string, required
    - `default_resource` ParsedResourceView: External (view) model that is returned to the client with fewer fields.
      - `branch` Branch
        - `commit_id` string, required
        - `name` string, required
      - `commit` Commit
        - `author` string, required
        - `email` string, required
        - `id` string, required
        - `message` string, required
        - `parent_ids` string[], required
        - `timestamp` string, date-time, required
      - `path` string, required
      - `resource` string, required
      - `version` string, required
      - `workspace` WorkspaceView: Used to send workspace state across the wire. The `Workspace`'s other fields (like `LocalRepository`) would bloat the response and leak internal state.
        - `commit` Commit, required
          - `author` string, required
          - `email` string, required
          - `id` string, required
          - `message` string, required
          - `parent_ids` string[], required
          - `timestamp` string, date-time, required
        - `created_at` string, date-time, nullable: `None` for a workspace created before the server recorded creation time.
        - `id` string, required
        - `name` string, nullable
    - `size` integer, required
  - `status` string, required
  - `status_message` string, required

## Other responses

- `404`: Repository not found

---

[API](https://skmtc.dev/oxen/apis/oxen-server.md) - [All operations](https://skmtc.dev/oxen/apis/oxen-server/llms.txt) - [OpenAPI document](https://skmtc.dev/oxen/apis/oxen-server/revisions/2ae578129949?raw)
