All Composio API requests require a project API key. Pass it in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ComposioHQ/composio/llms.txt
Use this file to discover all available pages before exploring further.
x-api-key header or as a Bearer token in the Authorization header. Get your API key from the Composio dashboard at composio.dev. Without a valid key every request returns 401 Unauthorized.
Get your API key
- Sign in to composio.dev
- Navigate to Settings in the left sidebar
- Under Project Settings, find the API Keys section
- Copy your project API key
Request headers
Composio accepts the API key in two formats. Both are equivalent — use whichever your HTTP client handles more naturally.x-api-key header (preferred)
Authorization: Bearer header
Python (requests)
TypeScript (fetch)
Organization API key
For organization-level endpoints (e.g. managing multiple projects), use thex-org-api-key header with your organization API key instead.
Environment variable
The Composio SDK reads the API key from theCOMPOSIO_API_KEY environment variable by default. Set it once and all SDK calls are automatically authenticated:
.env file excluded from version control.
API key scopes
Project API keys are scoped to a single Composio project. Every resource created — connected accounts, auth configs, trigger instances, files — belongs to that project and is isolated from other projects. You cannot use a project key to access resources in another project. Use the organization API key (x-org-api-key) when you need cross-project access for administrative operations.
Error responses
An invalid or missing API key returns401 Unauthorized:
403 Forbidden:
Related pages
- Rate Limits — request quotas and retry strategies
- API Overview — base URL, resource list, and pagination