Purpose:
Retrieves nodes and relationships from a knowledge graph associated with a specific file.
Supports limiting the number of returned graph entities.
GET /ai/api/v2/knowledge-graph?file_id={file_id}&limit={limit}
| Parameter | Type | Required | Description |
|---|---|---|---|
| file_id | string | ✅ Yes | The ID of the file whose knowledge graph is to be fetched |
| limit | number | ❌ No | Maximum number of nodes/relationships to return (default: 100 if not specified) |
Requires authentication using:
Authorization: Bearer <token>
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
curl --location 'https://ai.datagol.ai/ai/api/v2/knowledge-graph?file_id={file_id}&limit={limit}' \
--header 'Authorization: Bearer <token>'
Returns knowledge graph data including nodes and relationships.
Supports pagination-like control using the limit parameter.
Default response size is 100 entities when limit is not provided.