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.
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 UUID.
Query parameters
Maximum number of entities to return. Default 10, server ceiling 50.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.