---
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** `acd2fb10eb38` — 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** `d5a0c774e7c0` — 1 info
  - endpoint added
- **2021-09-24** `b323fac0f51a` — 1 breaking
  - api path removed without deprecation

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

---

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