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.
AuthConfigs class manages authentication configurations — the bridge between your app’s OAuth credentials and Composio’s connected account system. An auth config specifies how users authenticate with a toolkit (OAuth2, API key, basic auth, etc.) and holds the application-level credentials (client ID, client secret, API keys) used to initiate connections.
When to use custom auth configs vs. Composio-managed
By default, Composio provides managed OAuth apps for all supported toolkits. You do not need to create an auth config to get started. Use custom auth configs when you need to:- Use your own OAuth application (custom client ID / client secret)
- Configure specific OAuth scopes for your use case
- Use API key, bearer token, or basic auth schemes
- Restrict which tools are available for a given auth config
For development and evaluation, skip auth config creation and use Composio-managed OAuth by calling
composio.toolkits.authorize(userId, toolkitSlug) directly — it creates a managed auth config automatically.authConfigs.create()
Create a new authentication configuration for a toolkit.Toolkit slug to create the auth config for (e.g.
'github', 'gmail').Auth config type and settings. Defaults to
{ type: 'use_composio_managed_auth' }.CreateAuthConfigResponse
Unique identifier for the new auth config.
Authentication scheme used by this config.
Whether this auth config uses Composio’s managed OAuth app.
Toolkit slug this auth config belongs to.
authConfigs.get()
Retrieve an auth config by its ID.AuthConfigRetrieveResponse
Auth config ID.
Auth config name.
The toolkit this auth config is for.
Authentication scheme (
OAUTH2, API_KEY, etc.).Whether this auth config is currently active.
Whether Composio manages the OAuth app credentials.
Number of connected accounts using this auth config.
Whether this auth config can be used in tool router sessions.
Per-auth-config tool access restrictions —
toolsAvailableForExecution and toolsForConnectedAccountCreation.authConfigs.list()
List auth configs with optional filtering.Filter by toolkit slug.
Filter to only Composio-managed or only custom auth configs.
Pagination cursor.
Maximum items per page.
AuthConfigListResponse
Auth configs for the current page.
Cursor for the next page.
Total number of pages.
authConfigs.update()
Update an existing auth config’s credentials, scopes, or tool access settings.'custom' to update credentials on a custom auth config. 'default' to update scopes on a Composio-managed auth config.New credentials. Only valid when
type: 'custom'.New OAuth scopes. Only valid when
type: 'default'.Restrict which tools can be executed via connected accounts under this auth config.
authConfigs.delete()
Permanently delete an auth config. This will prevent connected accounts that use this config from functioning.authConfigs.enable() / disable()
Enable or disable an auth config. Disabled auth configs cannot be used to create new connected accounts.Examples
- Custom GitHub OAuth app
- API key auth config
- List and inspect
- Restrict tool access