Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: fix API reference curl base URL (staging → production) (#3761)

composio-zen[bot]914bccf3559b
diff --git a/docs/public/openapi-v3.json b/docs/public/openapi-v3.json
index 9033174a7..840e339a0 100644
--- a/docs/public/openapi-v3.json
+++ b/docs/public/openapi-v3.json
@@ -16,8 +16,8 @@
},
"servers": [
{
- "url": "http://staging-apollo.composio.dev",
- "description": "STAGING API"
+ "url": "https://backend.composio.dev",
+ "description": "PRODUCTION API"
}
],
"tags": [
diff --git a/docs/public/openapi.json b/docs/public/openapi.json
index e707f8ff9..f9c65bccf 100644
--- a/docs/public/openapi.json
+++ b/docs/public/openapi.json
@@ -16,8 +16,8 @@
},
"servers": [
{
- "url": "http://staging-apollo.composio.dev",
- "description": "STAGING API"
+ "url": "https://backend.composio.dev",
+ "description": "PRODUCTION API"
}
],
"tags": [
diff --git a/docs/scripts/fetch-openapi.mjs b/docs/scripts/fetch-openapi.mjs
index d24921bf7..d38b3a36f 100644
--- a/docs/scripts/fetch-openapi.mjs
+++ b/docs/scripts/fetch-openapi.mjs
@@ -89,6 +89,17 @@ function cleanOperationIds(paths) {
* Post-process a spec: remove CookieAuth, normalize unions, fix nullable.
*/
function postProcessSpec(spec) {
+ // Pin the server to production. The published docs must always show the
+ // production base URL in their curl examples, regardless of which environment
+ // the source spec was fetched from (a staging fetch would otherwise bake a
+ // staging server URL into the committed reference).
+ spec.servers = [
+ {
+ url: 'https://backend.composio.dev',
+ description: 'PRODUCTION API',
+ },
+ ];
+
// Filter tags list
if (spec.tags) {
spec.tags = spec.tags.filter(tag => !IGNORED_TAGS.includes(tag.name));