Cognee · Example Payload
Cognee Search Example
Representative request/response examples for the Cognee REST API
Artificial IntelligenceMemoryKnowledge GraphRAGAgentsGraph DatabaseVector SearchLLMOpen-Source
Cognee Search Example is an example object payload from Cognee, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
titledescriptionexamples
Example Payload
{
"title": "Cognee API Usage Examples",
"description": "Representative request/response examples for the Cognee REST API",
"examples": [
{
"title": "Add a file to a dataset",
"description": "Upload a PDF document to the 'research_papers' dataset",
"endpoint": "POST /api/v1/add",
"contentType": "multipart/form-data",
"request": {
"datasetName": "research_papers",
"run_in_background": false
},
"notes": "The 'data' field accepts file uploads, HTTP URLs, or GitHub repository URLs"
},
{
"title": "Cognify a dataset",
"description": "Transform the 'research_papers' dataset into a knowledge graph",
"endpoint": "POST /api/v1/cognify",
"request": {
"datasets": ["research_papers"],
"run_in_background": false,
"custom_prompt": "Extract entities focusing on research methodologies, authors, and findings. Identify key relationships between concepts.",
"data_per_batch": 20
},
"response": {
"status": "completed",
"pipeline_run_id": "550e8400-e29b-41d4-a716-446655440000"
}
},
{
"title": "Semantic graph completion search",
"description": "Ask a natural language question and receive LLM-synthesized answer from the knowledge graph",
"endpoint": "POST /api/v1/search",
"request": {
"search_type": "GRAPH_COMPLETION",
"query": "What are the main conclusions across the research papers?",
"datasets": ["research_papers"],
"top_k": 10,
"system_prompt": "Answer the question using the provided context. Be as brief as possible.",
"only_context": false
}
},
{
"title": "RAG completion search",
"description": "Perform retrieval-augmented generation over the knowledge graph",
"endpoint": "POST /api/v1/search",
"request": {
"search_type": "RAG_COMPLETION",
"query": "Summarize the key methodologies used in the papers",
"datasets": ["research_papers"],
"top_k": 5
}
},
{
"title": "Temporal search",
"description": "Search for time-based relationships and events in the graph",
"endpoint": "POST /api/v1/search",
"request": {
"search_type": "TEMPORAL",
"query": "What events happened in 2023?",
"datasets": ["my_documents"],
"top_k": 10
}
},
{
"title": "Agentic completion search",
"description": "Multi-step agentic search with tool use",
"endpoint": "POST /api/v1/search",
"request": {
"search_type": "AGENTIC_COMPLETION",
"query": "Find all entities related to machine learning and their connections",
"datasets": ["research_papers"],
"top_k": 20,
"max_iter": 5
}
},
{
"title": "Get dataset processing status",
"description": "Check whether the cognify pipeline has completed for a dataset",
"endpoint": "GET /api/v1/datasets/status?dataset=550e8400-e29b-41d4-a716-446655440000&pipeline=cognify_pipeline",
"response": {
"550e8400-e29b-41d4-a716-446655440000": "completed"
}
},
{
"title": "Create an agent identity",
"description": "Create an AI agent identity with its own API key",
"endpoint": "POST /api/v1/agents/create?name=my-research-agent",
"response": {
"agent_id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"agent_email": "my-research-agent@cognee.agent",
"agent_api_key": "cog_agent_xxxxxxxxxxxxxxxx"
}
}
]
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/cognee-search-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.