Skip to navigation

Get a space’s entity/relation knowledge graph

View as Markdown

Returns the whole knowledge graph extracted from the documents in a space: { entities, edges }. Each entity has id, type (one of organization | person | location | identifier | date | amount | other), name, key, and mentionCount; each edge has sourceId, targetId, relation, and the fileId it was observed in. Optional ?limit= (1-2000) caps the number of entities returned. Requires space:read on :spaceId — a caller lacking it gets a 404 (existence is hidden).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

spaceIdstringRequired

Query parameters

limitintegerOptional1-2000Defaults to 500

Maximum entities returned, 1–2000. There is no cursor.

Response

The space graph.
entitieslist of objects
edgeslist of objects