documents

Return the top entities extracted from a single document.

Returns a flat list of this document's entities (name, type, degree), ordered by connectivity DESC — the same ranking GET /v1/graph uses for its top-N view.

Why this endpoint exists: GET /v1/graph returns workspace-wide entities with no per-document link; using it to build per-document prompts leaked entities from other documents. This endpoint resolves the document -> chunks -> entities -> graph-node chain server-side.

Isolation: 404 is returned uniformly for a missing OR cross-tenant document_id (no existence leak).

Ceiling: limit is capped server-side; values above the ceiling are rejected (422), never silently clamped.

get/v1/documents/{document_id}/entities

Request

  • Base URL: https://api.andish.ru (the document declares no server; this is the origin it was published from)
  • URL: https://api.andish.ru/v1/documents/{document_id}/entities
  • Auth: none declared

Path parameters

document_idstring uuid required

Document UUID.

Query parameters

limitinteger

Maximum number of entities to return. Default 10, server ceiling 50.

Response

Successful Response

totalinteger required

Total distinct entities linked to this document.

truncatedboolean required

True when total exceeds the number of returned items.

Changes

No recorded changes to this operation across all 1 revision of this API.