The API Keys page lets you create and manage keys used to authenticate with the Cloud SDK, the REST API, and agent connections.
Create a key
- Click Create API key.
- The key is generated and displayed. Copy it immediately — it is shown only once.
Manage keys
The page lists all active keys with their creation date. To revoke a key, click the delete icon next to it. Revoked keys stop working immediately.
Store API keys in environment variables or a secrets manager. Do not hardcode them in source files.
Usage
Pass the API key in requests:
Python SDK:
import cognee
await cognee.serve(
url="https://your-tenant.aws.cognee.ai",
api_key="your-key"
)
REST API:
curl -H "X-Api-Key: your-key" https://your-tenant.aws.cognee.ai/api/v1/datasets/
Python SDK (serve mode):
import cognee
await cognee.serve(url="https://your-tenant.aws.cognee.ai", api_key="your-key")
See Cloud SDK for the full setup guide.