Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix callback url
abhishekpatil4594297c48078
diff --git a/fern/pages/src/authentication/custom-auth-configs.mdx b/fern/pages/src/authentication/custom-auth-configs.mdxindex 8f9fd2b9f..b43f8c554 100644--- a/fern/pages/src/authentication/custom-auth-configs.mdx+++ b/fern/pages/src/authentication/custom-auth-configs.mdx@@ -71,7 +71,7 @@ Examples for Google and GitHub:When creating your OAuth app, make sure to configure the Authorized Redirect URI to point to the Composio callback URL below:```-https://backend.composio.dev/api/v3/toolkits/callback+https://backend.composio.dev/api/v3/toolkits/auth/callback```</Step>@@ -144,7 +144,7 @@ https://yourdomain.com/api/composio-redirect</Step><Step title="Create a redirect logic">-Create a redirect logic, either through your DNS or in your application to redirect that endpoint to `https://backend.composio.dev/api/v3/toolkits/callback`+Create a redirect logic, either through your DNS or in your application to redirect that endpoint to `https://backend.composio.dev/api/v3/toolkits/auth/callback`**Example: API Route for OAuth Redirect**@@ -183,7 +183,7 @@ import type { NextApiRequest, NextApiResponse } from 'next';export default function handler(req: NextApiRequest, res: NextApiResponse) {// The target Composio endpoint that handles OAuth callbacks- const composioEndpoint = 'https://backend.composio.dev/api/v3/toolkits/callback';+ const composioEndpoint = 'https://backend.composio.dev/api/v3/toolkits/auth/callback';// Extract and preserve all query parametersconst queryParams = new URLSearchParams();diff --git a/fern/pages/src/authentication/programmatic-auth-configs.mdx b/fern/pages/src/authentication/programmatic-auth-configs.mdxindex 4ec204597..44c9adf96 100644--- a/fern/pages/src/authentication/programmatic-auth-configs.mdx+++ b/fern/pages/src/authentication/programmatic-auth-configs.mdx@@ -75,7 +75,7 @@ Composio requests a set of _good_ default OAuth2 scopes for each toolkit whereve## Using Custom Auth### Create the auth config-If you know the required authentication fields for your toolkit, you can directly create the auth config. OAuth2 is the most common auth type for apps. When using your own OAuth developer app, you must ensure to set the **authorized redirect URI** in the OAuth configuration to `https://backend.composio.dev/api/v3/toolkits/callback`.+If you know the required authentication fields for your toolkit, you can directly create the auth config. OAuth2 is the most common auth type for apps. When using your own OAuth developer app, you must ensure to set the **authorized redirect URI** in the OAuth configuration to `https://backend.composio.dev/api/v3/toolkits/auth/callback`.This is the URI that captures the OAuth code that is returned to the app.@@ -93,7 +93,7 @@ auth_config = composio.auth_configs.create("credentials": {"client_id": "1234567890","client_secret": "1234567890",- "oauth_redirect_uri": "https://backend.composio.dev/api/v3/toolkits/callback",+ "oauth_redirect_uri": "https://backend.composio.dev/api/v3/toolkits/auth/callback",},},)@@ -106,7 +106,7 @@ const authConfig = await composio.authConfigs.create("NOTION", {credentials: {client_id: "1234567890",client_secret: "1234567890",- oauth_redirect_uri: "https://backend.composio.dev/api/v3/toolkits/callback",+ oauth_redirect_uri: "https://backend.composio.dev/api/v3/toolkits/auth/callback",},authScheme: "OAUTH2",});diff --git a/fern/pages/src/migration-guide.mdx b/fern/pages/src/migration-guide.mdxindex 5c5dd3ba3..214a321d5 100644--- a/fern/pages/src/migration-guide.mdx+++ b/fern/pages/src/migration-guide.mdx@@ -412,7 +412,7 @@ Creating auth configs programmatically in the current SDK:For using custom authentication credentials, refer to the [Programmatic Auth Configs](/programmatic-auth-configs#using-custom-auth) documentation.-<Note>The callback URL for creating custom OAuth configs is now `https://backend.composio.dev/api/v3/toolkits/callback`. The previous URL was `https://backend.composio.dev/api/v1/auth-apps/add`.</Note>+<Note>The callback URL for creating custom OAuth configs is now `https://backend.composio.dev/api/v3/toolkits/auth/callback`. The previous URL was `https://backend.composio.dev/api/v1/auth-apps/add`.</Note>### Connected accounts / User IDsdiff --git a/fern/snippets/migration/new_auth_config.py b/fern/snippets/migration/new_auth_config.pyindex 1780d2e11..851577f03 100644--- a/fern/snippets/migration/new_auth_config.py+++ b/fern/snippets/migration/new_auth_config.py@@ -12,7 +12,7 @@ auth_config = composio.auth_configs.create(# "credentials": {# "client_id": "1234567890",# "client_secret": "1234567890",- # "oauth_redirect_uri": "https://backend.composio.dev/api/v3/toolkits/callback",+ # "oauth_redirect_uri": "https://backend.composio.dev/api/v3/toolkits/auth/callback",# },},)diff --git a/fern/snippets/migration/new_auth_config.ts b/fern/snippets/migration/new_auth_config.tsindex 04ef49589..e43c72920 100644--- a/fern/snippets/migration/new_auth_config.ts+++ b/fern/snippets/migration/new_auth_config.ts@@ -9,7 +9,7 @@ const authConfig = await composio.authConfigs.create('LINEAR', {// credentials: {// client_id: "1234567890",// client_secret: "1234567890",- // oauth_redirect_uri: "https://backend.composio.dev/api/v3/toolkits/callback",+ // oauth_redirect_uri: "https://backend.composio.dev/api/v3/toolkits/auth/callback",// },});