---
title: "Query namespaces"
method: GET
path: "/namespaces"
tags: ["relationship"]
---

# Query namespaces

`GET /namespaces`

Get all namespaces

## Response `200`

relationshipNamespaces

- RelationshipNamespaces — Relationship Namespace List
  - `namespaces` Namespace[]
    - `name` string — Name of the namespace.

## Other responses

- `default` — errorGeneric

## Changes

- **2022-11-25** `5f207fe3fcc0` — 4 info
  - api operation id `getNamespaces` removed and replaced with `listRelationshipNamespaces`
  - api tag `relationship` added
  - api tag `namespaces` removed
  - removed the non-success response with the status `500`
- **2022-10-12** `cda077d14fdf` — 1 info
  - endpoint added
- **2021-10-07** `e90046dbd055` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ory/apis/ory-keto-api/changes/namespaces/get.md)

---

[API](https://skmtc.dev/ory/apis/ory-keto-api.md) · [All operations](https://skmtc.dev/ory/apis/ory-keto-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ory/ory-keto-api/revisions/4e980fe4b29b/schema)
