Run indexation on a code repository.
This endpoint processes a code repository to create a knowledge graph of the codebase structure, dependencies, and relationships.
No content returned. Processing results are logged.
cURL
curl --request POST \ --url https://api.cognee.ai/api/v1/code-pipeline/index \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "repoPath": "<string>" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
Was this page helpful?