curl --location 'http://127.0.0.1:8000/api/v1/search' \--header 'Content-Type: application/json' \--header "Authorization: Bearer $access_token" \--data '{ "searchType": "GRAPH_COMPLETION", "query": "List me all the important characters in Alice in Wonderland."}'
curl --location 'http://127.0.0.1:8000/api/v1/search' \--header 'Content-Type: application/json' \--header "Authorization: Bearer $access_token" \--data '{ "searchType": "GRAPH_COMPLETION", "query": "How did Alice end up in Wonderland?"}'
This tutorial showed you how to use cognee’s API to:
Set up your environment
Start the cognee service using Docker
Authenticate and get an access token
Upload and process a document
Query the processed content using natural language
Delete the document you have worked with
You can adapt these steps for your own use cases, whether you’re building a search application, a knowledge base, or any other system that needs powerful document processing and querying capabilities.Happy coding!