Retrieve context from the code knowledge graph.
This endpoint searches the indexed code repository to find relevant context based on the provided query.
Returns a list of relevant code files and context as JSON.
cURL
curl --request POST \ --url https://api.cognee.ai/api/v1/code-pipeline/retrieve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "query": "<string>", "fullInput": "<string>" } '
[ {} ]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
Was this page helpful?