Skip to Content
Docs

POST /api/sources/{source_id}/graphrag/enable

POST
/api/sources/{source_id}/graphrag/enable

Enable GraphRAG on a source: flips its config to graphrag mode and enqueues graph extraction over its embedded chunks. Requires VECTOR_STORE=pgvector and GRAPHRAG_ENABLED. Write access required (owner/editor). The config kind cannot be set to graphrag via the config PATCH endpoint.

Personal access token scope: sources:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

source_id*string

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/sources/string/graphrag/enable'
Example Response200
Empty