---
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)

## Path parameters

- `context_id` string, required

## Response `200`

- PrincipalJson[]
  - `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

- `401` — Unauthorized
- `403` — Caller lacks the `grant:manage` grant
- `422` — Invalid context id

---

[API](https://skmtc.net/surrealdb/apis/spectron.md) · [All operations](https://skmtc.net/surrealdb/apis/spectron/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surrealdb/spectron/versions/52b41ab517b6/schema)
