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

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

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

List entities (optionally filtered by type), ordered by type then name. Paginated: `limit` defaults to 100 and is capped at 500; follow `page.nextCursor` to walk the Context.

## Path parameters

- `context_id` string, required

## Query parameters

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

## Response `200`

- EntityListResponseJson
  - `entities` EntityDetailJson[], required
    - `createdAt` string, required
    - `entityType` string, required
    - `id` string, required
    - `importance` number, double, required
    - `memoryCategory` 'identity' | 'knowledge' | 'context', required — Memory category classification applied during extraction.
    - `name` string, required
    - `updatedAt` string, required
  - `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`.

## 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` — 5 info
  - added the new optional `query` request parameter `count`
  - added the new optional `query` request parameter `cursor`
  - added the non-success response with the status `400`
  - added the non-success response with the status `503`
  - …1 more
- **2026-06-16** `52b41ab517b6` — 2 info
  - added the new optional `query` request parameter `limit`
  - added the new optional `query` request parameter `offset`
- **2026-06-08** `741d58b9ef89` — 2 warning
  - deleted the `query` request parameter `limit`
  - deleted the `query` request parameter `offset`

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