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

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

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

List the Context's principals (requires the `grant:manage` grant). Paginated: follow `page.nextCursor`.

## Path parameters

- `context_id` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `count` boolean

## Response `200`

- PrincipalListResponseJson — The `GET /{ctx}/principals` 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`.
  - `principals` PrincipalJson[], required
    - `displayName` string, required — Human-readable display name.
    - `grants` Grants, required — Per-verb scope pattern map. Keys are grant verbs in `<noun>:<verb>` form (`memory:read`, `memory:write`, `memory:forget`, `scope:read`, `scope:create`, `scope:delete`, `grant:manage`); values are arrays of scope patterns.
    - `id` string, required — Record-id key (e.g. `alpha-bot`).
    - `kind` string, required — Identity kind: `human` / `agent` / `service` / `unknown`.

## Other responses

- `400` — Invalid pagination parameter
- `401` — Unauthorized
- `403` — Caller lacks the `grant:manage` grant
- `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, 7 info
  - the response's body type changed from `array` to `object` for status `200`
  - added the new optional `query` request parameter `count`
  - added the new optional `query` request parameter `cursor`
  - added the new optional `query` request parameter `limit`
  - …4 more

[Change history](https://skmtc.dev/surrealdb/apis/spectron/changes/api/v1/:context_id/principals/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)
