---
title: "Get namespace"
method: GET
path: "/api/namespaces/{namespace}"
tags: ["Namespaces"]
---

# Get namespace

`GET /api/namespaces/{namespace}`

## Request

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

Get details of a specific namespace by name.

## Path parameters

- `namespace` string, required
- `legacy_directory` string, nullable, required

## Response `200`

Namespace details

- NamespaceResponse
  - `oxen_version` string, nullable
  - `status` string, required
  - `status_message` string, required
  - `namespace` Namespace, required
    - `name` string, required
    - `storage_usage_gb` number, double, required

## Other responses

- `400`: Missing namespace parameter, or a `legacy_directory` that is not a single path segment
- `404`: Namespace 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)
