---
title: "GET /api/v1/{context_id}/scopes"
method: GET
path: "/api/v1/{context_id}/scopes"
---

# GET /api/v1/{context_id}/scopes

`GET /api/v1/{context_id}/scopes`

List the Context's registered scope nodes (live and tombstoned). Only nodes the caller has a grant over are returned (`scope:read`, or any other verb in the region); a `grant:manage` holder over `/` sees the whole tree. Paginated: follow `page.nextCursor`. Visibility filtering happens after the page bound, so a page can be short while `page.hasMore` is still true.

## Path parameters

- `context_id` string, required

## Query parameters

- `limit` integer
- `cursor` string

## Response `200`

- ScopeListResponseJson — The `GET /{ctx}/scopes` response. An envelope rather than a bare array: a top-level JSON array has nowhere to carry the pagination block, and every list surface returns the same shape.
  - `page` PageMeta, required — The pagination block returned beside a page's rows.
    - `hasMore` boolean, required — Whether a further page exists.
    - `nextCursor` string, nullable — Token for the next page; absent on the last page.
    - `totalSize` integer, nullable — Total rows matching the filters, present only when the request asked for it with `count=true`.
  - `scopes` ScopeNodeJson[], required
    - `createdAt` string, date-time, required — Creation timestamp.
    - `path` string, required — A validated, canonical scope path in slash form, e.g. `org/apple/product/ipad/`. Root is `/`. A leading and a trailing `/` are both optional on input (`/org/apple`, `org/apple/` and `org/apple` all denote the same node); the canonical form returned carries the trailing `/` and no leading one.
    - `tombstonedAt` string, date-time, nullable — Soft-delete timestamp; `null` while the node is live.

## Other responses

- `400` — Invalid pagination parameter
- `401` — Unauthorized
- `422` — Invalid context id
- `503` — Server too busy: the per-pod in-flight request cap was exceeded. Retry per the `Retry-After` header.

## Changes

- **2026-08-24** `9f1598713067` — 1 breaking, 6 info
  - the response's body type/format changed from `array`/`` to `object`/`` for status `200`
  - added the new optional `query` request parameter `cursor`
  - added the new optional `query` request parameter `limit`
  - added the non-success response with the status `400`
  - …3 more

[Change history](https://skmtc.dev/surrealdb/apis/spectron/changes/api/v1/:context_id/scopes/get.md)

---

[API](https://skmtc.dev/surrealdb/apis/spectron.md) · [All operations](https://skmtc.dev/surrealdb/apis/spectron/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/surrealdb/spectron/revisions/9f1598713067/schema)
