---
title: "Reads all namespace rules from the database"
method: GET
path: "/api/v2/namespace-rules"
tags: ["data"]
---

# Reads all namespace rules from the database

`GET /api/v2/namespace-rules`

## Response `200`

Success

- object[]
  - `prefix` string — Prefix of the namespace
  - `namespace` string — The namespace prefixed

## Other responses

- `default` — Unexpected error

## Changes

- **2026-07-17** `97aa3ff2ec7c` — 1 info
  - endpoint added
- **2017-09-01** `b493865d180c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/cayleygraph/apis/cayley-api/changes/api/v2/namespace-rules/get.md)

---

[API](https://skmtc.dev/cayleygraph/apis/cayley-api.md) · [All operations](https://skmtc.dev/cayleygraph/apis/cayley-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cayleygraph/cayley-api/revisions/97aa3ff2ec7c/schema)
