Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 23:15 UTC
fix callback url
abhishekpatil4 committed
Jul 1, 2025 at 12:51 UTC
594297c48078f9dab9bbbeaacef88fe5c8a12925
5 files changed
+9
-9
fern/pages/src/authentication/custom-auth-configs.mdx
+3
-3
@@ -71,7 +71,7 @@ Examples for Google and GitHub:
71
When creating your OAuth app, make sure to configure the Authorized Redirect URI to point to the Composio callback URL below:
72
73
```
74
-https://backend.composio.dev/api/v3/toolkits/callback
74
+https://backend.composio.dev/api/v3/toolkits/auth/callback
75
```
76
77
</Step>
@@ -144,7 +144,7 @@ https://yourdomain.com/api/composio-redirect
144
145
</Step>
146
<Step title="Create a redirect logic">
147
-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`
147
+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`
148
149
**Example: API Route for OAuth Redirect**
150
@@ -183,7 +183,7 @@ import type { NextApiRequest, NextApiResponse } from 'next';
183
184
export default function handler(req: NextApiRequest, res: NextApiResponse) {
185
// The target Composio endpoint that handles OAuth callbacks
186
- const composioEndpoint = 'https://backend.composio.dev/api/v3/toolkits/callback';
186
+ const composioEndpoint = 'https://backend.composio.dev/api/v3/toolkits/auth/callback';
187
188
// Extract and preserve all query parameters
189
const queryParams = new URLSearchParams();
fern/pages/src/authentication/programmatic-auth-configs.mdx
+3
-3
@@ -75,7 +75,7 @@ Composio requests a set of _good_ default OAuth2 scopes for each toolkit whereve
75
## Using Custom Auth
76
### Create the auth config
77
78
-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`.
78
+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`.
79
80
This is the URI that captures the OAuth code that is returned to the app.
81
@@ -93,7 +93,7 @@ auth_config = composio.auth_configs.create(
93
"credentials": {
94
"client_id": "1234567890",
95
"client_secret": "1234567890",
96
- "oauth_redirect_uri": "https://backend.composio.dev/api/v3/toolkits/callback",
96
+ "oauth_redirect_uri": "https://backend.composio.dev/api/v3/toolkits/auth/callback",
97
},
98
},
99
)
@@ -106,7 +106,7 @@ const authConfig = await composio.authConfigs.create("NOTION", {
106
credentials: {
107
client_id: "1234567890",
108
client_secret: "1234567890",
109
- oauth_redirect_uri: "https://backend.composio.dev/api/v3/toolkits/callback",
109
+ oauth_redirect_uri: "https://backend.composio.dev/api/v3/toolkits/auth/callback",
110
},
111
authScheme: "OAUTH2",
112
});
fern/pages/src/migration-guide.mdx
+1
-1
@@ -412,7 +412,7 @@ Creating auth configs programmatically in the current SDK:
412
413
For using custom authentication credentials, refer to the [Programmatic Auth Configs](/programmatic-auth-configs#using-custom-auth) documentation.
414
415
-<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>
415
+<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>
416
417
### Connected accounts / User IDs
418
fern/snippets/migration/new_auth_config.py
+1
-1
@@ -12,7 +12,7 @@ auth_config = composio.auth_configs.create(
12
# "credentials": {
13
# "client_id": "1234567890",
14
# "client_secret": "1234567890",
15
- # "oauth_redirect_uri": "https://backend.composio.dev/api/v3/toolkits/callback",
15
+ # "oauth_redirect_uri": "https://backend.composio.dev/api/v3/toolkits/auth/callback",
16
# },
17
},
18
)
fern/snippets/migration/new_auth_config.ts
+1
-1
@@ -9,7 +9,7 @@ const authConfig = await composio.authConfigs.create('LINEAR', {
9
// credentials: {
10
// client_id: "1234567890",
11
// client_secret: "1234567890",
12
- // oauth_redirect_uri: "https://backend.composio.dev/api/v3/toolkits/callback",
12
+ // oauth_redirect_uri: "https://backend.composio.dev/api/v3/toolkits/auth/callback",
13
// },
14
});
15