Documentation 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.
composio.auth_configs manages authentication configurations — the bridge between a toolkit (e.g. GitHub, Gmail) and the OAuth application or API key credentials used to connect users. Every connected account is tied to an auth config. By default, Composio provides managed auth configs for all toolkits. Create your own to use your organization’s OAuth app credentials, control OAuth scopes, or restrict which tools are accessible.
auth_configs.create()
Create a new auth config for a toolkit.
The toolkit slug to create the auth config for (e.g.
"github", "gmail"). Must match the toolkit’s slug exactly.Auth config options dict. The shape depends on
type:Returns
AnAuthConfig object with fields including id (ac_xxx), toolkit, auth_scheme, status, and created_at.
auth_configs.get()
Retrieve a specific auth config by its ID.
The auth config ID (
ac_xxx).auth_configs.list()
List all auth configs, optionally filtered by toolkit.
Filter to auth configs for a specific toolkit (e.g.
"github").Filter by auth scheme (e.g.
"OAUTH2", "API_KEY").Maximum number of results to return per page.
Pagination cursor. Pass
next_cursor from the previous response to get the next page.Returns
AnAuthConfigListResponse with items (list of auth config objects) and next_cursor.
auth_configs.update()
Update an existing auth config’s credentials, scopes, or tool access settings.
The auth config ID (
ac_xxx) to update.Update payload. Must include
type ("custom" or "default") plus the fields you want to change: credentials, is_enabled_for_tool_router, tool_access_config.auth_configs.delete()
Delete an auth config permanently. Connected accounts using this auth config will lose their association.
The auth config ID (
ac_xxx) to delete.auth_configs.enable() / auth_configs.disable()
Enable or disable an auth config without deleting it. Disabled auth configs cannot be used to create new connections.
The auth config ID (
ac_xxx).Code examples
Create a custom OAuth2 config for GitHub
Create an API key config
List all GitHub auth configs
Retrieve a specific auth config
Update credentials on an existing config
Disable then re-enable an auth config
Auth config IDs are stable and safe to store. When you create a custom auth config, pass its ID as
auth_config_id to connected_accounts.link() or connected_accounts.initiate() so new connections use your OAuth app instead of Composio’s managed one.