Smithery

auth_configs.create

Creates a new auth config for a toolkit, allowing you to use your own OAuth credentials or API keys instead of Composio-managed authentication. This is required when you want to use custom OAuth apps (bring your own client ID/secret) or configure specific authentication parameters for a toolkit.

Remote smithery/composio

Other tools also called auth_configs.create? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "toolkit": {
      "type": "object",
      "required": [
        "slug"
      ],
      "properties": {
        "slug": {
          "type": "string",
          "description": "Toolkit slug to create auth config for"
        }
      },
      "description": "body parameter"
    },
    "auth_config": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "type"
          ],
          "properties": {
            "name": {
              "type": "string",
              "description": "The name of the integration"
            },
            "type": {
              "enum": [
                "use_composio_managed_auth"
              ],
              "type": "string"
            },
            "credentials": {
              "type": "object",
              "default": {},
              "properties": {
                "scopes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                "user_scopes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                }
              }
            },
            "shared_credentials": {
              "type": "object",
              "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
              "x-experimental": true,
              "additionalProperties": {
                "nullable": true
              }
            },
            "tool_access_config": {
              "type": "object",
              "properties": {
                "tools_for_connected_account_creation": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "default": [],
                  "description": "Tools used to generate the minimum required scopes for the auth config (only valid for OAuth). If passed, this will update the scopes."
                }
              }
            },
            "is_enabled_for_tool_router": {
              "type": "boolean",
              "description": "Whether this auth config is enabled for tool router"
            },
            "restrict_to_following_tools": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [],
              "deprecated": true,
              "description": "Use tool_access_config instead. This field will be deprecated in the future."
            }
          }
        },
        {
          "type": "object",
          "required": [
            "type",
            "authScheme"
          ],
          "properties": {
            "name": {
              "type": "string",
              "description": "The name of the integration"
            },
            "type": {
              "enum": [
                "use_custom_auth"
              ],
              "type": "string"
            },
            "authScheme": {
              "enum": [
                "OAUTH2",
                "OAUTH1",
                "API_KEY",
                "BASIC",
                "BILLCOM_AUTH",
                "BEARER_TOKEN",
                "GOOGLE_SERVICE_ACCOUNT",
                "NO_AUTH",
                "BASIC_WITH_JWT",
                "CALCOM_AUTH",
                "SERVICE_ACCOUNT",
                "SAML",
                "DCR_OAUTH",
                "S2S_OAUTH2"
              ],
              "type": "string"
            },
            "credentials": {
              "type": "object",
              "default": {},
              "properties": {
                "scopes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                "user_scopes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                }
              }
            },
            "proxy_config": {
              "type": "object",
              "nullable": true,
              "required": [
                "proxy_url"
              ],
              "properties": {
                "proxy_url": {
                  "type": "string",
                  "format": "uri",
                  "description": "The url of the auth proxy"
                },
                "proxy_auth_key": {
                  "type": "string",
                  "description": "The auth key for the auth proxy"
                }
              }
            },
            "shared_credentials": {
              "type": "object",
              "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
              "x-experimental": true,
              "additionalProperties": {
                "nullable": true
              }
            },
            "tool_access_config": {
              "type": "object",
              "properties": {
                "tools_for_connected_account_creation": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "default": [],
                  "description": "Tools used to generate the minimum required scopes for the auth config (only valid for OAuth). If passed, this will update the scopes."
                }
              }
            },
            "is_enabled_for_tool_router": {
              "type": "boolean",
              "description": "Whether this auth config is enabled for tool router"
            },
            "restrict_to_following_tools": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [],
              "deprecated": true,
              "description": "Use tool_access_config instead. This field will be deprecated in the future."
            }
          }
        }
      ],
      "default": {
        "type": "use_composio_managed_auth",
        "credentials": {},
        "restrict_to_following_tools": []
      },
      "description": "body parameter"
    }
  }
}