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: update toolkits, API spec, and meta tools data (#3233)

github-actions[bot]29f66de55966
diff --git a/docs/content/reference/api-reference/organization/index.mdx b/docs/content/reference/api-reference/organization/index.mdx
index c5a15de77..21c2b3f52 100644
--- a/docs/content/reference/api-reference/organization/index.mdx
+++ b/docs/content/reference/api-reference/organization/index.mdx
@@ -9,4 +9,4 @@ Organization management
## Endpoints
-<ApiEndpointsTable endpoints={[{"method":"GET","pathV31":"/api/v3.1/org/usage/summary","pathV3":"/api/v3/org/usage/summary","summary":"Org usage summary","href":"/reference/api-reference/organization/getOrgUsageSummary"}]} />
+<ApiEndpointsTable endpoints={[{"method":"POST","pathV31":"/api/v3.1/org/usage/summary","pathV3":"/api/v3/org/usage/summary","summary":"Org usage summary","href":"/reference/api-reference/organization/postOrgUsageSummary"},{"method":"POST","pathV31":"/api/v3.1/org/usage/{entity_type}","pathV3":"/api/v3/org/usage/{entity_type}","summary":"Org usage breakdown","href":"/reference/api-reference/organization/postOrgUsageByEntityType"}]} />
diff --git a/docs/content/reference/api-reference/projects/index.mdx b/docs/content/reference/api-reference/projects/index.mdx
index 7466f634b..98a1a3751 100644
--- a/docs/content/reference/api-reference/projects/index.mdx
+++ b/docs/content/reference/api-reference/projects/index.mdx
@@ -9,4 +9,4 @@ Projects API endpoints
## Endpoints
-<ApiEndpointsTable endpoints={[{"method":"GET","pathV31":"/api/v3.1/org/project/config","pathV3":"/api/v3/org/project/config","summary":"Get project configuration","href":"/reference/api-reference/projects/getOrgProjectConfig"},{"method":"PATCH","pathV31":"/api/v3.1/org/project/config","pathV3":"/api/v3/org/project/config","summary":"Update project configuration","href":"/reference/api-reference/projects/patchOrgProjectConfig"},{"method":"GET","pathV31":"/api/v3.1/org/project/usage/summary","pathV3":"/api/v3/org/project/usage/summary","summary":"Project usage summary","href":"/reference/api-reference/projects/getOrgProjectUsageSummary"},{"method":"POST","pathV31":"/api/v3.1/org/owner/project/new","pathV3":"/api/v3/org/owner/project/new","summary":"Create a new project","href":"/reference/api-reference/projects/postOrgOwnerProjectNew"},{"method":"GET","pathV31":"/api/v3.1/org/owner/project/list","pathV3":"/api/v3/org/owner/project/list","summary":"List all projects","href":"/reference/api-reference/projects/getOrgOwnerProjectList"},{"method":"GET","pathV31":"/api/v3.1/org/owner/project/{nano_id}","pathV3":"/api/v3/org/owner/project/{nano_id}","summary":"Get project details by ID With Org Api key","href":"/reference/api-reference/projects/getOrgOwnerProjectByNanoId"},{"method":"DELETE","pathV31":"/api/v3.1/org/owner/project/{nano_id}","pathV3":"/api/v3/org/owner/project/{nano_id}","summary":"Delete a project","href":"/reference/api-reference/projects/deleteOrgOwnerProjectByNanoId"},{"method":"POST","pathV31":"/api/v3.1/org/owner/project/{nano_id}/regenerate_api_key","pathV3":"/api/v3/org/owner/project/{nano_id}/regenerate_api_key","summary":"Delete and generate new API key for project","href":"/reference/api-reference/projects/postOrgOwnerProjectByNanoIdRegenerateApiKey"}]} />
+<ApiEndpointsTable endpoints={[{"method":"POST","pathV31":"/api/v3.1/project/usage/summary","pathV3":"/api/v3/project/usage/summary","summary":"Project usage summary","href":"/reference/api-reference/projects/postProjectUsageSummary"},{"method":"POST","pathV31":"/api/v3.1/project/usage/{entity_type}","pathV3":"/api/v3/project/usage/{entity_type}","summary":"Project usage breakdown","href":"/reference/api-reference/projects/postProjectUsageByEntityType"},{"method":"GET","pathV31":"/api/v3.1/org/project/config","pathV3":"/api/v3/org/project/config","summary":"Get project configuration","href":"/reference/api-reference/projects/getOrgProjectConfig"},{"method":"PATCH","pathV31":"/api/v3.1/org/project/config","pathV3":"/api/v3/org/project/config","summary":"Update project configuration","href":"/reference/api-reference/projects/patchOrgProjectConfig"},{"method":"POST","pathV31":"/api/v3.1/org/owner/project/new","pathV3":"/api/v3/org/owner/project/new","summary":"Create a new project","href":"/reference/api-reference/projects/postOrgOwnerProjectNew"},{"method":"GET","pathV31":"/api/v3.1/org/owner/project/list","pathV3":"/api/v3/org/owner/project/list","summary":"List all projects","href":"/reference/api-reference/projects/getOrgOwnerProjectList"},{"method":"GET","pathV31":"/api/v3.1/org/owner/project/{nano_id}","pathV3":"/api/v3/org/owner/project/{nano_id}","summary":"Get project details by ID With Org Api key","href":"/reference/api-reference/projects/getOrgOwnerProjectByNanoId"},{"method":"DELETE","pathV31":"/api/v3.1/org/owner/project/{nano_id}","pathV3":"/api/v3/org/owner/project/{nano_id}","summary":"Delete a project","href":"/reference/api-reference/projects/deleteOrgOwnerProjectByNanoId"},{"method":"POST","pathV31":"/api/v3.1/org/owner/project/{nano_id}/regenerate_api_key","pathV3":"/api/v3/org/owner/project/{nano_id}/regenerate_api_key","summary":"Delete and generate new API key for project","href":"/reference/api-reference/projects/postOrgOwnerProjectByNanoIdRegenerateApiKey"}]} />
diff --git a/docs/content/reference/v3/api-reference/projects/index.mdx b/docs/content/reference/v3/api-reference/projects/index.mdx
index f2578c080..62b6f2a34 100644
--- a/docs/content/reference/v3/api-reference/projects/index.mdx
+++ b/docs/content/reference/v3/api-reference/projects/index.mdx
@@ -9,4 +9,4 @@ Projects API endpoints
## Endpoints
-<ApiEndpointsTable endpoints={[{"method":"GET","pathV31":"/api/v3.1/org/project/config","pathV3":"/api/v3/org/project/config","summary":"Get project configuration","href":"/reference/v3/api-reference/projects/getOrgProjectConfig"},{"method":"PATCH","pathV31":"/api/v3.1/org/project/config","pathV3":"/api/v3/org/project/config","summary":"Update project configuration","href":"/reference/v3/api-reference/projects/patchOrgProjectConfig"},{"method":"GET","pathV31":"/api/v3.1/org/project/usage/summary","pathV3":"/api/v3/org/project/usage/summary","summary":"Project usage summary","href":"/reference/v3/api-reference/projects/getOrgProjectUsageSummary"},{"method":"POST","pathV31":"/api/v3.1/org/owner/project/new","pathV3":"/api/v3/org/owner/project/new","summary":"Create a new project","href":"/reference/v3/api-reference/projects/postOrgOwnerProjectNew"},{"method":"GET","pathV31":"/api/v3.1/org/owner/project/list","pathV3":"/api/v3/org/owner/project/list","summary":"List all projects","href":"/reference/v3/api-reference/projects/getOrgOwnerProjectList"},{"method":"GET","pathV31":"/api/v3.1/org/owner/project/{nano_id}","pathV3":"/api/v3/org/owner/project/{nano_id}","summary":"Get project details by ID With Org Api key","href":"/reference/v3/api-reference/projects/getOrgOwnerProjectByNanoId"},{"method":"DELETE","pathV31":"/api/v3.1/org/owner/project/{nano_id}","pathV3":"/api/v3/org/owner/project/{nano_id}","summary":"Delete a project","href":"/reference/v3/api-reference/projects/deleteOrgOwnerProjectByNanoId"},{"method":"POST","pathV31":"/api/v3.1/org/owner/project/{nano_id}/regenerate_api_key","pathV3":"/api/v3/org/owner/project/{nano_id}/regenerate_api_key","summary":"Delete and generate new API key for project","href":"/reference/v3/api-reference/projects/postOrgOwnerProjectByNanoIdRegenerateApiKey"}]} />
+<ApiEndpointsTable endpoints={[{"method":"GET","pathV31":"/api/v3.1/org/project/config","pathV3":"/api/v3/org/project/config","summary":"Get project configuration","href":"/reference/v3/api-reference/projects/getOrgProjectConfig"},{"method":"PATCH","pathV31":"/api/v3.1/org/project/config","pathV3":"/api/v3/org/project/config","summary":"Update project configuration","href":"/reference/v3/api-reference/projects/patchOrgProjectConfig"},{"method":"POST","pathV31":"/api/v3.1/org/owner/project/new","pathV3":"/api/v3/org/owner/project/new","summary":"Create a new project","href":"/reference/v3/api-reference/projects/postOrgOwnerProjectNew"},{"method":"GET","pathV31":"/api/v3.1/org/owner/project/list","pathV3":"/api/v3/org/owner/project/list","summary":"List all projects","href":"/reference/v3/api-reference/projects/getOrgOwnerProjectList"},{"method":"GET","pathV31":"/api/v3.1/org/owner/project/{nano_id}","pathV3":"/api/v3/org/owner/project/{nano_id}","summary":"Get project details by ID With Org Api key","href":"/reference/v3/api-reference/projects/getOrgOwnerProjectByNanoId"},{"method":"DELETE","pathV31":"/api/v3.1/org/owner/project/{nano_id}","pathV3":"/api/v3/org/owner/project/{nano_id}","summary":"Delete a project","href":"/reference/v3/api-reference/projects/deleteOrgOwnerProjectByNanoId"},{"method":"POST","pathV31":"/api/v3.1/org/owner/project/{nano_id}/regenerate_api_key","pathV3":"/api/v3/org/owner/project/{nano_id}/regenerate_api_key","summary":"Delete and generate new API key for project","href":"/reference/v3/api-reference/projects/postOrgOwnerProjectByNanoIdRegenerateApiKey"}]} />
diff --git a/docs/public/data/toolkits-list.json b/docs/public/data/toolkits-list.json
index 3c72199af..dfc384a33 100644
--- a/docs/public/data/toolkits-list.json
+++ b/docs/public/data/toolkits-list.json
@@ -967,6 +967,14 @@
"toolCount": 13,
"triggerCount": 0
},
+ {
+ "slug": "breezy_hr",
+ "name": "Breezy Hr",
+ "logo": "https://logos.composio.dev/api/breezy_hr",
+ "category": "hr talent & recruitment",
+ "toolCount": 48,
+ "triggerCount": 0
+ },
{
"slug": "launch_darkly",
"name": "LaunchDarkly",
@@ -7990,13 +7998,5 @@
"category": "marketing automation",
"toolCount": 5,
"triggerCount": 0
- },
- {
- "slug": "webscraper_io",
- "name": "Webscraper io",
- "logo": "https://logos.composio.dev/api/webscraper_io",
- "category": "developer tools",
- "toolCount": 10,
- "triggerCount": 0
}
]
\ No newline at end of file
diff --git a/docs/public/data/toolkits.json b/docs/public/data/toolkits.json
index 2c5a20a68..9cce121f2 100644
--- a/docs/public/data/toolkits.json
+++ b/docs/public/data/toolkits.json
@@ -13,7 +13,7 @@
],
"toolCount": 62,
"triggerCount": 2,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GMAIL_ADD_LABEL_TO_EMAIL",
@@ -5065,7 +5065,7 @@
],
"toolCount": 46,
"triggerCount": 7,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLECALENDAR_ACL_DELETE",
@@ -5401,7 +5401,7 @@
],
"toolCount": 48,
"triggerCount": 5,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "NOTION_ADD_MULTIPLE_PAGE_CONTENT",
@@ -5759,7 +5759,7 @@
],
"toolCount": 48,
"triggerCount": 16,
- "version": "20260414_01",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLESHEETS_ADD_SHEET",
@@ -6149,7 +6149,7 @@
],
"toolCount": 151,
"triggerCount": 5,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SLACK_ADD_CALL_PARTICIPANTS",
@@ -7723,7 +7723,7 @@
],
"toolCount": 301,
"triggerCount": 5,
- "version": "20260415_01",
+ "version": "20260417_00",
"tools": [
{
"slug": "OUTLOOK_ACCEPT_EVENT",
@@ -9902,7 +9902,7 @@
],
"toolCount": 89,
"triggerCount": 7,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE",
@@ -10452,7 +10452,7 @@
],
"toolCount": 35,
"triggerCount": 10,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLEDOCS_COPY_DOCUMENT",
@@ -10748,7 +10748,7 @@
],
"toolCount": 233,
"triggerCount": 2,
- "version": "20260417_00",
+ "version": "20260417_01",
"tools": [
{
"slug": "HUBSPOT_ADD_ASSET_ASSOCIATION",
@@ -11967,7 +11967,7 @@
"type": "string",
"description": "Scopes to request from the user, comma separated",
"required": false,
- "default": "account-info.security.read,accounting,cms.domains.read,cms.domains.write,crm.export,crm.import,crm.lists.read,crm.lists.write,crm.objects.companies.read,crm.objects.companies.write,crm.objects.contacts.read,crm.objects.contacts.write,crm.objects.deals.read,crm.objects.deals.write,crm.objects.leads.read,crm.objects.leads.write,crm.objects.marketing_events.read,crm.objects.marketing_events.write,crm.objects.owners.read,crm.objects.quotes.read,crm.objects.quotes.write,crm.schemas.companies.read,crm.schemas.companies.write,crm.schemas.contacts.read,crm.schemas.contacts.write,oauth,settings.users.read,settings.users.write,tickets,timeline,e-commerce,crm.objects.custom.read,crm.schemas.custom.read,content,sales-email-read"
+ "default": "account-info.security.read,accounting,cms.domains.read,cms.domains.write,crm.export,crm.import,crm.lists.read,crm.lists.write,crm.objects.companies.read,crm.objects.companies.write,crm.objects.contacts.read,crm.objects.contacts.write,crm.objects.deals.read,crm.objects.deals.write,crm.objects.marketing_events.read,crm.objects.marketing_events.write,crm.objects.owners.read,crm.objects.quotes.read,crm.objects.quotes.write,crm.schemas.companies.read,crm.schemas.companies.write,crm.schemas.contacts.read,crm.schemas.contacts.write,oauth,settings.users.read,settings.users.write,tickets,timeline,e-commerce,crm.objects.custom.read,crm.schemas.custom.read,content,sales-email-read"
},
{
"name": "optional_scopes",
@@ -12025,7 +12025,7 @@
],
"toolCount": 33,
"triggerCount": 3,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "LINEAR_CREATE_ATTACHMENT",
@@ -12299,7 +12299,7 @@
],
"toolCount": 25,
"triggerCount": 6,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "AIRTABLE_CREATE_BASE",
@@ -12887,7 +12887,7 @@
],
"toolCount": 97,
"triggerCount": 3,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "JIRA_ADD_ATTACHMENT",
@@ -13551,7 +13551,7 @@
],
"toolCount": 30,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "FIRECRAWL_AGENT_CANCEL",
@@ -13819,7 +13819,7 @@
],
"toolCount": 50,
"triggerCount": 4,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "YOUTUBE_ADD_VIDEO_TO_PLAYLIST",
@@ -14159,7 +14159,7 @@
],
"toolCount": 89,
"triggerCount": 5,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SLACKBOT_ADD_CALL_PARTICIPANTS",
@@ -14705,7 +14705,7 @@
],
"toolCount": 560,
"triggerCount": 6,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CANVAS_ABORT_QUIZ_REPORT_GENERATION",
@@ -17644,7 +17644,7 @@
],
"toolCount": 107,
"triggerCount": 0,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "BITBUCKET_APPROVE_PULL_REQUEST",
@@ -18248,7 +18248,7 @@
],
"toolCount": 18,
"triggerCount": 5,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLETASKS_BATCH_EXECUTE",
@@ -20278,7 +20278,7 @@
],
"toolCount": 144,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "WRIKE_BULK_MODIFY_GROUPS",
@@ -21206,7 +21206,7 @@
],
"toolCount": 207,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SENTRY_ACCESS_PROJECT_INFORMATION",
@@ -23379,7 +23379,7 @@
],
"toolCount": 164,
"triggerCount": 0,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "MICROSOFT_TEAMS_ADD_CHAT_MEMBER",
@@ -27768,7 +27768,7 @@
],
"toolCount": 60,
"triggerCount": 9,
- "version": "20260415_01",
+ "version": "20260417_00",
"tools": [
{
"slug": "ONE_DRIVE_CHECKIN_ITEM",
@@ -30897,7 +30897,7 @@
],
"toolCount": 216,
"triggerCount": 7,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SALESFORCE_ACCOUNT_CREATION_WITH_CONTENT_TYPE_OPTION",
@@ -35644,7 +35644,7 @@
],
"toolCount": 506,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "POSTHOG_ADD_DASHBOARD_COLLABORATORS_WITH_ACCESS_LEVEL",
@@ -45003,7 +45003,7 @@
],
"toolCount": 15,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLEMEET_CREATE_MEET",
@@ -45033,7 +45033,7 @@
{
"slug": "GOOGLEMEET_GET_RECORDINGS_BY_CONFERENCE_RECORD_ID",
"name": "Get recordings by conference record ID",
- "description": "Retrieves recordings from Google Meet for a given conference record ID. Only returns recordings if recording was enabled and permitted by the organizer's domain policies; a valid conferenceRecord_id does not guarantee recordings exist. After a meeting ends, recordings may take several minutes to process — an empty result may be temporary, not permanent."
+ "description": "Retrieves recordings from Google Meet for a given conference record ID. Only returns recordings if recording was enabled and permitted by the organizer's domain policies; a valid conference_record_id does not guarantee recordings exist. After a meeting ends, recordings may take several minutes to process — an empty result may be temporary, not permanent."
},
{
"slug": "GOOGLEMEET_GET_TRANSCRIPT",
@@ -45048,7 +45048,7 @@
{
"slug": "GOOGLEMEET_GET_TRANSCRIPTS_BY_CONFERENCE_RECORD_ID",
"name": "Get transcripts by conference record ID",
- "description": "Retrieves all transcripts for a specific Google Meet conference using its conferenceRecord_id. Transcripts require processing time after a meeting ends — empty results may be transient; retry after a delay before concluding no transcripts exist. Returns results only if transcription was enabled during the meeting and permitted by the organizer's domain policies; an empty list may also indicate transcription was never generated."
+ "description": "Retrieves all transcripts for a specific Google Meet conference using its conference_record_id. Transcripts require processing time after a meeting ends — empty results may be transient; retry after a delay before concluding no transcripts exist. Returns results only if transcription was enabled during the meeting and permitted by the organizer's domain policies; an empty list may also indicate transcription was never generated."
},
{
"slug": "GOOGLEMEET_LIST_CONFERENCE_RECORDS",
@@ -45209,7 +45209,7 @@
],
"toolCount": 14,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ZOHO_CONVERT_ZOHO_LEAD",
@@ -45509,7 +45509,7 @@
],
"toolCount": 177,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "DROPBOX_ACTIVATE_TEAM_FOLDER",
@@ -47216,7 +47216,7 @@
],
"toolCount": 62,
"triggerCount": 20,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CONFLUENCE_ADD_CONTENT_LABEL",
@@ -52279,7 +52279,7 @@
],
"toolCount": 63,
"triggerCount": 0,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLEBIGQUERY_CANCEL_JOB",
@@ -59371,7 +59371,7 @@
],
"toolCount": 431,
"triggerCount": 20,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLESUPER_ACL_DELETE",
@@ -60441,7 +60441,7 @@
{
"slug": "GOOGLESUPER_GET_RECORDINGS_BY_CONFERENCE_RECORD_ID",
"name": "Get recordings by conference record ID",
- "description": "Retrieves recordings from Google Meet for a given conference record ID. Only returns recordings if recording was enabled and permitted by the organizer's domain policies; a valid conferenceRecord_id does not guarantee recordings exist. After a meeting ends, recordings may take several minutes to process — an empty result may be temporary, not permanent."
+ "description": "Retrieves recordings from Google Meet for a given conference record ID. Only returns recordings if recording was enabled and permitted by the organizer's domain policies; a valid conference_record_id does not guarantee recordings exist. After a meeting ends, recordings may take several minutes to process — an empty result may be temporary, not permanent."
},
{
"slug": "GOOGLESUPER_GET_RECURRING_AUDIENCE_LIST",
@@ -60516,7 +60516,7 @@
{
"slug": "GOOGLESUPER_GET_TRANSCRIPTS_BY_CONFERENCE_RECORD_ID",
"name": "Get transcripts by conference record ID",
- "description": "Retrieves all transcripts for a specific Google Meet conference using its conferenceRecord_id. Transcripts require processing time after a meeting ends — empty results may be transient; retry after a delay before concluding no transcripts exist. Returns results only if transcription was enabled during the meeting and permitted by the organizer's domain policies; an empty list may also indicate transcription was never generated."
+ "description": "Retrieves all transcripts for a specific Google Meet conference using its conference_record_id. Transcripts require processing time after a meeting ends — empty results may be transient; retry after a delay before concluding no transcripts exist. Returns results only if transcription was enabled during the meeting and permitted by the organizer's domain policies; an empty list may also indicate transcription was never generated."
},
{
"slug": "GOOGLESUPER_GET_VACATION_SETTINGS",
@@ -62333,7 +62333,7 @@
],
"toolCount": 68,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ROCKETLANE_ADD_ASSIGNEE_TO_TASK",
@@ -62717,12 +62717,12 @@
],
"toolCount": 104,
"triggerCount": 11,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ZOOM_ADD_A_MEETING_REGISTRANT",
"name": "Add a meeting registrant",
- "description": "Registers a participant for a Zoom meeting that has registration enabled. **Prerequisites:** - The meeting host must have a **licensed (paid) Zoom account** - this will NOT work with free/basic accounts - The meeting must have registration enabled (approval_type = 0 for automatic or 1 for manual approval) - Maximum of 4,999 registrants per meeting **Required fields:** meetingId, first_name, last_name, email **Optional fields:** address, city, state, zip, country, phone, comments, industry, job_title, org, language, auto_approve **Common errors:** - \"Only available for paid users\" - The meeting host needs a licensed Zoom account - \"Registration has not been enabled\" - Enable registration via update_a_meeting with approval_type = 0 or 1 - \"Meeting not found\" - Invalid meeting ID or meeting has ended"
+ "description": "Registers a participant for a Zoom meeting that has registration enabled. **Prerequisites:** - The meeting host must have a **licensed (paid) Zoom account** - this will NOT work with free/basic accounts - The meeting must have registration enabled (approval_type = 0 for automatic or 1 for manual approval) - Maximum of 4,999 registrants per meeting **Required fields:** meeting_id, first_name, last_name, email **Optional fields:** address, city, state, zip, country, phone, comments, industry, job_title, org, language, auto_approve **Common errors:** - \"Only available for paid users\" - The meeting host needs a licensed Zoom account - \"Registration has not been enabled\" - Enable registration via update_a_meeting with approval_type = 0 or 1 - \"Meeting not found\" - Invalid meeting ID or meeting has ended"
},
{
"slug": "ZOOM_ADD_A_WEBINAR_REGISTRANT",
@@ -67640,7 +67640,7 @@
],
"toolCount": 77,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "MIRO_ATTACH_TAG_TO_ITEM",
@@ -68095,7 +68095,7 @@
],
"toolCount": 89,
"triggerCount": 0,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SHARE_POINT_ADD_ATTACHMENT_TO_LIST_ITEM",
@@ -69012,6 +69012,260 @@
}
]
},
+ {
+ "slug": "breezy_hr",
+ "name": "Breezy Hr",
+ "logo": "https://logos.composio.dev/api/breezy_hr",
+ "description": "Integrate Breezy HR to streamline your recruiting and applicant tracking processes.",
+ "category": "hr talent & recruitment",
+ "authSchemes": [],
+ "toolCount": 48,
+ "triggerCount": 0,
+ "version": "20260417_00",
+ "tools": [
+ {
+ "slug": "BREEZY_HR_ADD_CANDIDATE_CUSTOM_ATTRIBUTE",
+ "name": "Add Candidate Custom Attribute",
+ "description": "Add or update a custom attribute for a candidate in Breezy HR. Use when you need to store custom metadata, internal notes, evaluation scores, or any other custom data for a candidate application. If the attribute name already exists for this candidate, its value will be updated with the new value."
+ },
+ {
+ "slug": "BREEZY_HR_ADD_CANDIDATE_DOCUMENT",
+ "name": "Add Candidate Document",
+ "description": "Upload a document file for an existing candidate in Breezy HR. Use when you need to attach additional documents (cover letters, portfolios, certifications, or other files) to a candidate's application. The file is sent as multipart/form-data with the field name 'data'. This action is idempotent - uploading a document with the same name may create a duplicate or update the existing document depending on Breezy HR behavior."
+ },
+ {
+ "slug": "BREEZY_HR_ADD_CANDIDATE_EDUCATION",
+ "name": "Add Candidate Education",
+ "description": "Add an education entry to an existing candidate in Breezy HR. Use this action when you need to record a candidate's educational background, such as degrees, certifications, or school attendance. If an education entry already exists for the same school, it will be updated with the provided values."
+ },
+ {
+ "slug": "BREEZY_HR_ADD_CANDIDATE_NOTE",
+ "name": "Add Candidate Note",
+ "description": "Adds a note to a candidate's discussion stream in Breezy HR. Use this action when you need to record observations, interview feedback, or any communication about a candidate directly in their profile. The note becomes part of the candidate's activity history and is visible to all users with access to the candidate."
+ },
+ {
+ "slug": "BREEZY_HR_ADD_CANDIDATE_RESUME",
+ "name": "Add candidate resume",
+ "description": "Attach a resume file to an existing candidate in Breezy HR. Use when you need to add or update a candidate's resume document. The file is sent as multipart/form-data with the field name 'file'."
+ },
+ {
+ "slug": "BREEZY_HR_ADD_CANDIDATE_WORK_HISTORY",
+ "name": "Add Candidate Work History",
+ "description": "Add a work history entry to an existing candidate in Breezy HR. Use this action when you need to record a candidate's employment history, such as previous job positions, companies, and work responsibilities. If a work history entry already exists for the same company, it will be updated with the provided values."
+ },
+ {
+ "slug": "BREEZY_HR_CREATE_CANDIDATE",
+ "name": "Add candidate to position",
+ "description": "Add a new candidate to a position in Breezy HR. Use when you need to create or add a candidate to a specific job position. This action allows you to programmatically add candidates to positions with various details including contact information, education, work history, social profiles, and custom attributes. The candidate can be marked as 'sourced' (direct hire) or 'applied' (applicant tracking). Note: If origin is 'applied', email_address is required. For 'sourced' candidates, email is optional but recommended."
+ },
+ {
+ "slug": "BREEZY_HR_CREATE_CANDIDATE_FROM_RESUME",
+ "name": "Create Candidate From Resume",
+ "description": "Upload and parse a resume file to create a new candidate in Breezy HR. Use this action when you need to add a new job candidate by uploading their resume. The resume is parsed and candidate information is automatically extracted and associated with the specified position. The candidate will be placed in the default 'applied' stage unless a different stage_id is specified."
+ },
+ {
+ "slug": "BREEZY_HR_CREATE_POSITION",
+ "name": "Create Position",
+ "description": "Create a new position in Breezy HR. Use when you need to add a new job opening to your company's hiring pipeline with specific details like title, description, location, and employment type. This action creates a position that can then accept applications from candidates. The position will be created in draft state by default unless otherwise specified."
+ },
+ {
+ "slug": "BREEZY_HR_CREATE_WEBHOOK_ENDPOINT",
+ "name": "Create Webhook Endpoint",
+ "description": "Create a new webhook endpoint to receive event notifications from Breezy HR. Use this action when you need to set up real-time notifications for events such as candidates being added, deleted, or having their status updated. The response includes a secret key that should be stored securely to verify incoming webhook signatures. This action is idempotent based on the endpoint URL and subscribed events."
+ },
+ {
+ "slug": "BREEZY_HR_DELETE_WEBHOOK_ENDPOINT",
+ "name": "Delete Webhook Endpoint",
+ "description": "Delete an existing webhook endpoint from Breezy HR. Use this action when you need to remove a webhook endpoint that is no longer needed for receiving real-time notifications about Breezy HR events such as candidate additions, deletions, or status updates. This action is irreversible — the webhook endpoint cannot be recovered once deleted."
+ },
+ {
+ "slug": "BREEZY_HR_GET_CANDIDATE",
+ "name": "Get Candidate",
+ "description": "Retrieve candidate details by ID for a given position in Breezy HR. Use this action when you need to fetch the full profile and details of a specific candidate applying to a specific job position. This includes contact information, social accounts, recruitment stage, rating, source, and other candidate metadata. This is a read-only operation that does not modify any candidate data."
+ },
+ {
+ "slug": "BREEZY_HR_GET_CANDIDATE_CONVERSATION",
+ "name": "Get Candidate Conversation",
+ "description": "Retrieve the conversation stream for a specific candidate applying to a position. Use when you need to view all messages exchanged with a candidate, including messages sent by the hiring team and responses from the candidate. The conversation includes timestamps, message content, attachments, and sender information."
+ },
+ {
+ "slug": "BREEZY_HR_GET_CANDIDATE_META",
+ "name": "Get Candidate Meta",
+ "description": "Retrieves candidate meta data by ID for a given position. Use this action when you need to fetch all metadata information (assessments, documents, scorecards, etc.) associated with a specific candidate for a specific job position. The metadata includes various aspects of the candidate's interaction and evaluation such as assessments, background checks, conversation history, documents, questionnaires, references, schedule, scorecards, stream activity, tasks, and team notes."
+ },
+ {
+ "slug": "BREEZY_HR_GET_CANDIDATE_RESUME",
+ "name": "Get Candidate Resume",
+ "description": "Retrieve a candidate's resume file from a specific job position in Breezy HR. Use this action when you need to download and review a candidate's resume/CV for a specific job application. The resume is typically returned as a PDF or Word document. This action streams the resume file directly from Breezy HR's servers."
+ },
+ {
+ "slug": "BREEZY_HR_GET_CANDIDATE_STREAM",
+ "name": "Get Candidate Stream",
+ "description": "Retrieves the last 50 candidate discussion stream events by candidate ID for a given position. Use this action when you need to view the conversation history, activity timeline, status changes, or all interactions related to a specific candidate within a job position. This is useful for tracking candidate engagement, reviewing hiring team notes, or monitoring the progression through the pipeline."
+ },
+ {
+ "slug": "BREEZY_HR_GET_COMPANY",
+ "name": "Get Company Information",
+ "description": "Retrieves complete information about a company in Breezy HR. Use when you need to fetch company details, settings, or profile information for a specific Breezy HR company account."
+ },
+ {
+ "slug": "BREEZY_HR_GET_PIPELINE",
+ "name": "Get Pipeline",
+ "description": "Retrieves pipeline stages by pipeline ID for a specified company. Use when you need to fetch the hiring workflow stages associated with a particular pipeline, including stage names, icons, action counts, and associated actions."
+ },
+ {
+ "slug": "BREEZY_HR_GET_POSITION",
+ "name": "Get Position",
+ "description": "Retrieves detailed information about a specific job position by its ID. Use this action when you have a company ID and position ID and need to fetch the complete position details including description, location, requirements, and settings."
+ },
+ {
+ "slug": "BREEZY_HR_GET_POSITION_TEAM",
+ "name": "Get Position Team",
+ "description": "Retrieves user objects of all team members assigned to a specific job position. Use this action when you need to view the hiring team members associated with a particular position, including their names, email addresses, usernames, roles (Hiring Team Member or Hiring Manager), and account details. This is useful for understanding who has access to and responsibility for a specific job posting in your Breezy HR account."
+ },
+ {
+ "slug": "BREEZY_HR_GET_QUESTIONNAIRE",
+ "name": "Get Questionnaire",
+ "description": "Retrieves a questionnaire by its ID for a specific company. Use this action when you need to fetch the details, questions, and settings of an existing questionnaire in Breezy HR."
+ },
+ {
+ "slug": "BREEZY_HR_GET_TEMPLATE",
+ "name": "Get Email Template",
+ "description": "Retrieves an email template by its ID for a specific company. Use this action when you need to fetch the details, subject line, body content, and settings of an existing email template in Breezy HR."
+ },
+ {
+ "slug": "BREEZY_HR_GET_USER",
+ "name": "Get User",
+ "description": "Retrieves information about the authenticated user or a specific user by ID. Use this action when you need to fetch user profile details, including name, email, role, and other account information from Breezy HR. If user_id is not provided, the action returns the currently authenticated user's information."
+ },
+ {
+ "slug": "BREEZY_HR_GET_USER_DETAILS",
+ "name": "Get User Details",
+ "description": "Retrieves the details for the configurations of each company the authenticated user belongs to. This includes company information, hiring pipelines, questionnaires, templates, tasks, scorecards, and team member data. Use this action when you need to fetch comprehensive user and company configuration data for the authenticated user across all accessible companies."
+ },
+ {
+ "slug": "BREEZY_HR_GET_WEBHOOK_ENDPOINT",
+ "name": "Get Webhook Endpoint",
+ "description": "Retrieves detailed information about a specific webhook endpoint by its ID. Use this action when you need to fetch details about an existing webhook endpoint, including its configuration, subscribed events, status, and delivery statistics. This is a read-only operation that does not modify any data."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_CANDIDATE_ASSESSMENTS",
+ "name": "List Candidate Assessments",
+ "description": "Retrieves all 3rd party assessments a candidate has taken for a specific position. Use this action when you need to: - View the assessment history for a specific candidate - Check the status of ongoing or pending assessments - Retrieve assessment results and reports - Verify candidate has completed required pre-employment assessments This action queries the Breezy HR API to get all assessments associated with a candidate within a specific position and company context."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_CANDIDATE_BACKGROUND_CHECKS",
+ "name": "List Candidate Background Checks",
+ "description": "Retrieves all 3rd party background checks for a candidate. Use this action when you need to: - View the background check history for a specific candidate - Check the status of ongoing background checks - Retrieve background check results and reports This action queries the Breezy HR API to get all background checks associated with a candidate within a specific position and company context."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_CANDIDATE_CUSTOM_ATTRIBUTES",
+ "name": "List candidate custom attributes",
+ "description": "Retrieves all candidate-specific custom attributes configured for a company. Use this action when you need to list all available custom fields that can be used to store additional candidate information beyond the standard Breezy HR candidate fields. These custom attributes can include things like desired salary, source of application, department preferences, or any other company-specific data points. This is a read-only operation that does not modify any data."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_CANDIDATE_CUSTOM_FIELDS",
+ "name": "List Candidate Custom Fields",
+ "description": "Retrieves all custom field values for a specific candidate in the context of a job position. Use when you need to get the values of custom fields that have been filled out for a candidate in a specific job application, such as source of application, desired salary, department preference, or any other company-defined custom data points. This is a read-only operation that does not modify any data."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_CANDIDATE_DOCUMENTS",
+ "name": "List Candidate Documents",
+ "description": "Retrieve candidate documents by candidate ID for a given position. Use when you need to list all documents associated with a specific candidate for a specific job position. The documents may include resumes, cover letters, portfolios, or other relevant files."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_CANDIDATE_QUESTIONNAIRES",
+ "name": "List Candidate Questionnaires",
+ "description": "Retrieves all questionnaires for a specific candidate. Use this action when you need to: - View all questionnaires associated with a candidate - Check the status of questionnaire submissions - Retrieve questionnaire completion dates and scores - Track pending or overdue questionnaires This action queries the Breezy HR API to get all questionnaires associated with a candidate within a specific position and company context."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_COMPANIES",
+ "name": "List Companies",
+ "description": "Retrieve the companies associated with the authenticated user. Use this action when you need to discover what companies are accessible to the authenticated user, such as for listing available workspaces or checking company details."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_PIPELINES",
+ "name": "List Company Pipelines",
+ "description": "Retrieve all pipelines for a company. Use this action when you need to list all hiring pipelines configured in a Breezy HR company account. This action is read-only and returns pipeline information including stages, positions, and settings."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_POSITION_CUSTOM_ATTRIBUTES",
+ "name": "List Position Custom Attributes",
+ "description": "Retrieve all position-specific custom attributes defined for a company in Breezy HR. Use this action when you need to discover what custom fields are available for job positions, such as for building forms, validating attribute values, or understanding position data structure."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_POSITION_CUSTOM_FIELDS",
+ "name": "List Position Custom Fields",
+ "description": "Retrieve all custom fields for a specific position in Breezy HR. Use this action when you need to fetch the custom field values assigned to a particular job position, such as when reviewing candidate applications or updating position details. This action retrieves the custom field values (name, value, and security flag) that are associated with the specified position."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_POSITIONS",
+ "name": "List Breezy HR Positions",
+ "description": "Retrieves all job positions for a specified company, optionally filtered by state. Use when you need to find available job openings, list company positions, or get position details for a Breezy HR company account. The state filter defaults to 'published' to return only active job listings."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_QUESTIONNAIRES",
+ "name": "List company questionnaires",
+ "description": "Retrieves all company questionnaires from Breezy HR. Use this action when you need to fetch all available questionnaires associated with a specific company in the Breezy HR system."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_TEMPLATES",
+ "name": "List Company Templates",
+ "description": "Retrieves all company email templates from Breezy HR. Use this action when you need to fetch all available email templates associated with a specific company in the Breezy HR system. This is useful for finding templates to use in candidate communications, customizing email workflows, or managing company communication templates."
+ },
+ {
+ "slug": "BREEZY_HR_LIST_WEBHOOK_ENDPOINTS",
+ "name": "List Webhook Endpoints",
+ "description": "Retrieves all webhook endpoints configured for a specified company in Breezy HR. Use when you need to list all registered webhook endpoints, audit which events are being monitored, or check the configuration of existing webhooks. This action is read-only and idempotent."
+ },
+ {
+ "slug": "BREEZY_HR_PAUSE_WEBHOOK_ENDPOINT",
+ "name": "Pause Webhook Endpoint",
+ "description": "Pause webhook delivery to an endpoint in Breezy HR. Use when you need to temporarily stop receiving webhook notifications without deleting the endpoint configuration. The endpoint remains configured and can be resumed later. This action is useful during maintenance windows, debugging scenarios, or when you need to temporarily halt webhook processing while keeping the endpoint configuration intact. The endpoint status changes to 'paused' while the 'enabled' flag remains true, allowing for easy resumption."
+ },
+ {
+ "slug": "BREEZY_HR_RESUME_WEBHOOK_ENDPOINT",
+ "name": "Resume Webhook Endpoint",
+ "description": "Resume webhook delivery to a paused endpoint in Breezy HR. Use when you need to resume webhook delivery to an endpoint that was previously paused. Once resumed, the endpoint will start receiving webhook notifications for subscribed events again."
+ },
+ {
+ "slug": "BREEZY_HR_SEARCH_CANDIDATES",
+ "name": "Search Candidates by Email",
+ "description": "Search for candidates by their email address across all positions in a company. Use when you need to find candidates with a specific email address, verify if a candidate exists in the system, or retrieve candidate information based on email. This is a read-only operation that searches across all positions and pipelines."
+ },
+ {
+ "slug": "BREEZY_HR_UPDATE_CANDIDATE",
+ "name": "Update Candidate",
+ "description": "Tool to update a candidate on a specific position in Breezy HR. Use when you need to modify candidate information such as their headline, contact details, social profiles, tags, or other details on an existing candidate application. The candidate must already exist for the specified position. This action makes a PUT request to update the candidate's information."
+ },
+ {
+ "slug": "BREEZY_HR_UPDATE_CANDIDATE_SCORECARD",
+ "name": "Update candidate scorecard",
+ "description": "Update a candidate's scorecard for a specific position in a company. Use this action when you need to record a candidate's evaluation score and optional notes during the hiring process. This action is idempotent — calling it multiple times with the same parameters will update (not duplicate) the scorecard."
+ },
+ {
+ "slug": "BREEZY_HR_UPDATE_CANDIDATE_STAGE",
+ "name": "Update Candidate Stage",
+ "description": "Move a candidate to a specified stage in the hiring pipeline. Use when you need to advance, move, or reassign a candidate to a different stage in the recruitment process (e.g., from 'applied' to 'interviewing', or 'interviewing' to 'offer'). The action requires the company ID, position ID, candidate ID, and the target stage ID."
+ },
+ {
+ "slug": "BREEZY_HR_UPDATE_POSITION",
+ "name": "Update Position",
+ "description": "Tool to update details of an existing position in Breezy HR. Use when you need to modify any attributes of an existing job position such as the name, description, department, employment type, category, education requirements, experience level, location, tags, or other position properties. The position must already exist for the specified company. This action makes a PUT request to update the position's information."
+ },
+ {
+ "slug": "BREEZY_HR_UPDATE_POSITION_STATE",
+ "name": "Update position state",
+ "description": "Update the state of an existing position in Breezy HR. Use when you need to change a position's workflow state (e.g., from draft to published, or closing a position after hiring is complete). This action is commonly used during recruitment workflow management."
+ },
+ {
+ "slug": "BREEZY_HR_UPDATE_WEBHOOK_ENDPOINT",
+ "name": "Update Webhook Endpoint",
+ "description": "Update an existing webhook endpoint to receive event notifications from Breezy HR. Use when you need to modify the configuration of an existing webhook endpoint, such as changing the target URL, updating the description, modifying subscribed events, or enabling/disabling the endpoint. The endpoint must already exist for the specified company. This action makes a PUT request to update the webhook endpoint's configuration."
+ }
+ ],
+ "triggers": []
+ },
{
"slug": "launch_darkly",
"name": "LaunchDarkly",
@@ -69023,7 +69277,7 @@
],
"toolCount": 248,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "LAUNCH_DARKLY_ADD_MEMBER_TO_TEAMS",
@@ -70779,7 +71033,7 @@
],
"toolCount": 106,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CONTENTFUL_ACTIVATE_CONTENT_TYPE",
@@ -71619,7 +71873,7 @@
],
"toolCount": 25,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ABLY_BATCH_PRESENCE",
@@ -71854,7 +72108,7 @@
],
"toolCount": 86,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "NETSUITE_ASYNC_GET_JOB_STATUS",
@@ -80014,7 +80268,7 @@
],
"toolCount": 52,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "WEBFLOW_CREATE_ASSET_FOLDER",
@@ -80363,7 +80617,7 @@
],
"toolCount": 10,
"triggerCount": 0,
- "version": "20260407_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "AMCARDS_GET_API_SCHEMA",
@@ -84056,7 +84310,7 @@
],
"toolCount": 64,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "LEVER_ADD_OPPORTUNITY_LINKS",
@@ -85536,7 +85790,7 @@
],
"toolCount": 69,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLE_ANALYTICS_ARCHIVE_CUSTOM_DIMENSION",
@@ -86445,7 +86699,7 @@
],
"toolCount": 23,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ZOHO_DESK_CREATE_TICKET",
@@ -87301,7 +87555,7 @@
],
"toolCount": 840,
"triggerCount": 0,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "DATAROBOT_ADD_USERS_TO_GROUP",
@@ -94856,7 +95110,7 @@
],
"toolCount": 30,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "MAINTAINX_CREATE_CATEGORY",
@@ -95209,7 +95463,7 @@
],
"toolCount": 28,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "EPIC_GAMES_DELETE_PRESET_METADATA_KEY",
@@ -98120,7 +98374,7 @@
],
"toolCount": 41,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "XERO_CREATE_BANK_TRANSACTION",
@@ -98530,7 +98784,7 @@
],
"toolCount": 298,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ACTIVE_CAMPAIGN_ADD_BROWSE_SESSION_CART",
@@ -100072,7 +100326,7 @@
],
"toolCount": 15,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ZOHO_MAIL_ACCOUNTS_LIST_ACCOUNTS",
@@ -101678,7 +101932,7 @@
],
"toolCount": 94,
"triggerCount": 0,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "HIGHLEVEL_CHECK_ACCOUNT_FUNDS",
@@ -103398,7 +103652,7 @@
],
"toolCount": 137,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ZOHO_INVOICE_ADD_CREDITNOTE_TO_INVOICES",
@@ -106153,7 +106407,7 @@
],
"toolCount": 159,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ACTIVE_TRAIL_ADD_GROUP_MEMBER",
@@ -107365,7 +107619,7 @@
],
"toolCount": 119,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "AFFINDA_ADD_TAG_TO_DOCUMENTS",
@@ -113454,7 +113708,7 @@
],
"toolCount": 13,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "APIPIE_AI_ANONYMIZE_TEXT",
@@ -113656,7 +113910,7 @@
],
"toolCount": 14,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "APPCIRCLE_BUILD_REPO_WEBHOOK_CALLBACK_STANDARD",
@@ -120589,7 +120843,7 @@
],
"toolCount": 92,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "BLAZEMETER_CONVERT_TRANSACTIONS",
@@ -122838,7 +123092,7 @@
],
"toolCount": 31,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "BOTSTAR_CREATE_BOT",
@@ -125824,7 +126078,7 @@
],
"toolCount": 38,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CALENDARHERO_ADD_CALENDAR_CONNECTION",
@@ -126554,7 +126808,7 @@
],
"toolCount": 14,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CAMPAYN_CREATE_CONTACT",
@@ -128024,7 +128278,7 @@
],
"toolCount": 117,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CELIGO_ASSIGN_EXPORT_ERROR",
@@ -134783,7 +135037,7 @@
],
"toolCount": 150,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CLOUDCART_ADD_CATEGORY_PROPERTIES",
@@ -135834,7 +136088,7 @@
],
"toolCount": 4,
"triggerCount": 0,
- "version": "20260410_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CLOUDFLARE_BROWSER_RENDERING_CAPTURE_SCREENSHOT",
@@ -137043,7 +137297,7 @@
],
"toolCount": 16,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CODEREADR_COLLECT_DATA_WITH_QUESTIONS",
@@ -138667,7 +138921,7 @@
],
"toolCount": 11,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CONVERSION_TOOLS_CONVERT_EXCEL_TO_HTML",
@@ -141654,7 +141908,7 @@
],
"toolCount": 12,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CRAFTMYPDF_ADD_TEXT_TO_PDF",
@@ -143714,7 +143968,7 @@
],
"toolCount": 40,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "CUSTOMGPT_ACTIVATE_PERSONA_VERSION",
@@ -152475,7 +152729,7 @@
],
"toolCount": 38,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "DOCSBOT_AI_CAPTURE_CONVERSATION_LEAD",
@@ -154028,7 +154282,7 @@
],
"toolCount": 38,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "DOPPLER_MARKETING_AUTOMATION_ADD_SUBSCRIBER",
@@ -154453,7 +154707,7 @@
],
"toolCount": 11,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "DOTSIMPLE_CREATE_TAG",
@@ -155938,7 +156192,7 @@
],
"toolCount": 10,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "EAGLE_DOC_ANY_DOC_OCR",
@@ -160771,7 +161025,7 @@
],
"toolCount": 38,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "EVERHOUR_CLIENT_CREATE",
@@ -161480,7 +161734,7 @@
],
"toolCount": 18,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "EXPOFP_ADD_CATEGORY",
@@ -163509,7 +163763,7 @@
],
"toolCount": 21,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "FINDYMAIL_ADD_EXCLUDED_DOMAIN",
@@ -164371,7 +164625,7 @@
],
"toolCount": 124,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "FIREBERRY_CREATE_A_COMPETITOR",
@@ -165032,7 +165286,7 @@
],
"toolCount": 14,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "FIRMAO_CREATE_INVOICE",
@@ -165943,7 +166197,7 @@
],
"toolCount": 23,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "FOLK_CREATE_COMPANY",
@@ -168978,7 +169232,7 @@
],
"toolCount": 22,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GETPROSPECT_APPLY_COUPON_CODE",
@@ -169390,7 +169644,7 @@
],
"toolCount": 150,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GIGASHEET_APPEND_DATASET",
@@ -173877,7 +174131,7 @@
],
"toolCount": 8,
"triggerCount": 1,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOOGLESLIDES_CREATE_PRESENTATION",
@@ -174291,7 +174545,7 @@
],
"toolCount": 90,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GOSQUARED_ACCOUNT_ADD_SHARED_USER",
@@ -175282,7 +175536,7 @@
],
"toolCount": 143,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "GRIPTAPE_ASSISTANT_CREATION",
@@ -177895,7 +178149,7 @@
],
"toolCount": 48,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "HANDWRYTTEN_ADD_RECIPIENT",
@@ -178914,7 +179168,7 @@
],
"toolCount": 129,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "HELP_SCOUT_CREATE_CHAT_HANDLE",
@@ -179970,7 +180224,7 @@
],
"toolCount": 99,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "HERE_AUTOSUGGEST",
@@ -180952,7 +181206,7 @@
],
"toolCount": 14,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "HEYZINE_CREATE_FLIPBOOK_LINK",
@@ -181260,7 +181514,7 @@
],
"toolCount": 42,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "HONEYHIVE_ADD_DATAPOINTS_TO_DATASET",
@@ -182269,7 +182523,7 @@
],
"toolCount": 122,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "HUB_PLANNER_ADD_CLIENTS_TO_PROJECT",
@@ -185980,7 +186234,7 @@
],
"toolCount": 9,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "INFLUXDB_CLOUD_ADD_DASHBOARD_CELL",
@@ -188556,7 +188810,7 @@
],
"toolCount": 18,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "JOTFORM_CLONE_FORM",
@@ -189980,7 +190234,7 @@
],
"toolCount": 47,
"triggerCount": 0,
- "version": "20260413_01",
+ "version": "20260417_00",
"tools": [
{
"slug": "KIBANA_DELETE_ALERTING_RULES",
@@ -190354,7 +190608,7 @@
],
"toolCount": 35,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "KIEAI_ADD_INSTRUMENTAL",
@@ -191317,7 +191571,7 @@
],
"toolCount": 13,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "LAGROWTHMACHINE_ADD_RB2B_VISITOR_TO_AUDIENCE",
@@ -193052,7 +193306,7 @@
],
"toolCount": 28,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "LINKEDIN_ADS_CREATE_AD_ACCOUNT",
@@ -193770,7 +194024,7 @@
],
"toolCount": 30,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "LODGIFY_CREATE_CALLMEBACK_REQUEST",
@@ -194740,7 +194994,7 @@
],
"toolCount": 15,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "MAILBLUSTER_CREATE_LEAD",
@@ -195993,7 +196247,7 @@
],
"toolCount": 25,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "MAKE_CREATE_ORGANIZATIONS",
@@ -196278,7 +196532,7 @@
],
"toolCount": 32,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "MAPBOX_GEOCODE_BATCH_V6",
@@ -196754,7 +197008,7 @@
],
"toolCount": 177,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "MAXIO_ALLOCATE_COMPONENT",
@@ -202650,7 +202904,7 @@
],
"toolCount": 8,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "MSG91_CREATE_USER_EVENTS",
@@ -203323,7 +203577,7 @@
],
"toolCount": 136,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "NASA_BROWSE_NEO",
@@ -206524,7 +206778,7 @@
],
"toolCount": 48,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "NOZBE_TEAMS_CREATE_ATTACHMENT",
@@ -208590,7 +208844,7 @@
],
"toolCount": 15,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "ONESIGNAL_REST_API_BEGIN_LIVE_ACTIVITY",
@@ -209957,7 +210211,7 @@
],
"toolCount": 17,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "OPTIMOROUTE_CREATE_ORDER",
@@ -212458,7 +212712,7 @@
],
"toolCount": 112,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "PAYSTACK_ADD_PRODUCTS_TO_PAGE",
@@ -213105,7 +213359,7 @@
],
"toolCount": 35,
"triggerCount": 0,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "PDF_CO_ACCOUNT_BALANCE_INFO",
@@ -214063,7 +214317,7 @@
],
"toolCount": 9,
"triggerCount": 0,
- "version": "20260415_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "PERIGON_GET_ARTICLES",
@@ -214260,7 +214514,7 @@
],
"toolCount": 69,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "PERSONA_ADD_TAG_TO_ACCOUNT",
@@ -215231,7 +215485,7 @@
],
"toolCount": 48,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "PINECONE_CANCEL_BULK_IMPORT",
@@ -216643,7 +216897,7 @@
],
"toolCount": 90,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "POLYGON_GET10_K_SECTIONS",
@@ -217732,7 +217986,7 @@
],
"toolCount": 60,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "POSTGRID_CANCEL_BOX",
@@ -218260,7 +218514,7 @@
],
"toolCount": 135,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "POSTMAN_CREATE_A_COLLECTION",
@@ -219671,7 +219925,7 @@
],
"toolCount": 64,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "PROABONO_ANONYMIZE_CUSTOMER",
@@ -220676,7 +220930,7 @@
],
"toolCount": 6,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "PUSH_BY_TECHULUS_DELETE_TEAM_MEMBER_OR_INVITE",
@@ -221541,7 +221795,7 @@
],
"toolCount": 105,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "QUICKBOOKS_CAPTURE_CHARGE",
@@ -221966,7 +222220,7 @@
{
"slug": "QUICKBOOKS_QUERY_ACCOUNT",
"name": "Query Account Entities",
- "description": "Query Account entities in QuickBooks using SQL-like syntax. IMPORTANT: Queries the Account entity ONLY (chart of accounts). For other entities (Purchase, Invoice, Bill, Payment, etc.), use their respective query actions. NOTE: API returns ALL fields with values regardless of SELECT clause (projections not supported). Supports: WHERE clauses (=, <, >, LIKE, IN), pattern matching (%), ORDER BY, pagination (MAXRESULTS up to 1000, STARTPOSITION), COUNT. Common fields: Id, Name, AccountType, AccountSubType, Classification, Active, FullyQualifiedName, CurrentBalance, AcctNum, Description, SubAccount. Examples: - SELECT * FROM Account WHERE AccountType = 'Expense' MAXRESULTS 100 - SELECT * FROM Account WHERE Active = true ORDER BY Name - SELECT * FROM Account WHERE Name LIKE '%Checking%'"
+ "description": "Query Account entities in QuickBooks using SQL-like syntax. IMPORTANT: Queries the Account entity ONLY (chart of accounts). For other entities (Purchase, Invoice, Bill, Payment, etc.), use their respective query actions. NOTE: API returns ALL fields with values regardless of SELECT clause (projections not supported). CRITICAL RESTRICTIONS: Parentheses and OR operator are NOT supported. Use IN operator for multiple values: WHERE AccountType IN ('Bank', 'Credit Card') Supports: WHERE clauses (=, <, >, LIKE, IN), AND operator, pattern matching (%), ORDER BY, pagination (MAXRESULTS up to 1000, STARTPOSITION), COUNT. Common fields: Id, Name, AccountType, AccountSubType, Classification, Active, FullyQualifiedName, CurrentBalance, AcctNum, Description, SubAccount. Examples: - SELECT * FROM Account WHERE AccountType = 'Expense' MAXRESULTS 100 - SELECT * FROM Account WHERE Active = true ORDER BY Name - SELECT * FROM Account WHERE AccountType IN ('Bank', 'Credit Card')"
},
{
"slug": "QUICKBOOKS_QUERY_ATTACHABLE",
@@ -232494,7 +232748,7 @@
],
"toolCount": 63,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SALESFLARE_ADD_ACCOUNT_CONTACTS",
@@ -232850,7 +233104,7 @@
],
"toolCount": 25,
"triggerCount": 0,
- "version": "20260413_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SALESFORCE_SERVICE_CLOUD_AGENT_SENSITIVE_DATA_RULE_TRIGGERED",
@@ -233837,7 +234091,7 @@
],
"toolCount": 40,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SCALE_AI_ADD_STUDIO_ASSIGNMENTS",
@@ -236349,7 +236603,7 @@
],
"toolCount": 18,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SERPHOUSE_ACCOUNT_INFO",
@@ -237279,7 +237533,7 @@
],
"toolCount": 12,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SHIPDAY_ADD_A_CARRIER",
@@ -238319,7 +238573,7 @@
],
"toolCount": 41,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SHORT_IO_ADD_TAG_TO_LINKS_BULK",
@@ -246663,7 +246917,7 @@
],
"toolCount": 37,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SVIX_APP_CREATE",
@@ -246889,7 +247143,7 @@
],
"toolCount": 44,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "SWAGGERHUB_ADD_ACCESS_CONTROL_FOR_TEAMS",
@@ -249636,7 +249890,7 @@
],
"toolCount": 14,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "TEAMCAMP_CREATE_PROJECT",
@@ -251016,7 +251270,7 @@
],
"toolCount": 15,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "TICKETMASTER_EXECUTE_SEASON_TICKETING_COMMAND",
@@ -252351,7 +252605,7 @@
],
"toolCount": 82,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "TOMTOM_ASSETS_LIST_FONTS",
@@ -254722,7 +254976,7 @@
],
"toolCount": 35,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "TYPEFORM_CREATE_ACCOUNT_WORKSPACE",
@@ -256410,7 +256664,7 @@
],
"toolCount": 38,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "VAPI_ASSISTANT_CONTROLLER_UPDATE",
@@ -256803,7 +257057,7 @@
],
"toolCount": 146,
"triggerCount": 0,
- "version": "20260414_00",
+ "version": "20260417_00",
"tools": [
{
"slug": "VERCEL_ADD_ENVIRONMENT_VARIABLE",
@@ -258118,96 +258372,5 @@
}
}
]
- },
- {
- "slug": "webscraper_io",
- "name": "Webscraper io",
- "logo": "https://logos.composio.dev/api/webscraper_io",
- "description": "WebScraper.IO is a web scraping tool that makes web data extraction easy and accessible for everyone through a cloud-based API.",
- "category": "developer tools",
- "authSchemes": [
- "API_KEY"
- ],
- "toolCount": 10,
- "triggerCount": 0,
- "version": "20260413_00",
- "tools": [
- {
- "slug": "WEBSCRAPER_IO_CREATE_SITEMAP",
- "name": "Create Sitemap",
- "description": "Tool to create a new sitemap configuration for web scraping. Use when you need to define a new scraping structure with start URLs and selector rules for data extraction from a website."
- },
- {
- "slug": "WEBSCRAPER_IO_DELETE_SITEMAP",
- "name": "Delete Sitemap",
- "description": "Tool to permanently delete a sitemap configuration from Web Scraper Cloud account. Use when you need to remove a sitemap that is no longer needed."
- },
- {
- "slug": "WEBSCRAPER_IO_DISABLE_SITEMAP_SCHEDULER",
- "name": "Disable Sitemap Scheduler",
- "description": "Tool to disable automatic scheduling for a sitemap. Use when you need to stop automated scraping jobs from running on a schedule."
- },
- {
- "slug": "WEBSCRAPER_IO_ENABLE_SITEMAP_SCHEDULER",
- "name": "Enable Sitemap Scheduler",
- "description": "Tool to enable and configure automatic scheduling for sitemap scraping jobs. Use when you need to automate scraping jobs to run at specific times using cron expressions with customizable request intervals, page load delays, driver types, and proxy settings."
- },
- {
- "slug": "WEBSCRAPER_IO_GET_ACCOUNT_INFO",
- "name": "Get Account Info",
- "description": "Tool to retrieve account information including email and page credits. Use when you need to check account details or available credits."
- },
- {
- "slug": "WEBSCRAPER_IO_GET_SCRAPING_JOBS",
- "name": "Get Scraping Jobs",
- "description": "Tool to retrieve all scraping jobs for the account with optional filtering and pagination. Use when you need to list scraping jobs, check job status, or filter jobs by sitemap or tag."
- },
- {
- "slug": "WEBSCRAPER_IO_GET_SITEMAP",
- "name": "Get Sitemap",
- "description": "Tool to retrieve a specific sitemap configuration by ID. Use when you need to inspect or reference an existing sitemap's configuration."
- },
- {
- "slug": "WEBSCRAPER_IO_GET_SITEMAPS",
- "name": "Get Sitemaps",
- "description": "Tool to retrieve all sitemaps for the authenticated account with pagination support. Use when you need to list available sitemaps or filter them by tag. Supports optional pagination via page parameter and filtering by tag name."
- },
- {
- "slug": "WEBSCRAPER_IO_GET_SITEMAP_SCHEDULER",
- "name": "Get Sitemap Scheduler",
- "description": "Tool to retrieve scheduler configuration for a sitemap. Use when you need to check scheduling settings including cron configuration and proxy settings."
- },
- {
- "slug": "WEBSCRAPER_IO_UPDATE_SITEMAP",
- "name": "Update Sitemap",
- "description": "Tool to update an existing sitemap configuration including structure, URLs, and selectors. Use when you need to modify sitemap settings."
- }
- ],
- "triggers": [],
- "authConfigDetails": [
- {
- "mode": "API_KEY",
- "name": "webscraper_io_api_key",
- "fields": {
- "auth_config_creation": {
- "required": [],
- "optional": []
- },
- "connected_account_initiation": {
- "required": [
- {
- "name": "generic_api_key",
- "displayName": "API Token",
- "type": "string",
- "description": "Your WebScraper.IO API token. Get it from Account Info > API settings in your Web Scraper Cloud dashboard.",
- "required": true,
- "default": null
- }
- ],
- "optional": []
- }
- }
- }
- ]
}
]
\ No newline at end of file
diff --git a/docs/public/openapi-v3.json b/docs/public/openapi-v3.json
index a418cf1bf..dc439c7be 100644
--- a/docs/public/openapi-v3.json
+++ b/docs/public/openapi-v3.json
@@ -5088,137 +5088,6 @@
"x-api-version": "3.0"
}
},
- "/api/v3/org/usage/summary": {
- "get": {
- "summary": "Org usage summary",
- "description": "Aggregated metering usage for the authenticated organization across all projects. Requires ClickHouse logging (`USE_CLICKHOUSE_FOR_LOGS`). Values are summed from raw metering events grouped by `entity_type`.",
- "tags": [
- "Organization"
- ],
- "operationId": "getOrgUsageSummary",
- "parameters": [
- {
- "schema": {
- "type": "string",
- "description": "Inclusive range start (ISO 8601). Defaults to 30 days before end_time."
- },
- "required": false,
- "description": "Inclusive range start (ISO 8601). Defaults to 30 days before end_time.",
- "name": "start_time",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "Exclusive range end (ISO 8601). Defaults to now."
- },
- "required": false,
- "description": "Exclusive range end (ISO 8601). Defaults to now.",
- "name": "end_time",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Filter to these metering entity types (comma-separated or repeated query keys). Omit for all types."
- },
- "required": false,
- "description": "Filter to these metering entity types (comma-separated or repeated query keys). Omit for all types.",
- "name": "entity_types",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "Usage aggregates for the organization.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "rows": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "entity_type": {
- "type": "string"
- },
- "unit": {
- "type": "string"
- },
- "total_quantity": {
- "type": "string"
- },
- "event_count": {
- "type": "integer",
- "minimum": 0
- }
- },
- "required": [
- "entity_type",
- "unit",
- "total_quantity",
- "event_count"
- ]
- }
- }
- },
- "required": [
- "rows"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Invalid time range, entity_types, or query parameters.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Authentication required.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Failed to load usage from analytics store or feature configuration.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.0"
- }
- },
"/api/v3/org/project/config": {
"get": {
"summary": "Get project configuration",
@@ -5489,145 +5358,6 @@
"x-api-version": "3.0"
}
},
- "/api/v3/org/project/usage/summary": {
- "get": {
- "summary": "Project usage summary",
- "description": "Aggregated metering usage for the authenticated project only. Requires ClickHouse logging (`USE_CLICKHOUSE_FOR_LOGS`). Values are summed from raw metering events grouped by `entity_type`.",
- "tags": [
- "Projects"
- ],
- "operationId": "getOrgProjectUsageSummary",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "description": "Inclusive range start (ISO 8601). Defaults to 30 days before end_time."
- },
- "required": false,
- "description": "Inclusive range start (ISO 8601). Defaults to 30 days before end_time.",
- "name": "start_time",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "Exclusive range end (ISO 8601). Defaults to now."
- },
- "required": false,
- "description": "Exclusive range end (ISO 8601). Defaults to now.",
- "name": "end_time",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Filter to these metering entity types (comma-separated or repeated query keys). Omit for all types."
- },
- "required": false,
- "description": "Filter to these metering entity types (comma-separated or repeated query keys). Omit for all types.",
- "name": "entity_types",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "Usage aggregates for the project.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "rows": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "entity_type": {
- "type": "string"
- },
- "unit": {
- "type": "string"
- },
- "total_quantity": {
- "type": "string"
- },
- "event_count": {
- "type": "integer",
- "minimum": 0
- }
- },
- "required": [
- "entity_type",
- "unit",
- "total_quantity",
- "event_count"
- ]
- }
- }
- },
- "required": [
- "rows"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Invalid time range, entity_types, or query parameters.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Authentication required.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Failed to load usage from analytics store or feature configuration.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.0"
- }
- },
"/api/v3/org/owner/project/new": {
"post": {
"summary": "Create a new project",
diff --git a/docs/public/openapi.json b/docs/public/openapi.json
index 5be4897e5..d3163c0a3 100644
--- a/docs/public/openapi.json
+++ b/docs/public/openapi.json
@@ -124,6 +124,49 @@
}
},
"schemas": {
+ "Error": {
+ "type": "object",
+ "properties": {
+ "error": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "code": {
+ "type": "number"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "status": {
+ "type": "number"
+ },
+ "request_id": {
+ "type": "string"
+ },
+ "suggested_fix": {
+ "type": "string"
+ },
+ "errors": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "message",
+ "code",
+ "slug",
+ "status"
+ ]
+ }
+ },
+ "required": [
+ "error"
+ ]
+ },
"Tool": {
"type": "object",
"properties": {
@@ -408,49 +451,6 @@
"total_items"
]
},
- "Error": {
- "type": "object",
- "properties": {
- "error": {
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- },
- "code": {
- "type": "number"
- },
- "slug": {
- "type": "string"
- },
- "status": {
- "type": "number"
- },
- "request_id": {
- "type": "string"
- },
- "suggested_fix": {
- "type": "string"
- },
- "errors": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "message",
- "code",
- "slug",
- "status"
- ]
- }
- },
- "required": [
- "error"
- ]
- },
"PatchConnectedAccountBody": {
"type": "object",
"properties": {
@@ -786,14 +786,236 @@
"parameters": {}
},
"paths": {
- "/api/v3.1/tools": {
+ "/api/v3.1/logs/tool_execution": {
+ "post": {
+ "summary": "Search and retrieve tool execution logs",
+ "description": "Search and retrieve tool execution logs with filtering, pagination, and time range support.",
+ "tags": [
+ "Logs"
+ ],
+ "operationId": "postLogsToolExecution",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 20
+ },
+ "cursor": {
+ "type": "string",
+ "nullable": true
+ },
+ "filters": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "field": {
+ "type": "string",
+ "enum": [
+ "tool_slug",
+ "toolkit_slug",
+ "connected_account_id",
+ "auth_config_id",
+ "status",
+ "user_id",
+ "session_id",
+ "sandbox_id",
+ "request_id",
+ "log_id"
+ ]
+ },
+ "operator": {
+ "type": "string",
+ "enum": [
+ "==",
+ "!=",
+ "contains",
+ "not_contains"
+ ]
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "operator",
+ "value"
+ ]
+ },
+ "default": []
+ },
+ "time_range": {
+ "type": "object",
+ "properties": {
+ "from": {
+ "type": "number",
+ "description": "Start time in epoch milliseconds"
+ },
+ "to": {
+ "type": "number",
+ "description": "End time in epoch milliseconds"
+ }
+ },
+ "required": [
+ "from",
+ "to"
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved tool logs",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "logs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "ISO 8601 timestamp"
+ },
+ "type": {
+ "type": "string",
+ "description": "Log event type, e.g. tool.execution, trigger.message, connected_account.created"
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "success",
+ "failed"
+ ]
+ },
+ "level": {
+ "type": "string",
+ "enum": [
+ "info",
+ "error",
+ "warn"
+ ]
+ },
+ "message": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "metrics": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "parent": {
+ "type": "object",
+ "nullable": true,
+ "properties": {
+ "log_id": {
+ "type": "string"
+ },
+ "tool_slug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "log_id",
+ "tool_slug"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "timestamp",
+ "type",
+ "status",
+ "level",
+ "metadata",
+ "metrics",
+ "parent"
+ ]
+ }
+ },
+ "next_cursor": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": [
+ "logs",
+ "next_cursor"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/logs/tool_execution/{id}": {
"get": {
- "summary": "List available tools",
- "description": "Retrieve a paginated list of available tools with comprehensive filtering, sorting and search capabilities. Use query parameters to narrow down results by toolkit, tags, or search terms.",
+ "summary": "Get log details by ID",
+ "description": "Retrieve detailed log information by log ID.",
"tags": [
- "Tools"
+ "Logs"
],
- "operationId": "getTools",
+ "operationId": "getLogsToolExecutionById",
"security": [
{
"ApiKeyAuth": []
@@ -805,9 +1027,210 @@
"parameters": [
{
"schema": {
- "type": "string"
+ "type": "string",
+ "description": "The log ID"
},
- "required": false,
+ "required": true,
+ "description": "The log ID",
+ "name": "id",
+ "in": "path"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved log details",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string",
+ "format": "date-time",
+ "description": "ISO 8601 timestamp"
+ },
+ "type": {
+ "type": "string",
+ "description": "Log event type, e.g. tool.execution, trigger.message, connected_account.created"
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "success",
+ "failed"
+ ]
+ },
+ "level": {
+ "type": "string",
+ "enum": [
+ "info",
+ "error",
+ "warn"
+ ]
+ },
+ "message": {
+ "type": "string"
+ },
+ "metadata": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "metrics": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "parent": {
+ "type": "object",
+ "nullable": true,
+ "properties": {
+ "log_id": {
+ "type": "string"
+ },
+ "tool_slug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "log_id",
+ "tool_slug"
+ ]
+ },
+ "timings": {
+ "type": "object",
+ "properties": {
+ "start_time": {
+ "type": "number",
+ "description": "Epoch milliseconds"
+ },
+ "end_time": {
+ "type": "number",
+ "description": "Epoch milliseconds"
+ }
+ },
+ "required": [
+ "start_time",
+ "end_time"
+ ]
+ },
+ "context": {
+ "type": "object",
+ "properties": {
+ "session_id": {
+ "type": "string"
+ },
+ "trace_id": {
+ "type": "string"
+ },
+ "request_id": {
+ "type": "string"
+ }
+ }
+ },
+ "source": {
+ "type": "object",
+ "properties": {
+ "host": {
+ "type": "string"
+ },
+ "framework": {
+ "type": "string"
+ },
+ "language": {
+ "type": "string"
+ }
+ }
+ },
+ "data": {
+ "type": "object",
+ "additionalProperties": {}
+ }
+ },
+ "required": [
+ "id",
+ "timestamp",
+ "type",
+ "status",
+ "level",
+ "metadata",
+ "metrics",
+ "parent",
+ "context",
+ "source",
+ "data"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Log not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/tools": {
+ "get": {
+ "summary": "List available tools",
+ "description": "Retrieve a paginated list of available tools with comprehensive filtering, sorting and search capabilities. Use query parameters to narrow down results by toolkit, tags, or search terms.",
+ "tags": [
+ "Tools"
+ ],
+ "operationId": "getTools",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": false,
"description": "The slug of the toolkit to filter by",
"in": "query",
"name": "toolkit_slug"
@@ -2736,14 +3159,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/auth/session/info": {
- "get": {
- "summary": "Get current user session information",
- "description": "Retrieves detailed information about the current authenticated user session, including project details, organization membership, and API key information if applicable. This endpoint is useful for verifying authentication status and retrieving contextual information about the authenticated user and their access privileges.",
+ "/api/v3.1/tool_router/session": {
+ "post": {
+ "summary": "Create a new tool router session",
+ "description": "Creates a new session for the tool router feature. This endpoint initializes a new session with specified toolkits and their authentication configurations. The session provides an isolated environment for testing and managing tool routing logic with scoped MCP server access.",
"tags": [
- "Authentication"
+ "Tool Router"
],
- "operationId": "getAuthSessionInfo",
+ "operationId": "postToolRouterSession",
"security": [
{
"ApiKeyAuth": []
@@ -2752,1631 +3175,1180 @@
"UserApiKeyAuth": []
}
],
- "responses": {
- "200": {
- "description": "Session is valid and active. Returns detailed information about the authenticated user, their project, and organization.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "project": {
- "type": "object",
- "nullable": true,
- "properties": {
- "auto_id": {
- "type": "number",
- "description": "Internal auto-incrementing ID for the project",
- "example": 12345
- },
- "id": {
- "type": "string",
- "description": "UUID identifier for the project",
- "example": "550e8400-e29b-41d4-a716-446655440000"
- },
- "org_id": {
- "type": "string",
- "description": "Organization UUID that this project belongs to",
- "example": "550e8400-e29b-41d4-a716-446655440001"
- },
- "name": {
- "type": "string",
- "description": "User-defined name for the project",
- "example": "Production API"
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string",
+ "minLength": 1,
+ "description": "The identifier of the user who is initiating the session, ideally a unique identifier from your database like a user ID or email address",
+ "example": "user_123456789"
+ },
+ "toolkits": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "enable": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Only these specific toolkits will be enabled",
+ "example": [
+ "gmail",
+ "slack",
+ "github"
+ ]
+ }
},
- "email": {
- "type": "string",
- "description": "Email address used for project notifications",
- "example": "[email protected]"
+ "required": [
+ "enable"
+ ],
+ "additionalProperties": false,
+ "description": "Enable only specific toolkits (allowlist)"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "disable": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "These specific toolkits will be disabled",
+ "example": [
+ "gmail",
+ "slack"
+ ]
+ }
},
- "nano_id": {
- "type": "string",
- "format": "projectId",
- "description": "Short, URL-friendly unique identifier for the project",
- "example": "pr_1a2b3c4d5e6f"
- },
- "created_at": {
- "type": "string",
- "description": "Date and time when the project was created",
- "example": "2023-05-16T14:30:00.000Z"
- },
- "updated_at": {
- "type": "string",
- "description": "Date and time when the project was last modified",
- "example": "2023-05-18T09:15:30.000Z"
- },
- "webhook_url": {
- "type": "string",
- "nullable": true,
- "description": "Endpoint URL for trigger webhook notifications",
- "example": "https://example.com/webhook"
- },
- "event_webhook_url": {
- "type": "string",
- "nullable": true,
- "description": "Endpoint URL for event webhook notifications",
- "example": "https://example.com/events"
- },
- "webhook_secret": {
- "type": "string",
- "nullable": true,
- "description": "Secret used to verify webhook signatures",
- "example": "whsec_a1b2c3d4e5f6g7h8i9j0"
- },
- "triggers_enabled": {
- "type": "boolean",
- "description": "Flag indicating if triggers are enabled for this project",
- "example": true
- },
- "last_subscribed_at": {
- "type": "string",
- "nullable": true,
- "description": "Date and time when the project last subscribed to updates",
- "example": "2023-05-17T10:00:00.000Z"
- },
- "deleted": {
- "type": "boolean",
- "description": "Flag indicating if the project has been deleted",
- "example": false
- },
- "is_new_webhook": {
- "type": "boolean",
- "description": "Deprecated: Please refer to webhook_version instead. True indicates if the webhook configuration is using the previous new format (V2). False indicates the oldest format (V1)",
- "example": true,
- "deprecated": true
+ "required": [
+ "disable"
+ ],
+ "additionalProperties": false,
+ "description": "Disable specific toolkits (denylist)"
+ }
+ ],
+ "description": "Toolkit configuration - specify either enable toolkits (allowlist) or disable toolkits (denylist). Mutually exclusive."
+ },
+ "auth_configs": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "format": "authConfigId"
+ },
+ "description": "The auth configs to use for the session. This will override the default behavior and use the given auth config when specific toolkits are being executed",
+ "example": {
+ "gmail": "ac_1a2b3c4d5e6f",
+ "slack": "ac_7g8h9i0j1k2l"
+ }
+ },
+ "connected_accounts": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "format": "connectedAccountId"
+ },
+ "description": "The connected accounts to use for the session. This will override the default behaviour and use the given connected account when specific toolkits are being executed",
+ "example": {
+ "github": "ca_3m4n5o6p7q8r"
+ }
+ },
+ "manage_connections": {
+ "type": "object",
+ "properties": {
+ "enable": {
+ "type": "boolean",
+ "nullable": true,
+ "default": true,
+ "description": "Whether to enable the connection manager for automatic connection handling. If true, we will provide a tool your agent can use to initiate connections to toolkits if it doesnt exist. If set to false, then you have to manage connections manually.",
+ "example": true
+ },
+ "callback_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to redirect to after a user completes authentication for a connected account. This allows you to handle the auth callback in your own application.",
+ "example": "https://your-app.com/auth/callback"
+ },
+ "enable_wait_for_connections": {
+ "type": "boolean",
+ "nullable": true,
+ "default": false,
+ "description": "When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to poll connection status after sharing auth URLs. Default is false (disabled). May not work reliably with GPT models.",
+ "example": false
+ },
+ "enable_connection_removal": {
+ "type": "boolean",
+ "nullable": true,
+ "default": true,
+ "description": "Enable the \"remove\" action in COMPOSIO_MANAGE_CONNECTIONS to allow deleting connected accounts. Default true."
+ }
+ },
+ "default": {
+ "enable": true,
+ "enable_wait_for_connections": false,
+ "enable_connection_removal": true
+ },
+ "additionalProperties": false,
+ "description": "Configuration for connection management settings"
+ },
+ "tools": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "enable": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Only these specific tools will be available for this toolkit",
+ "example": [
+ "GMAIL_SEND_EMAIL",
+ "GMAIL_FETCH_EMAILS"
+ ]
+ }
+ },
+ "required": [
+ "enable"
+ ],
+ "additionalProperties": false
},
- "webhook_version": {
- "type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
+ {
+ "type": "object",
+ "properties": {
+ "disable": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "These specific tools will be disabled for this toolkit",
+ "example": [
+ "SLACK_ADD_EMOJI"
+ ]
+ }
+ },
+ "required": [
+ "disable"
],
- "description": "Version of the webhook configuration",
- "example": "V2"
+ "additionalProperties": false
},
- "org": {
+ {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "format": "orgId",
- "description": "Short, URL-friendly unique identifier for the organization",
- "example": "ok_1a2b3c4d5e6f"
- },
- "name": {
- "type": "string",
- "description": "User-defined name for the organization",
- "example": "Acme Corp"
- },
- "plan": {
- "type": "string",
- "description": "Current subscription plan level",
- "example": "BUSINESS"
+ "tags": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
+ }
+ },
+ {
+ "type": "object",
+ "properties": {
+ "enable": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
+ },
+ "description": "Tags that the tool must have at least one of"
+ },
+ "disable": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
+ },
+ "description": "Tags that the tool must NOT have any of"
+ }
+ }
+ }
+ ],
+ "description": "MCP tags to filter tools. Array format is treated as enabled list. Object format supports both enabled and disabled lists.",
+ "example": {
+ "enable": [
+ "openWorldHint"
+ ],
+ "disable": [
+ "destructiveHint"
+ ]
+ }
}
},
"required": [
- "id",
- "name",
- "plan"
+ "tags"
],
- "description": "Organization details"
+ "additionalProperties": false
}
- },
- "required": [
- "auto_id",
- "id",
- "org_id",
- "name",
- "email",
- "nano_id",
- "created_at",
- "updated_at",
- "webhook_url",
- "event_webhook_url",
- "webhook_secret",
- "triggers_enabled",
- "last_subscribed_at",
- "deleted",
- "is_new_webhook",
- "webhook_version",
- "org"
- ],
- "description": "Details of the current active project (null if accessing with org-level credentials)"
+ ]
},
- "api_key": {
- "type": "object",
- "nullable": true,
- "properties": {
- "auto_id": {
- "type": "number",
- "description": "Internal auto-incrementing ID for the API key",
- "example": 7890
- },
- "id": {
- "type": "string",
- "description": "UUID identifier for the API key",
- "example": "550e8400-e29b-41d4-a716-446655440003"
- },
- "name": {
- "type": "string",
- "description": "User-defined name for the API key",
- "example": "Development Key"
- },
- "project_id": {
- "type": "string",
- "format": "projectId",
- "description": "Short, URL-friendly unique identifier for the associated project",
- "example": "pr_1a2b3c4d5e6f"
- },
- "org_member_id": {
- "type": "string",
- "description": "UUID identifier for the organization member who owns this API key",
- "example": "550e8400-e29b-41d4-a716-446655440002"
- },
- "created_at": {
- "type": "string",
- "description": "Date and time when the API key was created",
- "example": "2023-05-01T10:00:00.000Z"
- },
- "updated_at": {
- "type": "string",
- "description": "Date and time when the API key was last modified",
- "example": "2023-05-01T10:00:00.000Z"
- },
- "deleted_at": {
- "type": "string",
- "nullable": true,
- "description": "Date and time when the API key was deleted (if applicable)"
- },
- "key": {
- "type": "string",
- "description": "The actual API key value (usually only shown once during creation)",
- "example": "sk_live_abc123xyz456"
- },
- "deleted": {
- "type": "boolean",
- "description": "Flag indicating if the API key has been deleted",
- "example": false
- }
+ "description": "Tool-level configuration per toolkit - either specify enable tools (whitelist), disable tools (blacklist), or filter by MCP tags for each toolkit",
+ "example": {
+ "gmail": {
+ "enable": [
+ "GMAIL_SEND_EMAIL",
+ "GMAIL_FETCH_EMAILS"
+ ]
},
- "required": [
- "auto_id",
- "id",
- "name",
- "project_id",
- "org_member_id",
- "created_at",
- "updated_at",
- "deleted_at",
- "key",
- "deleted"
- ],
- "description": "Details of the API key used for authentication (null if using session auth)"
- },
- "org_member": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "UUID identifier for the organization member",
- "example": "550e8400-e29b-41d4-a716-446655440002"
- },
- "email": {
- "type": "string",
- "description": "Email address of the authenticated user",
- "example": "[email protected]"
- },
- "name": {
- "type": "string",
- "description": "Display name of the authenticated user",
- "example": "John Doe"
- },
- "role": {
- "type": "string",
- "description": "Access role of the authenticated user within the organization",
- "example": "admin"
- }
+ "slack": {
+ "disable": [
+ "SLACK_ADD_EMOJI"
+ ]
},
- "required": [
- "id",
- "email",
- "name",
- "role"
- ],
- "description": "Information about the authenticated user",
- "example": {
- "id": "550e8400-e29b-41d4-a716-446655440002",
- "email": "[email protected]",
- "name": "John Doe",
- "role": "admin"
+ "slack_bot": {
+ "tags": {
+ "enable": [
+ "destructiveHint"
+ ],
+ "disable": [
+ "openWorldHint"
+ ]
+ }
}
}
},
- "required": [
- "project",
- "api_key",
- "org_member"
- ],
- "description": "Response containing user session information"
- }
- }
- }
- },
- "400": {
- "description": "Bad request. The request format may be invalid or missing required parameters.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid or expired.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to access this resource.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Not found. The requested project, organization, or member resource could not be found.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/auth_configs": {
- "post": {
- "summary": "Create new authentication configuration",
- "description": "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.",
- "tags": [
- "Auth Configs"
- ],
- "operationId": "postAuthConfigs",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "toolkit": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "Toolkit slug to create auth config for"
- }
- },
- "required": [
- "slug"
- ]
- },
- "auth_config": {
- "oneOf": [
+ "tags": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
+ }
+ },
{
"type": "object",
"properties": {
- "type": {
- "type": "string",
- "enum": [
- "use_composio_managed_auth"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the integration"
- },
- "credentials": {
- "type": "object",
- "properties": {
- "scopes": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- "user_scopes": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- }
- },
- "default": {}
- },
- "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."
- }
- }
- },
- "restrict_to_following_tools": {
+ "enable": {
"type": "array",
"items": {
- "type": "string"
- },
- "default": [],
- "description": "Use tool_access_config instead. This field will be deprecated in the future.",
- "deprecated": true
- },
- "shared_credentials": {
- "type": "object",
- "additionalProperties": {},
- "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
- "x-experimental": true
- },
- "is_enabled_for_tool_router": {
- "type": "boolean",
- "description": "Whether this auth config is enabled for tool router"
- }
- },
- "required": [
- "type"
- ]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "use_custom_auth"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the integration"
- },
- "authScheme": {
- "type": "string",
- "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"
- ]
- },
- "credentials": {
- "type": "object",
- "properties": {
- "scopes": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- "user_scopes": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- }
- },
- "default": {}
- },
- "proxy_config": {
- "type": "object",
- "nullable": true,
- "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"
- }
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
},
- "required": [
- "proxy_url"
- ]
+ "description": "Tags that the tool must have at least one of"
},
- "restrict_to_following_tools": {
+ "disable": {
"type": "array",
"items": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
},
- "default": [],
- "description": "Use tool_access_config instead. This field will be deprecated in the future.",
- "deprecated": 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."
- }
- }
- },
- "shared_credentials": {
- "type": "object",
- "additionalProperties": {},
- "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
- "x-experimental": true
- },
- "is_enabled_for_tool_router": {
- "type": "boolean",
- "description": "Whether this auth config is enabled for tool router"
+ "description": "Tags that the tool must NOT have any of"
}
- },
- "required": [
- "type",
- "authScheme"
- ]
+ }
}
],
- "default": {
- "type": "use_composio_managed_auth",
- "credentials": {},
- "restrict_to_following_tools": []
+ "description": "Global MCP tool annotation hints for filtering. Array format is treated as enabled list. Object format supports both enabled (tool must have at least one) and disabled (tool must NOT have any) lists. Toolkit-level tags override this. Toolkit enabled/disabled lists take precedence over tag filtering.",
+ "example": {
+ "enable": [
+ "openWorldHint"
+ ],
+ "disable": [
+ "destructiveHint"
+ ]
}
- }
- },
- "required": [
- "toolkit"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "Successfully created auth config",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "toolkit": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "The unique key of the toolkit"
- }
+ },
+ "workbench": {
+ "type": "object",
+ "properties": {
+ "enable": {
+ "type": "boolean",
+ "default": true,
+ "description": "Set to false to disable the workbench entirely. When disabled, no code execution tools are available in the session.",
+ "example": true
},
- "required": [
- "slug"
- ]
- },
- "auth_config": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "authConfigId",
- "description": "The auth config id of the toolkit (must be a valid auth config id)"
- },
- "auth_scheme": {
- "type": "string",
- "description": "The authentication mode of the toolkit"
- },
- "is_composio_managed": {
- "type": "boolean",
- "description": "Whether the auth config is managed by Composio"
- },
- "restrict_to_following_tools": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [],
- "description": "The tools that the user can use with the auth config"
- }
+ "enable_proxy_execution": {
+ "type": "boolean",
+ "default": true,
+ "description": "Whether proxy execution is enabled. When enabled, workbench can call URLs and APIs directly.",
+ "example": true
},
- "required": [
- "id",
- "auth_scheme",
- "is_composio_managed"
- ]
- }
+ "auto_offload_threshold": {
+ "type": "number",
+ "minimum": 0,
+ "exclusiveMinimum": true,
+ "description": "Character threshold for automatic offloading. When workbench response exceeds this threshold, it will be automatically offloaded. Default is picked automatically based on the response size.",
+ "example": 20000
+ }
+ },
+ "default": {
+ "enable": true,
+ "enable_proxy_execution": true
+ },
+ "additionalProperties": false,
+ "description": "Configuration for workbench behavior"
},
- "required": [
- "toolkit",
- "auth_config"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad request",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Not found",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- },
- "get": {
- "summary": "List authentication configurations with optional filters",
- "description": "Retrieves all auth configs for your project. Auth configs define how users authenticate with external services (OAuth, API keys, etc.). Use filters to find configs for specific toolkits or to distinguish between Composio-managed and custom configurations.",
- "tags": [
- "Auth Configs"
- ],
- "operationId": "getAuthConfigs",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "boolean"
- }
- ],
- "description": "Whether to filter by composio managed auth configs"
- },
- "required": false,
- "description": "Whether to filter by composio managed auth configs",
- "name": "is_composio_managed",
- "in": "query"
- },
- {
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Comma-separated list of toolkit slugs to filter auth configs by",
- "in": "query",
- "name": "toolkit_slug"
- },
- {
- "schema": {
- "type": "string",
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use toolkit_slug instead.",
- "deprecated": true
- },
- "required": false,
- "description": "The app id to filter by",
- "name": "deprecated_app_id",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "DEPRECATED: This parameter will be removed in a future version.",
- "deprecated": true
- },
- "required": false,
- "name": "deprecated_status",
- "in": "query"
- },
- {
- "schema": {
- "type": "boolean",
- "nullable": true,
- "default": false,
- "description": "Show disabled auth configs"
- },
- "required": false,
- "description": "Show disabled auth configs",
- "name": "show_disabled",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "Search auth configs by name or id"
- },
- "required": false,
- "description": "Search auth configs by name or id",
- "name": "search",
- "in": "query"
- },
- {
- "schema": {
- "type": "number",
- "nullable": true
- },
- "required": false,
- "description": "Number of items per page, max allowed is 1000",
- "name": "limit",
- "in": "query"
- },
- {
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
- "name": "cursor",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "Successfully fetched auth configs",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
+ "multi_account": {
+ "type": "object",
+ "properties": {
+ "enable": {
+ "type": "boolean",
+ "description": "When true, enables multi-account mode for this session. When not set, falls back to org/project-level configuration.",
+ "example": true
+ },
+ "max_accounts_per_toolkit": {
+ "type": "integer",
+ "minimum": 2,
+ "maximum": 10,
+ "description": "Maximum number of connected accounts allowed per toolkit. Must be between 2 and 10.",
+ "example": 5
+ },
+ "require_explicit_selection": {
+ "type": "boolean",
+ "description": "When true, the agent must explicitly select which account to use. When false (default), the first/default account is used automatically.",
+ "example": false
+ }
+ },
+ "additionalProperties": false,
+ "description": "Configure multi-account behavior. When enabled, users can connect multiple accounts per toolkit."
+ },
+ "experimental": {
+ "type": "object",
+ "properties": {
+ "assistive_prompt_config": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "format": "authConfigId",
- "description": "The unique ID of the authentication configuration"
- },
- "uuid": {
- "type": "string",
- "description": "The UUID of the authentication configuration (for backward compatibility)"
- },
- "type": {
+ "user_timezone": {
"type": "string",
- "enum": [
- "default",
- "custom"
- ],
- "description": "The type of the authentication configuration (custom or default)"
- },
- "toolkit": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "The unique identifier of the integration app"
- },
- "logo": {
- "type": "string",
- "description": "The URL to the integration app's logo image"
- },
- "auth_guide_url": {
- "type": "string",
- "nullable": true,
- "description": "URL to a guide page with authentication setup instructions"
- },
- "auth_hint_url": {
- "type": "string",
- "nullable": true,
- "description": "URL to a page where users can obtain or configure credentials"
- }
- },
- "required": [
- "slug",
- "logo"
- ],
- "description": "Information about the associated integration"
- },
- "name": {
- "type": "string",
- "description": "The display name of the authentication configuration"
- },
- "auth_scheme": {
- "type": "string",
- "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"
- ],
- "description": "The authentication scheme used (e.g., OAuth2, API Key, etc.)"
- },
- "is_composio_managed": {
- "type": "boolean",
- "description": "Whether this authentication configuration is managed by Composio or the user"
- },
- "credentials": {
- "type": "object",
- "additionalProperties": {},
- "description": "The authentication credentials (tokens, keys, etc.) - may be partially hidden for security"
- },
- "proxy_config": {
- "type": "object",
- "nullable": true,
- "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"
- }
+ "description": "IANA timezone identifier (e.g., 'America/New_York', 'Europe/London'). Used to customize the system prompt with timezone-aware instructions.",
+ "example": "America/New_York"
+ }
+ },
+ "additionalProperties": false,
+ "description": "Customize assistive prompt generation (e.g., timezone)."
+ },
+ "custom_toolkits": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "minLength": 1,
+ "pattern": "^[a-zA-Z0-9_-]+$",
+ "description": "Unique slug for the toolkit. Must not conflict with existing Composio toolkit slugs. Alphanumeric, underscores, and hyphens only.",
+ "example": "ecommerce"
},
- "required": [
- "proxy_url"
- ]
- },
- "status": {
- "type": "string",
- "enum": [
- "ENABLED",
- "DISABLED"
- ],
- "description": "Current status of the authentication configuration"
- },
- "created_by": {
- "type": "string",
- "description": "The identifier of the user who created the auth config"
- },
- "created_at": {
- "type": "string",
- "description": "ISO 8601 date-time when the auth config was created"
- },
- "last_updated_at": {
- "type": "string",
- "description": "ISO 8601 date-time when the auth config was last updated"
- },
- "no_of_connections": {
- "type": "number",
- "description": "The number of active connections using this auth config"
- },
- "expected_input_fields": {
- "type": "array",
- "items": {
- "nullable": true,
- "type": "object"
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "Display name shown to the LLM and in search results.",
+ "example": "E-Commerce API"
},
- "description": "Fields expected during connection initialization"
- },
- "restrict_to_following_tools": {
- "type": "array",
- "items": {
- "type": "string"
+ "description": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 2048,
+ "description": "Used for BM25 search matching and shown in toolkit connection statuses.",
+ "example": "Internal e-commerce API for order management and fulfillment"
},
- "description": "Use tool_access_config instead. This field will be deprecated in the future.",
- "deprecated": true
- },
- "tool_access_config": {
- "type": "object",
- "properties": {
- "tools_for_connected_account_creation": {
- "type": "array",
- "items": {
- "type": "string"
+ "tools": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "minLength": 1,
+ "pattern": "^[a-zA-Z0-9_-]+$",
+ "description": "Tool slug. Combined with toolkit slug to form LOCAL_<TOOLKIT>_<TOOL> (max 60 chars total).",
+ "example": "GET_CUSTOMER_ORDERS"
+ },
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "Human-readable display name",
+ "example": "Get Customer Orders"
+ },
+ "description": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 5120,
+ "description": "Used for BM25 search matching and shown to the LLM.",
+ "example": "Fetch recent orders for a customer by their email address"
+ },
+ "input_schema": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Must have type: \"object\" and a properties field.",
+ "example": {
+ "type": "object",
+ "properties": {
+ "email": {
+ "type": "string",
+ "description": "Customer email"
+ }
+ },
+ "required": [
+ "email"
+ ]
+ }
+ },
+ "output_schema": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Optional output schema for the tool response."
+ }
},
- "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."
+ "required": [
+ "slug",
+ "name",
+ "description",
+ "input_schema"
+ ]
},
- "tools_available_for_execution": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [],
- "description": "The actions that the user can perform on the auth config. If passed, this will update the actions that the user can perform on the auth config."
- }
+ "minItems": 1,
+ "maxItems": 100,
+ "description": "Tools in this custom toolkit"
}
},
- "shared_credentials": {
- "type": "object",
- "additionalProperties": {},
- "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
- "x-experimental": true
- },
- "is_enabled_for_tool_router": {
- "type": "boolean",
- "description": "Whether this auth config is enabled for tool router"
- },
- "deprecated_params": {
- "type": "object",
- "properties": {
- "default_connector_id": {
- "type": "string",
- "nullable": true,
- "description": "Deprecated: Default connector ID"
- },
- "member_uuid": {
- "type": "string",
- "description": "Deprecated: Member UUID"
- },
- "toolkit_id": {
- "type": "string",
- "description": "Deprecated: Toolkit ID"
- },
- "expected_input_fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": {}
- },
- "description": "Deprecated: Fields expected during connection initialization"
+ "required": [
+ "slug",
+ "name",
+ "description",
+ "tools"
+ ]
+ },
+ "description": "Custom toolkits with grouped tools. Toolkit slugs must not conflict with existing Composio toolkits. All tools are no-auth."
+ },
+ "custom_tools": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "minLength": 1,
+ "pattern": "^[a-zA-Z0-9_-]+$",
+ "description": "Tool slug. Forms LOCAL_<TOOL> (standalone) or LOCAL_<TOOLKIT>_<TOOL> (extending). Max 60 chars total.",
+ "example": "GET_IMPORTANT_EMAILS"
+ },
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128,
+ "description": "Human-readable display name",
+ "example": "Get Important Emails"
+ },
+ "description": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 5120,
+ "description": "Used for BM25 search matching and shown to the LLM.",
+ "example": "Fetch emails marked as important from the last 24 hours"
+ },
+ "input_schema": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Must have type: \"object\" and a properties field.",
+ "example": {
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "number",
+ "description": "Max results to return"
+ }
+ }
}
},
- "required": [
- "default_connector_id"
- ],
- "description": "DEPRECATED: This parameter will be removed in a future version.",
- "deprecated": true
- }
+ "output_schema": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "JSON Schema describing tool output (optional)"
+ },
+ "extends_toolkit": {
+ "type": "string",
+ "minLength": 1,
+ "description": "If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's auth/connection status. If omitted, the tool is standalone (no-auth).",
+ "example": "gmail"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "description",
+ "input_schema"
+ ]
},
- "required": [
- "id",
- "uuid",
- "type",
- "toolkit",
- "name",
- "status",
- "no_of_connections",
- "tool_access_config"
- ]
+ "description": "Custom tools to include in search. Standalone tools need no auth. Tools with extends_toolkit inherit the Composio toolkit's connection."
}
},
- "next_cursor": {
- "type": "string",
- "nullable": true
+ "additionalProperties": false,
+ "description": "Experimental features - not stable, may be modified or removed in future versions.",
+ "x-experimental": true
+ }
+ },
+ "required": [
+ "user_id"
+ ]
+ },
+ "examples": {
+ "Session with all toolkits": {
+ "value": {
+ "user_id": "user_123456789"
+ }
+ },
+ "Session with only specific toolkits": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "enable": [
+ "gmail",
+ "slack"
+ ]
+ }
+ }
+ },
+ "Session with only specific toolkits disabled": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "disable": [
+ "gmail",
+ "slack"
+ ]
+ }
+ }
+ },
+ "Session with connection manager enabled": {
+ "value": {
+ "user_id": "user_123456789",
+ "manage_connections": {
+ "enable": true
+ }
+ }
+ },
+ "Session with connection manager and specific toolkits": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "enable": [
+ "gmail",
+ "slack"
+ ]
},
- "total_pages": {
- "type": "number"
+ "manage_connections": {
+ "enable": true
+ }
+ }
+ },
+ "Session with custom callback URL": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "enable": [
+ "github",
+ "slack"
+ ]
},
- "current_page": {
- "type": "number"
+ "manage_connections": {
+ "enable": true,
+ "callback_url": "https://your-app.com/auth/callback"
+ }
+ }
+ },
+ "Session with workbench configuration": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "enable": [
+ "gmail"
+ ]
},
- "total_items": {
- "type": "number"
+ "workbench": {
+ "enable_proxy_execution": true,
+ "auto_offload_threshold": 10000
}
- },
- "required": [
- "items",
- "total_pages",
- "current_page",
- "total_items"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad request",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Not found",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/auth_configs/{nanoid}": {
- "get": {
- "summary": "Get single authentication configuration by ID",
- "description": "Retrieves detailed information about a specific authentication configuration using its unique identifier.",
- "tags": [
- "Auth Configs"
- ],
- "operationId": "getAuthConfigsByNanoid",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "authConfigId",
- "description": "The unique identifier of the authentication configuration to retrieve"
- },
- "required": true,
- "description": "The unique identifier of the authentication configuration to retrieve",
- "name": "nanoid",
- "in": "path"
+ }
+ },
+ "Session with global tags filter": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "enable": [
+ "gmail",
+ "slack"
+ ]
+ },
+ "tags": [
+ "readOnlyHint",
+ "idempotentHint"
+ ]
+ }
+ },
+ "Session with auth config overrides": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "enable": [
+ "gmail",
+ "slack"
+ ]
+ },
+ "auth_configs": {
+ "gmail": "ac_1a2b3c4d5e6f",
+ "slack": "ac_7g8h9i0j1k2l"
+ }
+ }
+ },
+ "Session with connected account overrides": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "enable": [
+ "gmail",
+ "slack"
+ ]
+ },
+ "connected_accounts": {
+ "gmail": "ca_1a2b3c4d5e6f",
+ "slack": "ca_7g8h9i0j1k2l"
+ }
+ }
+ },
+ "Session with comprehensive configuration": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "enable": [
+ "gmail",
+ "slack",
+ "github"
+ ]
+ },
+ "auth_configs": {
+ "gmail": "ac_1a2b3c4d5e6f",
+ "slack": "ac_7g8h9i0j1k2l"
+ },
+ "connected_accounts": {
+ "github": "ca_3m4n5o6p7q8r"
+ },
+ "manage_connections": {
+ "enable": true,
+ "callback_url": "https://your-app.com/auth/callback"
+ },
+ "tools": {
+ "gmail": {
+ "enable": [
+ "GMAIL_SEND_EMAIL",
+ "GMAIL_FETCH_EMAILS"
+ ]
+ },
+ "slack": {
+ "disable": [
+ "SLACK_ADD_EMOJI"
+ ]
+ },
+ "slack_bot": {
+ "tags": [
+ "destructiveHint"
+ ]
+ }
+ },
+ "tags": [
+ "destructiveHint",
+ "idempotentHint"
+ ],
+ "workbench": {
+ "enable_proxy_execution": true,
+ "auto_offload_threshold": 10000
+ }
+ }
+ },
+ "Session with disabled toolkits and global tags": {
+ "value": {
+ "user_id": "user_123456789",
+ "toolkits": {
+ "disable": [
+ "gmail"
+ ]
+ },
+ "tags": [
+ "readOnlyHint"
+ ]
+ }
+ }
+ }
+ }
}
- ],
+ },
"responses": {
- "200": {
- "description": "Successfully fetched auth config",
+ "201": {
+ "description": "Session successfully created. Returns the session ID and MCP server URL for the created session.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "format": "authConfigId",
- "description": "The unique ID of the authentication configuration"
- },
- "uuid": {
- "type": "string",
- "description": "The UUID of the authentication configuration (for backward compatibility)"
- },
- "type": {
+ "session_id": {
"type": "string",
- "enum": [
- "default",
- "custom"
- ],
- "description": "The type of the authentication configuration (custom or default)"
+ "format": "toolRouterSessionId",
+ "description": "The identifier of the session",
+ "example": "trs_1a2b3c4d5e6f"
},
- "toolkit": {
+ "mcp": {
"type": "object",
"properties": {
- "slug": {
- "type": "string",
- "description": "The unique identifier of the integration app"
- },
- "logo": {
- "type": "string",
- "description": "The URL to the integration app's logo image"
- },
- "auth_guide_url": {
+ "type": {
"type": "string",
- "nullable": true,
- "description": "URL to a guide page with authentication setup instructions"
+ "enum": [
+ "http"
+ ],
+ "description": "The type of the MCP server. Can be http"
},
- "auth_hint_url": {
- "type": "string",
- "nullable": true,
- "description": "URL to a page where users can obtain or configure credentials"
- }
- },
- "required": [
- "slug",
- "logo"
- ],
- "description": "Information about the associated integration"
- },
- "name": {
- "type": "string",
- "description": "The display name of the authentication configuration"
- },
- "auth_scheme": {
- "type": "string",
- "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"
- ],
- "description": "The authentication scheme used (e.g., OAuth2, API Key, etc.)"
- },
- "is_composio_managed": {
- "type": "boolean",
- "description": "Whether this authentication configuration is managed by Composio or the user"
- },
- "credentials": {
- "type": "object",
- "additionalProperties": {},
- "description": "The authentication credentials (tokens, keys, etc.) - may be partially hidden for security"
- },
- "proxy_config": {
- "type": "object",
- "nullable": true,
- "properties": {
- "proxy_url": {
+ "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"
+ "description": "The URL of the MCP server",
+ "example": "https://app.composio.dev/tool_router/v3/trs_1a2b3c4d5e6f/mcp"
}
},
"required": [
- "proxy_url"
+ "type",
+ "url"
]
},
- "status": {
- "type": "string",
- "enum": [
- "ENABLED",
- "DISABLED"
- ],
- "description": "Current status of the authentication configuration"
- },
- "created_by": {
- "type": "string",
- "description": "The identifier of the user who created the auth config"
- },
- "created_at": {
- "type": "string",
- "description": "ISO 8601 date-time when the auth config was created"
- },
- "last_updated_at": {
- "type": "string",
- "description": "ISO 8601 date-time when the auth config was last updated"
- },
- "no_of_connections": {
- "type": "number",
- "description": "The number of active connections using this auth config"
- },
- "expected_input_fields": {
- "type": "array",
- "items": {
- "nullable": true,
- "type": "object"
- },
- "description": "Fields expected during connection initialization"
- },
- "restrict_to_following_tools": {
+ "tool_router_tools": {
"type": "array",
"items": {
"type": "string"
},
- "description": "Use tool_access_config instead. This field will be deprecated in the future.",
- "deprecated": true
+ "description": "List of available tools in this session"
},
- "tool_access_config": {
+ "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."
- },
- "tools_available_for_execution": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [],
- "description": "The actions that the user can perform on the auth config. If passed, this will update the actions that the user can perform on the auth config."
- }
- }
- },
- "shared_credentials": {
- "type": "object",
- "additionalProperties": {},
- "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
- "x-experimental": true
- },
- "is_enabled_for_tool_router": {
- "type": "boolean",
- "description": "Whether this auth config is enabled for tool router"
- },
- "deprecated_params": {
- "type": "object",
- "properties": {
- "default_connector_id": {
- "type": "string",
- "nullable": true,
- "description": "Deprecated: Default connector ID"
- },
- "member_uuid": {
- "type": "string",
- "description": "Deprecated: Member UUID"
- },
- "toolkit_id": {
+ "user_id": {
"type": "string",
- "description": "Deprecated: Toolkit ID"
+ "description": "User identifier for this session"
},
- "expected_input_fields": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": {}
- },
- "description": "Deprecated: Fields expected during connection initialization"
- }
- },
- "required": [
- "default_connector_id"
- ],
- "description": "DEPRECATED: This parameter will be removed in a future version.",
- "deprecated": true
- }
- },
- "required": [
- "id",
- "uuid",
- "type",
- "toolkit",
- "name",
- "status",
- "no_of_connections",
- "tool_access_config"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad request - Invalid auth config ID format",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized - Authentication required",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Not found - Auth configuration does not exist",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error - Something went wrong on the server",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- },
- "patch": {
- "summary": "Update an authentication configuration",
- "description": "Modifies an existing authentication configuration with new credentials or other settings. Only specified fields will be updated.",
- "tags": [
- "Auth Configs"
- ],
- "operationId": "patchAuthConfigsByNanoid",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "authConfigId",
- "description": "The unique identifier of the authentication configuration to update"
- },
- "required": true,
- "description": "The unique identifier of the authentication configuration to update",
- "name": "nanoid",
- "in": "path"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "custom"
- ]
- },
- "name": {
- "type": "string",
- "minLength": 1,
- "description": "The display name of the authentication configuration"
- },
- "credentials": {
- "type": "object",
- "properties": {
- "scopes": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
+ "toolkits": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
- }
- ]
- },
- "user_scopes": {
- "anyOf": [
- {
- "type": "string"
},
- {
- "type": "array",
- "items": {
- "type": "string"
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "disabled": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
- }
- ]
- }
- }
- },
- "proxy_config": {
- "type": "object",
- "nullable": true,
- "properties": {
- "proxy_url": {
+ },
+ "required": [
+ "disabled"
+ ],
+ "additionalProperties": false
+ }
+ ],
+ "description": "Toolkit configuration - either enabled list or disabled list"
+ },
+ "auth_configs": {
+ "type": "object",
+ "additionalProperties": {
"type": "string",
- "format": "uri",
- "description": "The url of the auth proxy"
+ "format": "authConfigId"
},
- "proxy_auth_key": {
- "type": "string",
- "description": "The auth key for the auth proxy"
- }
+ "description": "Auth config overrides per toolkit"
},
- "required": [
- "proxy_url"
- ]
- },
- "restrict_to_following_tools": {
- "type": "array",
- "items": {
- "type": "string"
+ "connected_accounts": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string",
+ "format": "connectedAccountId"
+ },
+ "description": "Connected account overrides per toolkit"
},
- "description": "Use tool_access_config instead. This field will be deprecated in the future.",
- "deprecated": true
- },
- "tool_access_config": {
- "type": "object",
- "properties": {
- "tools_for_connected_account_creation": {
- "type": "array",
- "items": {
- "type": "string"
+ "manage_connections": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "default": true,
+ "description": "Whether to enable the connection manager for automatic connection handling"
},
- "description": "Tools used to generate the minimum required scopes for the auth config (only valid for OAuth). If passed, this will update the scopes."
- },
- "tools_available_for_execution": {
- "type": "array",
- "items": {
- "type": "string"
+ "callback_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "Custom callback URL for connected account auth flows"
},
- "description": "The actions that the user can perform on the auth config. If passed, this will update the actions that the user can perform on the auth config."
- }
- }
- },
- "shared_credentials": {
- "type": "object",
- "additionalProperties": {},
- "description": "Shared credentials that will be inherited by connected accounts. For eg: this can be used to share the API key for a tool with all connected accounts using this auth config."
- },
- "is_enabled_for_tool_router": {
- "type": "boolean",
- "description": "Whether this auth config is enabled for tool router"
- }
- },
- "required": [
- "type"
- ]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "default"
- ]
- },
- "name": {
- "type": "string",
- "minLength": 1,
- "description": "The display name of the authentication configuration"
- },
- "scopes": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
+ "enable_wait_for_connections": {
+ "type": "boolean",
+ "default": false,
+ "description": "Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status. Default false. May not work reliably with GPT models."
+ },
+ "enable_connection_removal": {
+ "type": "boolean",
+ "default": true,
+ "description": "Enable the \"remove\" action in COMPOSIO_MANAGE_CONNECTIONS. Default true."
}
- }
- ]
- },
- "user_scopes": {
- "anyOf": [
- {
- "type": "string"
},
- {
- "type": "array",
- "items": {
- "type": "string"
+ "description": "Manage connections configuration"
+ },
+ "tools": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "disabled": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "disabled"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "tags": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
+ },
+ "description": "Tags that the tool must have at least one of"
+ },
+ "disabled": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
+ },
+ "description": "Tags that the tool must NOT have any of"
+ }
+ }
+ }
+ },
+ "required": [
+ "tags"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "description": "Tool-level configuration per toolkit"
+ },
+ "tags": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
+ },
+ "description": "Tags that the tool must have at least one of"
+ },
+ "disabled": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "readOnlyHint",
+ "destructiveHint",
+ "idempotentHint",
+ "openWorldHint"
+ ]
+ },
+ "description": "Tags that the tool must NOT have any of"
}
- }
- ]
- },
- "restrict_to_following_tools": {
- "type": "array",
- "items": {
- "type": "string"
+ },
+ "description": "MCP tool annotation hints for filtering tools with enabled/disabled support. enabled: tags that the tool must have at least one of. disabled: tags that the tool must NOT have any of. Both conditions must be satisfied."
},
- "description": "Use tool_access_config instead. This field will be deprecated in the future.",
- "deprecated": true
- },
- "tool_access_config": {
- "type": "object",
- "properties": {
- "tools_for_connected_account_creation": {
- "type": "array",
- "items": {
- "type": "string"
+ "workbench": {
+ "type": "object",
+ "properties": {
+ "enable": {
+ "type": "boolean",
+ "description": "Whether the workbench (code execution sandbox) is enabled. When false, COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed."
},
- "description": "Tools used to generate the minimum required scopes for the auth config (only valid for OAuth). If passed, this will update the scopes."
+ "proxy_execution_enabled": {
+ "type": "boolean",
+ "description": "Whether proxy execution is enabled in the workbench"
+ },
+ "auto_offload_threshold": {
+ "type": "number",
+ "minimum": 0,
+ "exclusiveMinimum": true,
+ "description": "Character threshold after which tool execution response are saved to a file in workbench. Default is 20k."
+ }
},
- "tools_available_for_execution": {
- "type": "array",
- "items": {
- "type": "string"
+ "default": {
+ "enable": true,
+ "proxy_execution_enabled": true
+ },
+ "description": "Workbench configuration"
+ },
+ "multi_account": {
+ "type": "object",
+ "properties": {
+ "enable": {
+ "type": "boolean",
+ "description": "When true, enables multi-account mode for this session. When not set, falls back to org/project-level configuration."
},
- "description": "The actions that the user can perform on the auth config. If passed, this will update the actions that the user can perform on the auth config."
- }
- }
- },
- "shared_credentials": {
- "type": "object",
- "additionalProperties": {},
- "description": "Shared credentials that will be inherited by connected accounts. For eg: this can be used to share the API key for a tool with all connected accounts using this auth config."
- },
- "is_enabled_for_tool_router": {
- "type": "boolean",
- "description": "Whether this auth config is enabled for tool router"
- }
+ "max_accounts_per_toolkit": {
+ "type": "integer",
+ "description": "Maximum number of connected accounts allowed per toolkit. Defaults to 5 when multi-account is enabled."
+ },
+ "require_explicit_selection": {
+ "type": "boolean",
+ "description": "When true, require explicit account selection when multiple accounts are connected. When false (default), use the first/default account."
+ }
+ },
+ "description": "Multi-account configuration for this session."
+ }
+ },
+ "required": [
+ "user_id"
+ ],
+ "description": "The session configuration including user, toolkits, and overrides"
},
- "required": [
- "type"
- ]
- }
- ]
- },
- "examples": {
- "standardUpdate": {
- "summary": "Standard credential update",
- "value": {
- "auth_config": {
- "credentials": {
- "api_key": "YOUR_NEW_API_KEY",
- "client_secret": "YOUR_NEW_CLIENT_SECRET"
+ "experimental": {
+ "type": "object",
+ "properties": {
+ "assistive_prompt": {
+ "type": "string",
+ "description": "The assistive system prompt for the tool router session"
+ },
+ "custom_toolkits": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "minLength": 1,
+ "pattern": "^[a-zA-Z0-9_-]+$"
+ },
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "description": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 2048
+ },
+ "tools": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "Prefixed tool slug (e.g. LOCAL_CRM_FIND_CUSTOMER)"
+ },
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "description": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 5120
+ },
+ "input_schema": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "output_schema": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "original_slug": {
+ "type": "string",
+ "description": "Original tool slug as provided by the user"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "description",
+ "input_schema",
+ "original_slug"
+ ]
+ }
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "description",
+ "tools"
+ ]
+ },
+ "description": "User-defined custom toolkits with grouped tools (no-auth)"
+ },
+ "custom_tools": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "Prefixed tool slug (e.g. LOCAL_GMAIL_GET_IMPORTANT_EMAILS)"
+ },
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 128
+ },
+ "description": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 5120
+ },
+ "input_schema": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "output_schema": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "extends_toolkit": {
+ "type": "string",
+ "minLength": 1
+ },
+ "original_slug": {
+ "type": "string",
+ "description": "Original tool slug as provided by the user"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "description",
+ "input_schema",
+ "original_slug"
+ ]
+ },
+ "description": "Custom tools — standalone or extending Composio toolkits"
+ }
},
- "restrict_to_following_tools": [
- "GMAIL_SEND_EMAIL",
- "GMAIL_FETCH_EMAILS"
- ]
+ "description": "Experimental features including the generated system prompt. Only returned on session creation, not on GET.",
+ "x-experimental": true
}
- }
+ },
+ "required": [
+ "session_id",
+ "mcp",
+ "tool_router_tools",
+ "config"
+ ]
}
}
}
- }
- },
- "responses": {
- "200": {
- "description": "Successfully updated auth config",
+ },
+ "400": {
+ "description": "Bad request. This may occur if the user_id format is invalid, toolkit names are invalid, or auth_config_id IDs are malformed.",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {}
+ "$ref": "#/components/schemas/Error"
}
}
}
},
- "400": {
- "description": "Bad request - Invalid input or credentials format",
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
"content": {
"application/json": {
"schema": {
@@ -4385,8 +4357,8 @@
}
}
},
- "401": {
- "description": "Unauthorized - Authentication required",
+ "403": {
+ "description": "Forbidden. The user is not authorized to create a tool router session.",
"content": {
"application/json": {
"schema": {
@@ -4395,8 +4367,8 @@
}
}
},
- "404": {
- "description": "Not found - Auth configuration does not exist",
+ "408": {
+ "description": "Request timeout. The session creation took too long to complete.",
"content": {
"application/json": {
"schema": {
@@ -4406,7 +4378,7 @@
}
},
"500": {
- "description": "Internal server error - Something went wrong on the server",
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -4417,80 +4389,160 @@
}
},
"x-api-version": "3.1"
- },
- "delete": {
- "summary": "Delete an authentication configuration",
- "description": "Soft-deletes an authentication configuration by marking it as deleted in the database. This operation cannot be undone.",
+ }
+ },
+ "/api/v3.1/org/usage/summary": {
+ "post": {
+ "summary": "Org usage summary",
+ "description": "Aggregated metering usage for the authenticated organization. By default includes all projects; use `filters.project_id` to restrict to one or more projects (must belong to the org). Values are summed from raw metering events grouped by `entity_type`.",
"tags": [
- "Auth Configs"
+ "Organization"
],
- "operationId": "deleteAuthConfigsByNanoid",
+ "operationId": "postOrgUsageSummary",
"security": [
{
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "authConfigId",
- "description": "The unique identifier of the authentication configuration to delete"
- },
- "required": true,
- "description": "The unique identifier of the authentication configuration to delete",
- "name": "nanoid",
- "in": "path"
+ "OrgApiKeyAuth": []
}
],
- "responses": {
- "200": {
- "description": "Successfully deleted auth config",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {}
- }
- }
- }
- },
- "400": {
- "description": "Bad request - Invalid auth config ID format",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized - Authentication required",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "from": {
+ "type": "number",
+ "description": "Inclusive range start (Unix epoch milliseconds). Defaults to 30 days before `to`."
+ },
+ "to": {
+ "type": "number",
+ "description": "Exclusive range end (Unix epoch milliseconds). Defaults to now."
+ },
+ "entity_types": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Filter to these metering entity types. Omit for all types."
+ },
+ "filters": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "minLength": 1
+ },
+ "description": "Filter to events matching these external end-user IDs. OR logic within the array."
+ },
+ "session_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "minLength": 1
+ },
+ "description": "Filter to events matching these session IDs. OR logic within the array."
+ },
+ "project_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "projectId"
+ },
+ "description": "Restrict aggregates to one or more projects (must belong to the authenticated organization). OR logic within the array. Omit for org-wide totals."
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Usage aggregates for the organization.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "entities": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "total_quantity": {
+ "type": "string"
+ },
+ "event_count": {
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "required": [
+ "unit",
+ "total_quantity",
+ "event_count"
+ ]
+ }
+ }
+ },
+ "required": [
+ "entities"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Invalid time range, entity_types, or query parameters.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Authentication required.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
},
"404": {
- "description": "Auth config not found - The specified configuration does not exist or was already deleted",
+ "description": "Unknown project_id or project not in this organization.",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {}
+ "$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
- "description": "Internal server error - Something went wrong on the server",
+ "description": "Failed to load usage from analytics store or feature configuration.",
"content": {
"application/json": {
"schema": {
@@ -4503,63 +4555,167 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/auth_configs/{nanoid}/{status}": {
- "patch": {
- "summary": "Enable or disable an authentication configuration",
- "description": "Updates the status of an authentication configuration to either enabled or disabled. Disabled configurations cannot be used for new connections.",
+ "/api/v3.1/org/usage/{entity_type}": {
+ "post": {
+ "summary": "Org usage breakdown",
+ "description": "Grouped metering usage breakdown for the authenticated organization. Groups results by a single dimension or column key. By default includes all projects; use `filters.project_id` to restrict.",
"tags": [
- "Auth Configs"
+ "Organization"
],
- "operationId": "patchAuthConfigsByNanoidByStatus",
+ "operationId": "postOrgUsageByEntityType",
"security": [
{
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
+ "OrgApiKeyAuth": []
}
],
"parameters": [
{
"schema": {
"type": "string",
- "format": "authConfigId",
- "description": "The unique identifier of the authentication configuration to update"
- },
- "required": true,
- "description": "The unique identifier of the authentication configuration to update",
- "name": "nanoid",
- "in": "path"
- },
- {
- "schema": {
- "type": "string",
- "enum": [
- "ENABLED",
- "DISABLED"
- ],
- "description": "The new status to set for the auth configuration"
+ "description": "Metering entity type to break down (e.g. `tool_calls`, `sessions`)."
},
"required": true,
- "description": "The new status to set for the auth configuration",
- "name": "status",
+ "description": "Metering entity type to break down (e.g. `tool_calls`, `sessions`).",
+ "name": "entity_type",
"in": "path"
}
],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "from": {
+ "type": "number",
+ "description": "Inclusive range start (Unix epoch milliseconds). Defaults to 30 days before `to`."
+ },
+ "to": {
+ "type": "number",
+ "description": "Exclusive range end (Unix epoch milliseconds). Defaults to now."
+ },
+ "group_by": {
+ "type": "string",
+ "description": "Dimension or column to group results by. Defaults to `tool_slug` for tool_calls and `user_id` for sessions."
+ },
+ "order_by": {
+ "type": "string",
+ "enum": [
+ "key",
+ "total_quantity",
+ "event_count"
+ ],
+ "description": "Field to order groups by. Defaults to `total_quantity`."
+ },
+ "order_direction": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "description": "Sort direction. Defaults to `desc`."
+ },
+ "limit": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 1000,
+ "description": "Maximum number of groups to return. Defaults to 100, max 1000."
+ },
+ "filters": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "minLength": 1
+ },
+ "description": "Filter to events matching these external end-user IDs. OR logic within the array."
+ },
+ "session_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "minLength": 1
+ },
+ "description": "Filter to events matching these session IDs. OR logic within the array."
+ },
+ "project_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "projectId"
+ },
+ "description": "Restrict aggregates to one or more projects (must belong to the authenticated organization). OR logic within the array. Omit for org-wide totals."
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successfully updated auth config status",
+ "description": "Usage breakdown for the organization.",
"content": {
"application/json": {
"schema": {
"type": "object",
- "properties": {}
+ "properties": {
+ "entity_type": {
+ "type": "string"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "total_quantity": {
+ "type": "string"
+ },
+ "event_count": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "groups": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "total_quantity": {
+ "type": "string"
+ },
+ "event_count": {
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "required": [
+ "key",
+ "total_quantity",
+ "event_count"
+ ]
+ }
+ }
+ },
+ "required": [
+ "entity_type",
+ "unit",
+ "total_quantity",
+ "event_count",
+ "groups"
+ ]
}
}
}
},
"400": {
- "description": "Bad request - Invalid auth config ID or status value",
+ "description": "Invalid entity_type, group_by, time range, or query parameters.",
"content": {
"application/json": {
"schema": {
@@ -4569,7 +4725,17 @@
}
},
"401": {
- "description": "Unauthorized - Authentication required",
+ "description": "Authentication required.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden.",
"content": {
"application/json": {
"schema": {
@@ -4579,7 +4745,7 @@
}
},
"404": {
- "description": "Not found - Auth configuration does not exist",
+ "description": "Unknown project_id or project not in this organization.",
"content": {
"application/json": {
"schema": {
@@ -4589,7 +4755,7 @@
}
},
"500": {
- "description": "Internal server error - Something went wrong on the server",
+ "description": "Failed to load usage from analytics store or feature configuration.",
"content": {
"application/json": {
"schema": {
@@ -4602,14 +4768,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/connected_accounts": {
- "get": {
- "summary": "List connected accounts with optional filters",
- "description": "Retrieves all connected accounts for your project. Connected accounts represent authenticated user connections to external services (e.g., a user's Gmail account, Slack workspace). Filter by toolkit, status, user ID, or auth config to find specific connections.",
+ "/api/v3.1/project/usage/summary": {
+ "post": {
+ "summary": "Project usage summary",
+ "description": "Aggregated metering usage for the authenticated project only. Values are summed from raw metering events grouped by `entity_type`.",
"tags": [
- "Connected Accounts"
+ "Projects"
],
- "operationId": "getConnectedAccounts",
+ "operationId": "postProjectUsageSummary",
"security": [
{
"ApiKeyAuth": []
@@ -4618,498 +4784,303 @@
"UserApiKeyAuth": []
}
],
- "parameters": [
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "The toolkit slugs of the connected accounts"
- },
- "required": false,
- "description": "The toolkit slugs of the connected accounts",
- "name": "toolkit_slugs",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
- ]
- },
- "description": "The status of the connected account"
- },
- "required": false,
- "description": "The status of the connected account",
- "name": "statuses",
- "in": "query"
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "from": {
+ "type": "number",
+ "description": "Inclusive range start (Unix epoch milliseconds). Defaults to 30 days before `to`."
+ },
+ "to": {
+ "type": "number",
+ "description": "Exclusive range end (Unix epoch milliseconds). Defaults to now."
+ },
+ "entity_types": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Filter to these metering entity types. Omit for all types."
+ },
+ "filters": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "minLength": 1
+ },
+ "description": "Filter to events matching these external end-user IDs. OR logic within the array."
+ },
+ "session_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "minLength": 1
+ },
+ "description": "Filter to events matching these session IDs. OR logic within the array."
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Usage aggregates for the project.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "entities": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "total_quantity": {
+ "type": "string"
+ },
+ "event_count": {
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "required": [
+ "unit",
+ "total_quantity",
+ "event_count"
+ ]
+ }
+ }
+ },
+ "required": [
+ "entities"
+ ]
+ }
+ }
+ }
},
- {
- "schema": {
- "type": "string",
- "nullable": true,
- "description": "The cursor to paginate through the connected accounts"
- },
- "required": false,
- "description": "The cursor to paginate through the connected accounts",
- "name": "cursor",
- "in": "query"
+ "400": {
+ "description": "Invalid time range, entity_types, or query parameters.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
},
- {
- "schema": {
- "type": "number",
- "nullable": true,
- "description": "The limit of the connected accounts to return"
- },
- "required": false,
- "description": "The limit of the connected accounts to return",
- "name": "limit",
- "in": "query"
+ "401": {
+ "description": "Authentication required.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
},
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "The user ids of the connected accounts"
- },
- "required": false,
- "description": "The user ids of the connected accounts",
- "name": "user_ids",
- "in": "query"
+ "403": {
+ "description": "Forbidden.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
},
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "format": "authConfigId"
- },
- "description": "The auth config ids of the connected accounts"
- },
- "required": false,
- "description": "The auth config ids of the connected accounts",
- "name": "auth_config_ids",
- "in": "query"
+ "404": {
+ "description": "Project not found.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
},
+ "500": {
+ "description": "Failed to load usage from analytics store or feature configuration.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/project/usage/{entity_type}": {
+ "post": {
+ "summary": "Project usage breakdown",
+ "description": "Grouped metering usage breakdown for the authenticated project. Groups results by a single dimension or column key.",
+ "tags": [
+ "Projects"
+ ],
+ "operationId": "postProjectUsageByEntityType",
+ "security": [
{
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "format": "connectedAccountId"
- },
- "description": "The connected account ids to filter by"
- },
- "required": false,
- "description": "The connected account ids to filter by",
- "name": "connected_account_ids",
- "in": "query"
+ "ApiKeyAuth": []
},
{
- "schema": {
- "type": "string",
- "enum": [
- "created_at",
- "updated_at"
- ],
- "default": "created_at",
- "description": "The order by of the connected accounts"
- },
- "required": false,
- "description": "The order by of the connected accounts",
- "name": "order_by",
- "in": "query"
- },
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
{
"schema": {
"type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc",
- "description": "The order direction of the connected accounts"
+ "description": "Metering entity type to break down (e.g. `tool_calls`, `sessions`)."
},
- "required": false,
- "description": "The order direction of the connected accounts",
- "name": "order_direction",
- "in": "query"
+ "required": true,
+ "description": "Metering entity type to break down (e.g. `tool_calls`, `sessions`).",
+ "name": "entity_type",
+ "in": "path"
}
],
- "responses": {
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "from": {
+ "type": "number",
+ "description": "Inclusive range start (Unix epoch milliseconds). Defaults to 30 days before `to`."
+ },
+ "to": {
+ "type": "number",
+ "description": "Exclusive range end (Unix epoch milliseconds). Defaults to now."
+ },
+ "group_by": {
+ "type": "string",
+ "description": "Dimension or column to group results by. Defaults to `tool_slug` for tool_calls and `user_id` for sessions."
+ },
+ "order_by": {
+ "type": "string",
+ "enum": [
+ "key",
+ "total_quantity",
+ "event_count"
+ ],
+ "description": "Field to order groups by. Defaults to `total_quantity`."
+ },
+ "order_direction": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "description": "Sort direction. Defaults to `desc`."
+ },
+ "limit": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 1000,
+ "description": "Maximum number of groups to return. Defaults to 100, max 1000."
+ },
+ "filters": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "minLength": 1
+ },
+ "description": "Filter to events matching these external end-user IDs. OR logic within the array."
+ },
+ "session_id": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "minLength": 1
+ },
+ "description": "Filter to events matching these session IDs. OR logic within the array."
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
"200": {
- "description": "Successfully retrieved connected accounts",
+ "description": "Usage breakdown for the project.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "items": {
+ "entity_type": {
+ "type": "string"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "total_quantity": {
+ "type": "string"
+ },
+ "event_count": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
- "toolkit": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "The slug of the toolkit"
- }
- },
- "required": [
- "slug"
- ]
- },
- "auth_config": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "authConfigId",
- "description": "The id of the auth config"
- },
- "auth_scheme": {
- "type": "string",
- "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"
- ],
- "description": "the authScheme is part of the connection state use it there",
- "deprecated": true
- },
- "is_composio_managed": {
- "type": "boolean",
- "description": "Whether the auth config is managed by Composio"
- },
- "is_disabled": {
- "type": "boolean",
- "description": "Whether the auth config is disabled"
- },
- "deprecated": {
- "type": "object",
- "properties": {
- "uuid": {
- "type": "string",
- "format": "uuid",
- "description": "The uuid of the auth config"
- }
- },
- "required": [
- "uuid"
- ],
- "deprecated": true
- }
- },
- "required": [
- "id",
- "auth_scheme",
- "is_composio_managed",
- "is_disabled"
- ]
- },
- "id": {
- "type": "string",
- "format": "connectedAccountId",
- "description": "The id of the connection"
- },
- "word_id": {
- "type": "string",
- "nullable": true,
- "description": "A short, token-friendly identifier for multi-account disambiguation, typically toolkit-prefixed with 1-2 words (e.g., \"gmail_red-castle\")"
- },
- "alias": {
- "type": "string",
- "nullable": true,
- "description": "A user-defined alias for the connected account"
- },
- "user_id": {
- "type": "string",
- "description": "This is deprecated, we will not be providing userId from this api anymore, you will only be able to read via userId not get it back",
- "deprecated": true
- },
- "status": {
- "type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
- ],
- "description": "The status of the connection"
- },
- "created_at": {
- "type": "string",
- "description": "The created at of the connection"
+ "key": {
+ "type": "string"
},
- "updated_at": {
- "type": "string",
- "description": "The updated at of the connection"
+ "total_quantity": {
+ "type": "string"
},
- "state": {
- "description": "The state of the connection",
- "type": "object",
- "properties": {
- "authScheme": {
- "type": "string",
- "enum": [
- "OAUTH1",
- "OAUTH2",
- "API_KEY",
- "BASIC",
- "BEARER_TOKEN",
- "GOOGLE_SERVICE_ACCOUNT",
- "NO_AUTH",
- "CALCOM_AUTH",
- "BILLCOM_AUTH",
- "BASIC_WITH_JWT",
- "SERVICE_ACCOUNT",
- "SAML",
- "DCR_OAUTH",
- "S2S_OAUTH2"
- ]
- },
- "val": {
- "type": "object",
- "properties": {
- "subdomain": {
- "type": "string"
- },
- "your-domain": {
- "type": "string"
- },
- "region": {
- "type": "string"
- },
- "shop": {
- "type": "string"
- },
- "account_url": {
- "type": "string"
- },
- "COMPANYDOMAIN": {
- "type": "string"
- },
- "extension": {
- "type": "string"
- },
- "form_api_base_url": {
- "type": "string"
- },
- "instanceEndpoint": {
- "type": "string"
- },
- "api_url": {
- "type": "string"
- },
- "borneo_dashboard_url": {
- "type": "string"
- },
- "proxy_username": {
- "type": "string"
- },
- "proxy_password": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "dc": {
- "type": "string"
- },
- "site_name": {
- "type": "string"
- },
- "instanceName": {
- "type": "string"
- },
- "account_id": {
- "type": "string"
- },
- "your_server": {
- "type": "string"
- },
- "server_location": {
- "type": "string"
- },
- "base_url": {
- "type": "string"
- },
- "status": {
- "type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
- ]
- },
- "oauth_token": {
- "type": "string"
- },
- "authUri": {
- "type": "string"
- },
- "oauth_token_secret": {
- "type": "string"
- },
- "redirectUrl": {
- "type": "string"
- },
- "callbackUrl": {
- "type": "string"
- },
- "oauth_verifier": {
- "type": "string"
- },
- "consumer_key": {
- "type": "string"
- },
- "callback_url": {
- "type": "string"
- },
- "error": {
- "type": "string"
- },
- "error_description": {
- "type": "string"
- },
- "expired_at": {
- "type": "string"
- }
- },
- "required": [
- "status"
- ],
- "additionalProperties": true
- }
- },
- "required": [
- "authScheme",
- "val"
- ],
- "additionalProperties": true
- },
- "data": {
- "type": "object",
- "additionalProperties": {},
- "description": "This is deprecated, use `state` instead",
- "deprecated": true
- },
- "status_reason": {
- "type": "string",
- "nullable": true,
- "description": "The reason the connection status changed. Possible reasons: Connection initiation did not complete within 10 minutes, Permanent auth error during token refresh, Max auth failures reached, OAuth callback failed during token exchange, Connection status updated by user, Auth config is disabled"
- },
- "is_disabled": {
- "type": "boolean",
- "description": "Whether the connection is disabled"
- },
- "test_request_endpoint": {
- "type": "string",
- "description": "The endpoint to make test request for verification"
- },
- "deprecated": {
- "type": "object",
- "properties": {
- "labels": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "The labels of the connection"
- },
- "uuid": {
- "type": "string",
- "format": "uuid",
- "description": "The uuid of the connection"
- }
- },
- "required": [
- "labels",
- "uuid"
- ],
- "deprecated": true
+ "event_count": {
+ "type": "integer",
+ "minimum": 0
}
},
"required": [
- "toolkit",
- "auth_config",
- "id",
- "word_id",
- "alias",
- "user_id",
- "status",
- "created_at",
- "updated_at",
- "state",
- "data",
- "status_reason",
- "is_disabled"
+ "key",
+ "total_quantity",
+ "event_count"
]
}
- },
- "next_cursor": {
- "type": "string",
- "nullable": true
- },
- "total_pages": {
- "type": "number"
- },
- "current_page": {
- "type": "number"
- },
- "total_items": {
- "type": "number"
}
},
"required": [
- "items",
- "total_pages",
- "current_page",
- "total_items"
+ "entity_type",
+ "unit",
+ "total_quantity",
+ "event_count",
+ "groups"
]
}
}
}
},
"400": {
- "description": "Bad request",
+ "description": "Invalid entity_type, group_by, time range, or query parameters.",
"content": {
"application/json": {
"schema": {
@@ -5119,7 +5090,7 @@
}
},
"401": {
- "description": "Unauthorized",
+ "description": "Authentication required.",
"content": {
"application/json": {
"schema": {
@@ -5128,8 +5099,8 @@
}
}
},
- "404": {
- "description": "Not found",
+ "403": {
+ "description": "Forbidden.",
"content": {
"application/json": {
"schema": {
@@ -5138,8 +5109,8 @@
}
}
},
- "422": {
- "description": "Unprocessable entity",
+ "404": {
+ "description": "Project not found.",
"content": {
"application/json": {
"schema": {
@@ -5149,7 +5120,7 @@
}
},
"500": {
- "description": "Internal server error",
+ "description": "Failed to load usage from analytics store or feature configuration.",
"content": {
"application/json": {
"schema": {
@@ -5160,14 +5131,16 @@
}
},
"x-api-version": "3.1"
- },
- "post": {
- "summary": "Create a new connected account",
- "description": "Initiates a new connection to an external service for a user. For OAuth-based toolkits, this returns a redirect URL to complete authentication. For API key-based toolkits, provide the credentials directly in the request body. Use the `user_id` field to associate the connection with a specific user in your system.",
+ }
+ },
+ "/api/v3.1/auth/session/info": {
+ "get": {
+ "summary": "Get current user session information",
+ "description": "Retrieves detailed information about the current authenticated user session, including project details, organization membership, and API key information if applicable. This endpoint is useful for verifying authentication status and retrieving contextual information about the authenticated user and their access privileges.",
"tags": [
- "Connected Accounts"
+ "Authentication"
],
- "operationId": "postConnectedAccounts",
+ "operationId": "getAuthSessionInfo",
"security": [
{
"ApiKeyAuth": []
@@ -5176,449 +5149,279 @@
"UserApiKeyAuth": []
}
],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "auth_config": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "authConfigId",
- "description": "The auth config id of the app (must be a valid auth config id)"
- }
- },
- "required": [
- "id"
- ]
- },
- "connection": {
- "type": "object",
- "properties": {
- "state": {
- "description": "The state of the connected account",
- "type": "object",
- "properties": {
- "authScheme": {
- "type": "string",
- "enum": [
- "OAUTH1",
- "OAUTH2",
- "API_KEY",
- "BASIC",
- "BEARER_TOKEN",
- "GOOGLE_SERVICE_ACCOUNT",
- "NO_AUTH",
- "CALCOM_AUTH",
- "BILLCOM_AUTH",
- "BASIC_WITH_JWT",
- "SERVICE_ACCOUNT",
- "SAML",
- "DCR_OAUTH",
- "S2S_OAUTH2"
- ]
- },
- "val": {
- "type": "object",
- "properties": {
- "subdomain": {
- "type": "string"
- },
- "your-domain": {
- "type": "string"
- },
- "region": {
- "type": "string"
- },
- "shop": {
- "type": "string"
- },
- "account_url": {
- "type": "string"
- },
- "COMPANYDOMAIN": {
- "type": "string"
- },
- "extension": {
- "type": "string"
- },
- "form_api_base_url": {
- "type": "string"
- },
- "instanceEndpoint": {
- "type": "string"
- },
- "api_url": {
- "type": "string"
- },
- "borneo_dashboard_url": {
- "type": "string"
- },
- "proxy_username": {
- "type": "string"
- },
- "proxy_password": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "dc": {
- "type": "string"
- },
- "site_name": {
- "type": "string"
- },
- "instanceName": {
- "type": "string"
- },
- "account_id": {
- "type": "string"
- },
- "your_server": {
- "type": "string"
- },
- "server_location": {
- "type": "string"
- },
- "base_url": {
- "type": "string"
- },
- "status": {
- "type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
- ]
- },
- "oauth_token": {
- "type": "string"
- },
- "authUri": {
- "type": "string"
- },
- "oauth_token_secret": {
- "type": "string"
- },
- "redirectUrl": {
- "type": "string"
- },
- "callbackUrl": {
- "type": "string"
- },
- "oauth_verifier": {
- "type": "string"
- },
- "consumer_key": {
- "type": "string"
- },
- "callback_url": {
- "type": "string"
- },
- "error": {
- "type": "string"
- },
- "error_description": {
- "type": "string"
- },
- "expired_at": {
- "type": "string"
- }
- },
- "required": [
- "status"
- ],
- "additionalProperties": true
- }
- },
- "required": [
- "authScheme",
- "val"
- ],
- "additionalProperties": true
- },
- "data": {
- "type": "object",
- "additionalProperties": {},
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use state instead.",
- "deprecated": true
- },
- "user_id": {
- "type": "string",
- "default": "default",
- "description": "The user id of the connected account"
- },
- "alias": {
- "type": "string",
- "description": "A human-readable alias for this connected account. Must be unique per entity and toolkit within the project."
- },
- "callback_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to redirect to after connection completion"
- },
- "redirect_uri": {
- "type": "string",
- "format": "uri",
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use callback_url instead.",
- "deprecated": true
- },
- "deprecated_is_v1_rerouted": {
- "type": "boolean",
- "default": false,
- "description": "DEPRECATED: This parameter will be removed in a future version.",
- "deprecated": true
- }
- }
- },
- "validate_credentials": {
- "type": "boolean",
- "default": false,
- "description": "[EXPERIMENTAL] Whether to validate the provided credentials, validates only for API Key Auth scheme",
- "x-experimental": true
- }
- },
- "required": [
- "auth_config",
- "connection"
- ]
- }
- }
- }
- },
"responses": {
- "201": {
- "description": "Successfully created connected account",
+ "200": {
+ "description": "Session is valid and active. Returns detailed information about the authenticated user, their project, and organization.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "format": "connectedAccountId",
- "description": "The id of the connected account"
- },
- "connectionData": {
- "description": "The connection data of the connected account",
+ "project": {
"type": "object",
+ "nullable": true,
"properties": {
- "authScheme": {
+ "auto_id": {
+ "type": "number",
+ "description": "Internal auto-incrementing ID for the project",
+ "example": 12345
+ },
+ "id": {
+ "type": "string",
+ "description": "UUID identifier for the project",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "org_id": {
+ "type": "string",
+ "description": "Organization UUID that this project belongs to",
+ "example": "550e8400-e29b-41d4-a716-446655440001"
+ },
+ "name": {
+ "type": "string",
+ "description": "User-defined name for the project",
+ "example": "Production API"
+ },
+ "email": {
+ "type": "string",
+ "description": "Email address used for project notifications",
+ "example": "[email protected]"
+ },
+ "nano_id": {
+ "type": "string",
+ "format": "projectId",
+ "description": "Short, URL-friendly unique identifier for the project",
+ "example": "pr_1a2b3c4d5e6f"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when the project was created",
+ "example": "2023-05-16T14:30:00.000Z"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "Date and time when the project was last modified",
+ "example": "2023-05-18T09:15:30.000Z"
+ },
+ "webhook_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "Endpoint URL for trigger webhook notifications",
+ "example": "https://example.com/webhook"
+ },
+ "event_webhook_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "Endpoint URL for event webhook notifications",
+ "example": "https://example.com/events"
+ },
+ "webhook_secret": {
+ "type": "string",
+ "nullable": true,
+ "description": "Secret used to verify webhook signatures",
+ "example": "whsec_a1b2c3d4e5f6g7h8i9j0"
+ },
+ "triggers_enabled": {
+ "type": "boolean",
+ "description": "Flag indicating if triggers are enabled for this project",
+ "example": true
+ },
+ "last_subscribed_at": {
+ "type": "string",
+ "nullable": true,
+ "description": "Date and time when the project last subscribed to updates",
+ "example": "2023-05-17T10:00:00.000Z"
+ },
+ "deleted": {
+ "type": "boolean",
+ "description": "Flag indicating if the project has been deleted",
+ "example": false
+ },
+ "is_new_webhook": {
+ "type": "boolean",
+ "description": "Deprecated: Please refer to webhook_version instead. True indicates if the webhook configuration is using the previous new format (V2). False indicates the oldest format (V1)",
+ "example": true,
+ "deprecated": true
+ },
+ "webhook_version": {
"type": "string",
"enum": [
- "OAUTH1",
- "OAUTH2",
- "API_KEY",
- "BASIC",
- "BEARER_TOKEN",
- "GOOGLE_SERVICE_ACCOUNT",
- "NO_AUTH",
- "CALCOM_AUTH",
- "BILLCOM_AUTH",
- "BASIC_WITH_JWT",
- "SERVICE_ACCOUNT",
- "SAML",
- "DCR_OAUTH",
- "S2S_OAUTH2"
- ]
+ "V1",
+ "V2",
+ "V3"
+ ],
+ "description": "Version of the webhook configuration",
+ "example": "V2"
},
- "val": {
+ "org": {
"type": "object",
"properties": {
- "subdomain": {
- "type": "string"
- },
- "your-domain": {
- "type": "string"
+ "id": {
+ "type": "string",
+ "format": "orgId",
+ "description": "Short, URL-friendly unique identifier for the organization",
+ "example": "ok_1a2b3c4d5e6f"
},
- "region": {
- "type": "string"
- },
- "shop": {
- "type": "string"
- },
- "account_url": {
- "type": "string"
- },
- "COMPANYDOMAIN": {
- "type": "string"
- },
- "extension": {
- "type": "string"
- },
- "form_api_base_url": {
- "type": "string"
- },
- "instanceEndpoint": {
- "type": "string"
- },
- "api_url": {
- "type": "string"
- },
- "borneo_dashboard_url": {
- "type": "string"
- },
- "proxy_username": {
- "type": "string"
- },
- "proxy_password": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "dc": {
- "type": "string"
- },
- "site_name": {
- "type": "string"
- },
- "instanceName": {
- "type": "string"
- },
- "account_id": {
- "type": "string"
- },
- "your_server": {
- "type": "string"
- },
- "server_location": {
- "type": "string"
- },
- "base_url": {
- "type": "string"
- },
- "status": {
+ "name": {
"type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
- ]
- },
- "oauth_token": {
- "type": "string"
- },
- "authUri": {
- "type": "string"
- },
- "oauth_token_secret": {
- "type": "string"
- },
- "redirectUrl": {
- "type": "string"
- },
- "callbackUrl": {
- "type": "string"
- },
- "oauth_verifier": {
- "type": "string"
- },
- "consumer_key": {
- "type": "string"
- },
- "callback_url": {
- "type": "string"
- },
- "error": {
- "type": "string"
- },
- "error_description": {
- "type": "string"
+ "description": "User-defined name for the organization",
+ "example": "Acme Corp"
},
- "expired_at": {
- "type": "string"
+ "plan": {
+ "type": "string",
+ "description": "Current subscription plan level",
+ "example": "BUSINESS"
}
},
"required": [
- "status"
+ "id",
+ "name",
+ "plan"
],
- "additionalProperties": true
+ "description": "Organization details"
}
},
"required": [
- "authScheme",
- "val"
- ],
- "additionalProperties": true
- },
- "status": {
- "type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
+ "auto_id",
+ "id",
+ "org_id",
+ "name",
+ "email",
+ "nano_id",
+ "created_at",
+ "updated_at",
+ "webhook_url",
+ "event_webhook_url",
+ "webhook_secret",
+ "triggers_enabled",
+ "last_subscribed_at",
+ "deleted",
+ "is_new_webhook",
+ "webhook_version",
+ "org"
],
- "description": "DEPRECATED: This field will be removed in a future version",
- "deprecated": true
- },
- "redirect_url": {
- "type": "string",
- "nullable": true,
- "description": "DEPRECATED: This field will be removed in a future version",
- "deprecated": true
+ "description": "Details of the current active project (null if accessing with org-level credentials)"
},
- "redirect_uri": {
- "type": "string",
+ "api_key": {
+ "type": "object",
"nullable": true,
- "description": "DEPRECATED: This field will be removed in a future version",
- "deprecated": true
+ "properties": {
+ "auto_id": {
+ "type": "number",
+ "description": "Internal auto-incrementing ID for the API key",
+ "example": 7890
+ },
+ "id": {
+ "type": "string",
+ "description": "UUID identifier for the API key",
+ "example": "550e8400-e29b-41d4-a716-446655440003"
+ },
+ "name": {
+ "type": "string",
+ "description": "User-defined name for the API key",
+ "example": "Development Key"
+ },
+ "project_id": {
+ "type": "string",
+ "format": "projectId",
+ "description": "Short, URL-friendly unique identifier for the associated project",
+ "example": "pr_1a2b3c4d5e6f"
+ },
+ "org_member_id": {
+ "type": "string",
+ "description": "UUID identifier for the organization member who owns this API key",
+ "example": "550e8400-e29b-41d4-a716-446655440002"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when the API key was created",
+ "example": "2023-05-01T10:00:00.000Z"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "Date and time when the API key was last modified",
+ "example": "2023-05-01T10:00:00.000Z"
+ },
+ "deleted_at": {
+ "type": "string",
+ "nullable": true,
+ "description": "Date and time when the API key was deleted (if applicable)"
+ },
+ "key": {
+ "type": "string",
+ "description": "The actual API key value (usually only shown once during creation)",
+ "example": "sk_live_abc123xyz456"
+ },
+ "deleted": {
+ "type": "boolean",
+ "description": "Flag indicating if the API key has been deleted",
+ "example": false
+ }
+ },
+ "required": [
+ "auto_id",
+ "id",
+ "name",
+ "project_id",
+ "org_member_id",
+ "created_at",
+ "updated_at",
+ "deleted_at",
+ "key",
+ "deleted"
+ ],
+ "description": "Details of the API key used for authentication (null if using session auth)"
},
- "deprecated": {
+ "org_member": {
"type": "object",
"properties": {
- "uuid": {
+ "id": {
"type": "string",
- "format": "uuid",
- "description": "The uuid of the connected account"
+ "description": "UUID identifier for the organization member",
+ "example": "550e8400-e29b-41d4-a716-446655440002"
},
- "authConfigUuid": {
+ "email": {
"type": "string",
- "format": "uuid",
- "description": "The uuid of the auth config"
+ "description": "Email address of the authenticated user",
+ "example": "[email protected]"
+ },
+ "name": {
+ "type": "string",
+ "description": "Display name of the authenticated user",
+ "example": "John Doe"
+ },
+ "role": {
+ "type": "string",
+ "description": "Access role of the authenticated user within the organization",
+ "example": "admin"
}
},
"required": [
- "uuid",
- "authConfigUuid"
+ "id",
+ "email",
+ "name",
+ "role"
],
- "description": "DEPRECATED: This field will be removed in a future version. Please use id and auth_config.id instead.",
- "deprecated": true
+ "description": "Information about the authenticated user",
+ "example": {
+ "id": "550e8400-e29b-41d4-a716-446655440002",
+ "email": "[email protected]",
+ "name": "John Doe",
+ "role": "admin"
+ }
}
},
"required": [
- "id",
- "connectionData",
- "status",
- "redirect_url",
- "redirect_uri",
- "deprecated"
- ]
+ "project",
+ "api_key",
+ "org_member"
+ ],
+ "description": "Response containing user session information"
}
}
}
},
"400": {
- "description": "Bad request",
+ "description": "Bad request. The request format may be invalid or missing required parameters.",
"content": {
"application/json": {
"schema": {
@@ -5628,7 +5431,7 @@
}
},
"401": {
- "description": "Unauthorized",
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid or expired.",
"content": {
"application/json": {
"schema": {
@@ -5637,8 +5440,8 @@
}
}
},
- "404": {
- "description": "Not found",
+ "403": {
+ "description": "Forbidden. The authenticated user does not have permission to access this resource.",
"content": {
"application/json": {
"schema": {
@@ -5647,8 +5450,8 @@
}
}
},
- "500": {
- "description": "Internal server error",
+ "404": {
+ "description": "Not found. The requested project, organization, or member resource could not be found.",
"content": {
"application/json": {
"schema": {
@@ -5657,8 +5460,8 @@
}
}
},
- "501": {
- "description": "Not implemented",
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -5671,14 +5474,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/connected_accounts/{nanoid}": {
- "get": {
- "summary": "Get connected account details by ID",
- "description": "Retrieves comprehensive details of a connected account, including authentication configuration, connection status, and all parameters needed for API requests.",
+ "/api/v3.1/auth_configs": {
+ "post": {
+ "summary": "Create new authentication configuration",
+ "description": "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.",
"tags": [
- "Connected Accounts"
+ "Auth Configs"
],
- "operationId": "getConnectedAccountsByNanoid",
+ "operationId": "postAuthConfigs",
"security": [
{
"ApiKeyAuth": []
@@ -5687,357 +5490,305 @@
"UserApiKeyAuth": []
}
],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "connectedAccountId"
- },
- "required": true,
- "description": "The unique identifier (nanoid) of the connected account",
- "example": "ca_1a2b3c4d5e6f",
- "name": "nanoid",
- "in": "path"
- }
- ],
- "responses": {
- "200": {
- "description": "Successfully retrieved connected account details with all authentication parameters and connection status",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "toolkit": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "The slug of the toolkit"
- }
- },
- "required": [
- "slug"
- ]
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "toolkit": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "Toolkit slug to create auth config for"
+ }
},
- "auth_config": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "authConfigId",
- "description": "The id of the auth config"
- },
- "auth_scheme": {
- "type": "string",
- "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"
- ],
- "description": "the authScheme is part of the connection state use it there",
- "deprecated": true
- },
- "is_composio_managed": {
- "type": "boolean",
- "description": "Whether the auth config is managed by Composio"
- },
- "is_disabled": {
- "type": "boolean",
- "description": "Whether the auth config is disabled"
- },
- "deprecated": {
- "type": "object",
- "properties": {
- "uuid": {
- "type": "string",
- "format": "uuid",
- "description": "The uuid of the auth config"
+ "required": [
+ "slug"
+ ]
+ },
+ "auth_config": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "use_composio_managed_auth"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the integration"
+ },
+ "credentials": {
+ "type": "object",
+ "properties": {
+ "scopes": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ },
+ "user_scopes": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
+ },
+ "default": {}
+ },
+ "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."
+ }
}
},
- "required": [
- "uuid"
- ],
- "deprecated": true
- }
+ "restrict_to_following_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "Use tool_access_config instead. This field will be deprecated in the future.",
+ "deprecated": true
+ },
+ "shared_credentials": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
+ "x-experimental": true
+ },
+ "is_enabled_for_tool_router": {
+ "type": "boolean",
+ "description": "Whether this auth config is enabled for tool router"
+ }
+ },
+ "required": [
+ "type"
+ ]
},
- "required": [
- "id",
- "auth_scheme",
- "is_composio_managed",
- "is_disabled"
- ]
- },
- "id": {
- "type": "string",
- "format": "connectedAccountId",
- "description": "The id of the connection"
- },
- "word_id": {
- "type": "string",
- "nullable": true,
- "description": "A short, token-friendly identifier for multi-account disambiguation, typically toolkit-prefixed with 1-2 words (e.g., \"gmail_red-castle\")"
- },
- "alias": {
- "type": "string",
- "nullable": true,
- "description": "A user-defined alias for the connected account"
- },
- "user_id": {
- "type": "string",
- "description": "This is deprecated, we will not be providing userId from this api anymore, you will only be able to read via userId not get it back",
- "deprecated": true
- },
- "status": {
- "type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
- ],
- "description": "The status of the connection"
- },
- "created_at": {
- "type": "string",
- "description": "The created at of the connection"
- },
- "updated_at": {
- "type": "string",
- "description": "The updated at of the connection"
- },
- "state": {
- "description": "The state of the connection",
- "type": "object",
- "properties": {
- "authScheme": {
- "type": "string",
- "enum": [
- "OAUTH1",
- "OAUTH2",
- "API_KEY",
- "BASIC",
- "BEARER_TOKEN",
- "GOOGLE_SERVICE_ACCOUNT",
- "NO_AUTH",
- "CALCOM_AUTH",
- "BILLCOM_AUTH",
- "BASIC_WITH_JWT",
- "SERVICE_ACCOUNT",
- "SAML",
- "DCR_OAUTH",
- "S2S_OAUTH2"
- ]
- },
- "val": {
- "type": "object",
- "properties": {
- "subdomain": {
- "type": "string"
- },
- "your-domain": {
- "type": "string"
- },
- "region": {
- "type": "string"
- },
- "shop": {
- "type": "string"
- },
- "account_url": {
- "type": "string"
- },
- "COMPANYDOMAIN": {
- "type": "string"
- },
- "extension": {
- "type": "string"
- },
- "form_api_base_url": {
- "type": "string"
- },
- "instanceEndpoint": {
- "type": "string"
- },
- "api_url": {
- "type": "string"
- },
- "borneo_dashboard_url": {
- "type": "string"
- },
- "proxy_username": {
- "type": "string"
- },
- "proxy_password": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "dc": {
- "type": "string"
- },
- "site_name": {
- "type": "string"
- },
- "instanceName": {
- "type": "string"
- },
- "account_id": {
- "type": "string"
- },
- "your_server": {
- "type": "string"
- },
- "server_location": {
- "type": "string"
- },
- "base_url": {
- "type": "string"
- },
- "status": {
- "type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
- ]
- },
- "oauth_token": {
- "type": "string"
- },
- "authUri": {
- "type": "string"
- },
- "oauth_token_secret": {
- "type": "string"
- },
- "redirectUrl": {
- "type": "string"
- },
- "callbackUrl": {
- "type": "string"
- },
- "oauth_verifier": {
- "type": "string"
- },
- "consumer_key": {
- "type": "string"
- },
- "callback_url": {
- "type": "string"
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "use_custom_auth"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the integration"
+ },
+ "authScheme": {
+ "type": "string",
+ "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"
+ ]
+ },
+ "credentials": {
+ "type": "object",
+ "properties": {
+ "scopes": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ },
+ "user_scopes": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ }
},
- "error": {
- "type": "string"
+ "default": {}
+ },
+ "proxy_config": {
+ "type": "object",
+ "nullable": true,
+ "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"
+ }
},
- "error_description": {
+ "required": [
+ "proxy_url"
+ ]
+ },
+ "restrict_to_following_tools": {
+ "type": "array",
+ "items": {
"type": "string"
},
- "expired_at": {
- "type": "string"
+ "default": [],
+ "description": "Use tool_access_config instead. This field will be deprecated in the future.",
+ "deprecated": 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."
+ }
}
},
- "required": [
- "status"
- ],
- "additionalProperties": true
- }
- },
- "required": [
- "authScheme",
- "val"
- ],
- "additionalProperties": true
- },
- "data": {
+ "shared_credentials": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
+ "x-experimental": true
+ },
+ "is_enabled_for_tool_router": {
+ "type": "boolean",
+ "description": "Whether this auth config is enabled for tool router"
+ }
+ },
+ "required": [
+ "type",
+ "authScheme"
+ ]
+ }
+ ],
+ "default": {
+ "type": "use_composio_managed_auth",
+ "credentials": {},
+ "restrict_to_following_tools": []
+ }
+ }
+ },
+ "required": [
+ "toolkit"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "Successfully created auth config",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "toolkit": {
"type": "object",
- "additionalProperties": {},
- "description": "This is deprecated, use `state` instead",
- "deprecated": true
- },
- "status_reason": {
- "type": "string",
- "nullable": true,
- "description": "The reason the connection status changed. Possible reasons: Connection initiation did not complete within 10 minutes, Permanent auth error during token refresh, Max auth failures reached, OAuth callback failed during token exchange, Connection status updated by user, Auth config is disabled"
- },
- "is_disabled": {
- "type": "boolean",
- "description": "Whether the connection is disabled"
- },
- "test_request_endpoint": {
- "type": "string",
- "description": "The endpoint to make test request for verification"
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "The unique key of the toolkit"
+ }
+ },
+ "required": [
+ "slug"
+ ]
},
- "deprecated": {
+ "auth_config": {
"type": "object",
"properties": {
- "labels": {
+ "id": {
+ "type": "string",
+ "format": "authConfigId",
+ "description": "The auth config id of the toolkit (must be a valid auth config id)"
+ },
+ "auth_scheme": {
+ "type": "string",
+ "description": "The authentication mode of the toolkit"
+ },
+ "is_composio_managed": {
+ "type": "boolean",
+ "description": "Whether the auth config is managed by Composio"
+ },
+ "restrict_to_following_tools": {
"type": "array",
"items": {
"type": "string"
},
- "description": "The labels of the connection"
- },
- "uuid": {
- "type": "string",
- "format": "uuid",
- "description": "The uuid of the connection"
+ "default": [],
+ "description": "The tools that the user can use with the auth config"
}
},
"required": [
- "labels",
- "uuid"
- ],
- "deprecated": true
- },
- "params": {
- "type": "object",
- "additionalProperties": {},
- "description": "The initialization data of the connection, including configuration parameters",
- "deprecated": true
+ "id",
+ "auth_scheme",
+ "is_composio_managed"
+ ]
}
},
"required": [
"toolkit",
- "auth_config",
- "id",
- "word_id",
- "alias",
- "user_id",
- "status",
- "created_at",
- "updated_at",
- "state",
- "data",
- "status_reason",
- "is_disabled",
- "params"
+ "auth_config"
]
}
}
}
},
"400": {
- "description": "Bad request - Invalid nanoid format or other validation error",
+ "description": "Bad request",
"content": {
"application/json": {
"schema": {
@@ -6047,17 +5798,7 @@
}
},
"401": {
- "description": "Unauthorized - Authentication failed",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden - Insufficient permissions to access this connected account",
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -6067,7 +5808,7 @@
}
},
"404": {
- "description": "Not found - Connected account does not exist or was deleted",
+ "description": "Not found",
"content": {
"application/json": {
"schema": {
@@ -6077,17 +5818,7 @@
}
},
"500": {
- "description": "Internal server error - Failed to retrieve connected account details",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "501": {
- "description": "Not implemented - This operation is not supported for the requested connected account or authentication scheme",
+ "description": "Internal server error",
"content": {
"application/json": {
"schema": {
@@ -6099,13 +5830,13 @@
},
"x-api-version": "3.1"
},
- "delete": {
- "summary": "Delete a connected account",
- "description": "Soft-deletes a connected account by marking it as deleted in the database. This prevents the account from being used for API calls but preserves the record for audit purposes.",
+ "get": {
+ "summary": "List authentication configurations with optional filters",
+ "description": "Retrieves all auth configs for your project. Auth configs define how users authenticate with external services (OAuth, API keys, etc.). Use filters to find configs for specific toolkits or to distinguish between Composio-managed and custom configurations.",
"tags": [
- "Connected Accounts"
+ "Auth Configs"
],
- "operationId": "deleteConnectedAccountsByNanoid",
+ "operationId": "getAuthConfigs",
"security": [
{
"ApiKeyAuth": []
@@ -6115,44 +5846,345 @@
}
],
"parameters": [
+ {
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ],
+ "description": "Whether to filter by composio managed auth configs"
+ },
+ "required": false,
+ "description": "Whether to filter by composio managed auth configs",
+ "name": "is_composio_managed",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": false,
+ "description": "Comma-separated list of toolkit slugs to filter auth configs by",
+ "in": "query",
+ "name": "toolkit_slug"
+ },
{
"schema": {
"type": "string",
- "format": "connectedAccountId"
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use toolkit_slug instead.",
+ "deprecated": true
},
- "required": true,
- "description": "The unique identifier (nanoid) of the connected account",
- "example": "ca_1a2b3c4d5e6f",
- "name": "nanoid",
- "in": "path"
+ "required": false,
+ "description": "The app id to filter by",
+ "name": "deprecated_app_id",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "description": "DEPRECATED: This parameter will be removed in a future version.",
+ "deprecated": true
+ },
+ "required": false,
+ "name": "deprecated_status",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "boolean",
+ "nullable": true,
+ "default": false,
+ "description": "Show disabled auth configs"
+ },
+ "required": false,
+ "description": "Show disabled auth configs",
+ "name": "show_disabled",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "description": "Search auth configs by name or id"
+ },
+ "required": false,
+ "description": "Search auth configs by name or id",
+ "name": "search",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true
+ },
+ "required": false,
+ "description": "Number of items per page, max allowed is 1000",
+ "name": "limit",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": false,
+ "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
+ "name": "cursor",
+ "in": "query"
}
],
"responses": {
"200": {
- "description": "Successfully deleted the connected account. The account is marked as deleted but retained in the database for historical purposes.",
+ "description": "Successfully fetched auth configs",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "success": {
- "type": "boolean",
- "description": "Indicates whether the connected account was successfully deleted"
- }
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "authConfigId",
+ "description": "The unique ID of the authentication configuration"
+ },
+ "uuid": {
+ "type": "string",
+ "description": "The UUID of the authentication configuration (for backward compatibility)"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "default",
+ "custom"
+ ],
+ "description": "The type of the authentication configuration (custom or default)"
+ },
+ "toolkit": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "The unique identifier of the integration app"
+ },
+ "logo": {
+ "type": "string",
+ "description": "The URL to the integration app's logo image"
+ },
+ "auth_guide_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "URL to a guide page with authentication setup instructions"
+ },
+ "auth_hint_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "URL to a page where users can obtain or configure credentials"
+ }
+ },
+ "required": [
+ "slug",
+ "logo"
+ ],
+ "description": "Information about the associated integration"
+ },
+ "name": {
+ "type": "string",
+ "description": "The display name of the authentication configuration"
+ },
+ "auth_scheme": {
+ "type": "string",
+ "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"
+ ],
+ "description": "The authentication scheme used (e.g., OAuth2, API Key, etc.)"
+ },
+ "is_composio_managed": {
+ "type": "boolean",
+ "description": "Whether this authentication configuration is managed by Composio or the user"
+ },
+ "credentials": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "The authentication credentials (tokens, keys, etc.) - may be partially hidden for security"
+ },
+ "proxy_config": {
+ "type": "object",
+ "nullable": true,
+ "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"
+ }
+ },
+ "required": [
+ "proxy_url"
+ ]
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "ENABLED",
+ "DISABLED"
+ ],
+ "description": "Current status of the authentication configuration"
+ },
+ "created_by": {
+ "type": "string",
+ "description": "The identifier of the user who created the auth config"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "ISO 8601 date-time when the auth config was created"
+ },
+ "last_updated_at": {
+ "type": "string",
+ "description": "ISO 8601 date-time when the auth config was last updated"
+ },
+ "no_of_connections": {
+ "type": "number",
+ "description": "The number of active connections using this auth config"
+ },
+ "expected_input_fields": {
+ "type": "array",
+ "items": {
+ "nullable": true,
+ "type": "object"
+ },
+ "description": "Fields expected during connection initialization"
+ },
+ "restrict_to_following_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Use tool_access_config instead. This field will be deprecated in the future.",
+ "deprecated": 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."
+ },
+ "tools_available_for_execution": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "The actions that the user can perform on the auth config. If passed, this will update the actions that the user can perform on the auth config."
+ }
+ }
+ },
+ "shared_credentials": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
+ "x-experimental": true
+ },
+ "is_enabled_for_tool_router": {
+ "type": "boolean",
+ "description": "Whether this auth config is enabled for tool router"
+ },
+ "deprecated_params": {
+ "type": "object",
+ "properties": {
+ "default_connector_id": {
+ "type": "string",
+ "nullable": true,
+ "description": "Deprecated: Default connector ID"
+ },
+ "member_uuid": {
+ "type": "string",
+ "description": "Deprecated: Member UUID"
+ },
+ "toolkit_id": {
+ "type": "string",
+ "description": "Deprecated: Toolkit ID"
+ },
+ "expected_input_fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "description": "Deprecated: Fields expected during connection initialization"
+ }
+ },
+ "required": [
+ "default_connector_id"
+ ],
+ "description": "DEPRECATED: This parameter will be removed in a future version.",
+ "deprecated": true
+ }
+ },
+ "required": [
+ "id",
+ "uuid",
+ "type",
+ "toolkit",
+ "name",
+ "status",
+ "no_of_connections",
+ "tool_access_config"
+ ]
+ }
+ },
+ "next_cursor": {
+ "type": "string",
+ "nullable": true
+ },
+ "total_pages": {
+ "type": "number"
+ },
+ "current_page": {
+ "type": "number"
+ },
+ "total_items": {
+ "type": "number"
+ }
},
"required": [
- "success"
- ],
- "description": "Response returned after successfully deleting a connected account",
- "example": {
- "success": true
- }
+ "items",
+ "total_pages",
+ "current_page",
+ "total_items"
+ ]
}
}
}
},
"400": {
- "description": "Bad request - Invalid nanoid format or other validation error",
+ "description": "Bad request",
"content": {
"application/json": {
"schema": {
@@ -6162,7 +6194,7 @@
}
},
"401": {
- "description": "Unauthorized - Authentication failed",
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -6171,8 +6203,8 @@
}
}
},
- "403": {
- "description": "Forbidden - Insufficient permissions to delete this connected account",
+ "404": {
+ "description": "Not found",
"content": {
"application/json": {
"schema": {
@@ -6181,37 +6213,28 @@
}
}
},
- "404": {
- "description": "Connected account not found - The specified account does not exist or has already been deleted",
+ "500": {
+ "description": "Internal server error",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {}
- }
- }
- }
- },
- "500": {
- "description": "Internal server error - Failed to delete the connected account due to a server-side issue",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
+ "$ref": "#/components/schemas/Error"
}
}
}
}
},
"x-api-version": "3.1"
- },
- "patch": {
- "summary": "Update a connected account",
- "description": "Update a connected account. Supports updating the alias and/or credentials. Only specified fields will be updated. Set a credential field to null to remove it. Alias must be unique within the same project, entity, and toolkit scope.",
+ }
+ },
+ "/api/v3.1/auth_configs/{nanoid}": {
+ "get": {
+ "summary": "Get single authentication configuration by ID",
+ "description": "Retrieves detailed information about a specific authentication configuration using its unique identifier.",
"tags": [
- "Connected Accounts"
+ "Auth Configs"
],
- "operationId": "patchConnectedAccountsByNanoid",
+ "operationId": "getAuthConfigsByNanoid",
"security": [
{
"ApiKeyAuth": []
@@ -6224,211 +6247,238 @@
{
"schema": {
"type": "string",
- "format": "connectedAccountId"
+ "format": "authConfigId",
+ "description": "The unique identifier of the authentication configuration to retrieve"
},
"required": true,
- "description": "The unique identifier (nanoid) of the connected account",
- "example": "ca_1a2b3c4d5e6f",
+ "description": "The unique identifier of the authentication configuration to retrieve",
"name": "nanoid",
"in": "path"
}
],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/PatchConnectedAccountBody"
- },
- "examples": {
- "credentials": {
- "summary": "Update credentials",
- "value": {
- "connection": {
- "state": {
- "authScheme": "BEARER_TOKEN",
- "val": {
- "token": "new_access_token"
- }
- }
- }
- }
- },
- "alias": {
- "summary": "Update alias",
- "value": {
- "alias": "work-gmail"
- }
- }
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully updated connected account",
+ "description": "Successfully fetched auth config",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "success": {
- "type": "boolean",
- "description": "Whether the update was successful"
- },
"id": {
"type": "string",
- "format": "connectedAccountId",
- "description": "The unique identifier of the updated connected account"
+ "format": "authConfigId",
+ "description": "The unique ID of the authentication configuration"
+ },
+ "uuid": {
+ "type": "string",
+ "description": "The UUID of the authentication configuration (for backward compatibility)"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "default",
+ "custom"
+ ],
+ "description": "The type of the authentication configuration (custom or default)"
+ },
+ "toolkit": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "The unique identifier of the integration app"
+ },
+ "logo": {
+ "type": "string",
+ "description": "The URL to the integration app's logo image"
+ },
+ "auth_guide_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "URL to a guide page with authentication setup instructions"
+ },
+ "auth_hint_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "URL to a page where users can obtain or configure credentials"
+ }
+ },
+ "required": [
+ "slug",
+ "logo"
+ ],
+ "description": "Information about the associated integration"
+ },
+ "name": {
+ "type": "string",
+ "description": "The display name of the authentication configuration"
+ },
+ "auth_scheme": {
+ "type": "string",
+ "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"
+ ],
+ "description": "The authentication scheme used (e.g., OAuth2, API Key, etc.)"
+ },
+ "is_composio_managed": {
+ "type": "boolean",
+ "description": "Whether this authentication configuration is managed by Composio or the user"
+ },
+ "credentials": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "The authentication credentials (tokens, keys, etc.) - may be partially hidden for security"
+ },
+ "proxy_config": {
+ "type": "object",
+ "nullable": true,
+ "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"
+ }
+ },
+ "required": [
+ "proxy_url"
+ ]
},
"status": {
"type": "string",
- "description": "The current status of the connected account after the update (ACTIVE, EXPIRED, INACTIVE, etc.)"
- }
- },
- "required": [
- "success",
- "id",
- "status"
- ],
- "example": {
- "success": true,
- "id": "ca_1a2b3c4d5e6f",
- "status": "ACTIVE"
- }
- }
- }
- }
- },
- "400": {
- "description": "Bad request - Invalid nanoid, duplicate alias, or invalid credential values",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized - Authentication failed",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden - Insufficient permissions to update this connected account",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Not found - Connected account does not exist or was deleted",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error - Failed to update connected account",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/connected_accounts/{nanoId}/status": {
- "patch": {
- "summary": "Enable or disable a connected account",
- "description": "Updates the status of a connected account to either enabled (active) or disabled (inactive). Disabled accounts cannot be used for API calls but remain in the database.",
- "tags": [
- "Connected Accounts"
- ],
- "operationId": "patchConnectedAccountsByNanoIdStatus",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "connectedAccountId"
- },
- "required": true,
- "description": "The unique identifier of the connected account",
- "example": "ca_1a2b3c4d5e6f",
- "name": "nanoId",
- "in": "path"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean",
- "description": "Set to true to enable the account or false to disable it"
- }
- },
- "required": [
- "enabled"
- ],
- "example": {
- "enabled": true
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Successfully updated the connected account status. If enabled=true, the account status is set to ACTIVE; if enabled=false, the status is set to INACTIVE.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "success": {
+ "enum": [
+ "ENABLED",
+ "DISABLED"
+ ],
+ "description": "Current status of the authentication configuration"
+ },
+ "created_by": {
+ "type": "string",
+ "description": "The identifier of the user who created the auth config"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "ISO 8601 date-time when the auth config was created"
+ },
+ "last_updated_at": {
+ "type": "string",
+ "description": "ISO 8601 date-time when the auth config was last updated"
+ },
+ "no_of_connections": {
+ "type": "number",
+ "description": "The number of active connections using this auth config"
+ },
+ "expected_input_fields": {
+ "type": "array",
+ "items": {
+ "nullable": true,
+ "type": "object"
+ },
+ "description": "Fields expected during connection initialization"
+ },
+ "restrict_to_following_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Use tool_access_config instead. This field will be deprecated in the future.",
+ "deprecated": 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."
+ },
+ "tools_available_for_execution": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "The actions that the user can perform on the auth config. If passed, this will update the actions that the user can perform on the auth config."
+ }
+ }
+ },
+ "shared_credentials": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "[EXPERIMENTAL] Shared credentials that will be inherited by all connected accounts using this auth config",
+ "x-experimental": true
+ },
+ "is_enabled_for_tool_router": {
"type": "boolean",
- "description": "Indicates whether the connected account status was successfully updated"
+ "description": "Whether this auth config is enabled for tool router"
+ },
+ "deprecated_params": {
+ "type": "object",
+ "properties": {
+ "default_connector_id": {
+ "type": "string",
+ "nullable": true,
+ "description": "Deprecated: Default connector ID"
+ },
+ "member_uuid": {
+ "type": "string",
+ "description": "Deprecated: Member UUID"
+ },
+ "toolkit_id": {
+ "type": "string",
+ "description": "Deprecated: Toolkit ID"
+ },
+ "expected_input_fields": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": {}
+ },
+ "description": "Deprecated: Fields expected during connection initialization"
+ }
+ },
+ "required": [
+ "default_connector_id"
+ ],
+ "description": "DEPRECATED: This parameter will be removed in a future version.",
+ "deprecated": true
}
},
"required": [
- "success"
- ],
- "description": "Response returned after successfully updating a connected account status",
- "example": {
- "success": true
- }
+ "id",
+ "uuid",
+ "type",
+ "toolkit",
+ "name",
+ "status",
+ "no_of_connections",
+ "tool_access_config"
+ ]
}
}
}
},
"400": {
- "description": "Bad request - Invalid nanoid format or invalid request body",
+ "description": "Bad request - Invalid auth config ID format",
"content": {
"application/json": {
"schema": {
@@ -6438,17 +6488,7 @@
}
},
"401": {
- "description": "Unauthorized - Authentication failed",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden - Insufficient permissions to update this connected account",
+ "description": "Unauthorized - Authentication required",
"content": {
"application/json": {
"schema": {
@@ -6458,18 +6498,17 @@
}
},
"404": {
- "description": "Connected account not found - The specified account does not exist or has been deleted",
+ "description": "Not found - Auth configuration does not exist",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {}
+ "$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
- "description": "Internal server error - Failed to update the connected account status due to a server-side issue",
+ "description": "Internal server error - Something went wrong on the server",
"content": {
"application/json": {
"schema": {
@@ -6480,16 +6519,14 @@
}
},
"x-api-version": "3.1"
- }
- },
- "/api/v3.1/connected_accounts/{nanoid}/refresh": {
- "post": {
- "summary": "Refresh authentication for a connected account",
- "description": "Initiates a new authentication flow for a connected account when credentials have expired or become invalid. This may generate a new authentication URL for OAuth flows or refresh tokens for other auth schemes.",
+ },
+ "patch": {
+ "summary": "Update an authentication configuration",
+ "description": "Modifies an existing authentication configuration with new credentials or other settings. Only specified fields will be updated.",
"tags": [
- "Connected Accounts"
+ "Auth Configs"
],
- "operationId": "postConnectedAccountsByNanoidRefresh",
+ "operationId": "patchAuthConfigsByNanoid",
"security": [
{
"ApiKeyAuth": []
@@ -6502,102 +6539,241 @@
{
"schema": {
"type": "string",
- "format": "connectedAccountId"
+ "format": "authConfigId",
+ "description": "The unique identifier of the authentication configuration to update"
},
"required": true,
- "description": "The unique identifier of the connected account",
- "example": "ca_1a2b3c4d5e6f",
+ "description": "The unique identifier of the authentication configuration to update",
"name": "nanoid",
"in": "path"
- },
- {
- "schema": {
- "type": "string",
- "format": "uri"
- },
- "required": false,
- "name": "redirect_url",
- "in": "query"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {
- "redirect_url": {
- "type": "string",
- "format": "uri"
- },
- "validate_credentials": {
- "type": "boolean",
- "default": false,
- "description": "[EXPERIMENTAL] Whether to validate the provided credentials, validates only for API Key Auth scheme",
- "x-experimental": true
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Successfully refreshed the connected account authentication. For OAuth flows, a new redirect URL is provided.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "The unique identifier of the connected account"
- },
- "status": {
- "type": "string",
- "enum": [
- "INITIALIZING",
- "INITIATED",
- "ACTIVE",
- "FAILED",
- "EXPIRED",
- "INACTIVE"
- ],
- "description": "The current status of the connected account (e.g., active, pending, failed)"
- },
- "redirect_url": {
- "type": "string",
- "nullable": true,
- "description": "The URL to which the user should be redirected to complete the authentication process (null for auth schemes that do not require redirection)"
- }
- },
- "required": [
- "id",
- "status",
- "redirect_url"
- ],
- "description": "Response schema for a refreshed connected account authentication",
- "example": {
- "id": "ca_1a2b3c4d5e6f",
- "status": "ACTIVE",
- "redirect_url": "https://app.example.com/oauth/callback"
- }
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "custom"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "description": "The display name of the authentication configuration"
+ },
+ "credentials": {
+ "type": "object",
+ "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,
+ "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"
+ }
+ },
+ "required": [
+ "proxy_url"
+ ]
+ },
+ "restrict_to_following_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Use tool_access_config instead. This field will be deprecated in the future.",
+ "deprecated": true
+ },
+ "tool_access_config": {
+ "type": "object",
+ "properties": {
+ "tools_for_connected_account_creation": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Tools used to generate the minimum required scopes for the auth config (only valid for OAuth). If passed, this will update the scopes."
+ },
+ "tools_available_for_execution": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The actions that the user can perform on the auth config. If passed, this will update the actions that the user can perform on the auth config."
+ }
+ }
+ },
+ "shared_credentials": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Shared credentials that will be inherited by connected accounts. For eg: this can be used to share the API key for a tool with all connected accounts using this auth config."
+ },
+ "is_enabled_for_tool_router": {
+ "type": "boolean",
+ "description": "Whether this auth config is enabled for tool router"
+ }
+ },
+ "required": [
+ "type"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "default"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "description": "The display name of the authentication configuration"
+ },
+ "scopes": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ },
+ "user_scopes": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ ]
+ },
+ "restrict_to_following_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Use tool_access_config instead. This field will be deprecated in the future.",
+ "deprecated": true
+ },
+ "tool_access_config": {
+ "type": "object",
+ "properties": {
+ "tools_for_connected_account_creation": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Tools used to generate the minimum required scopes for the auth config (only valid for OAuth). If passed, this will update the scopes."
+ },
+ "tools_available_for_execution": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The actions that the user can perform on the auth config. If passed, this will update the actions that the user can perform on the auth config."
+ }
+ }
+ },
+ "shared_credentials": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Shared credentials that will be inherited by connected accounts. For eg: this can be used to share the API key for a tool with all connected accounts using this auth config."
+ },
+ "is_enabled_for_tool_router": {
+ "type": "boolean",
+ "description": "Whether this auth config is enabled for tool router"
+ }
+ },
+ "required": [
+ "type"
+ ]
+ }
+ ]
+ },
+ "examples": {
+ "standardUpdate": {
+ "summary": "Standard credential update",
+ "value": {
+ "auth_config": {
+ "credentials": {
+ "api_key": "YOUR_NEW_API_KEY",
+ "client_secret": "YOUR_NEW_CLIENT_SECRET"
+ },
+ "restrict_to_following_tools": [
+ "GMAIL_SEND_EMAIL",
+ "GMAIL_FETCH_EMAILS"
+ ]
+ }
+ }
}
}
}
- },
- "400": {
- "description": "Bad request - Invalid nanoid format or the account cannot be refreshed in its current state",
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Successfully updated auth config",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Error"
+ "type": "object",
+ "properties": {}
}
}
}
},
- "401": {
- "description": "Unauthorized - Authentication failed",
+ "400": {
+ "description": "Bad request - Invalid input or credentials format",
"content": {
"application/json": {
"schema": {
@@ -6606,8 +6782,8 @@
}
}
},
- "403": {
- "description": "Forbidden - Insufficient permissions to refresh this connected account",
+ "401": {
+ "description": "Unauthorized - Authentication required",
"content": {
"application/json": {
"schema": {
@@ -6617,7 +6793,7 @@
}
},
"404": {
- "description": "Not found - Connected account does not exist or was deleted",
+ "description": "Not found - Auth configuration does not exist",
"content": {
"application/json": {
"schema": {
@@ -6627,17 +6803,7 @@
}
},
"500": {
- "description": "Internal server error - Failed to refresh the connected account authentication",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "501": {
- "description": "Not implemented - This operation is not supported for the requested connected account or authentication scheme",
+ "description": "Internal server error - Something went wrong on the server",
"content": {
"application/json": {
"schema": {
@@ -6648,805 +6814,14 @@
}
},
"x-api-version": "3.1"
- }
- },
- "/api/v3.1/connected_accounts/link": {
- "post": {
- "summary": "Create a new auth link session",
- "description": "Creates a new authentication link session that users can use to connect their accounts",
+ },
+ "delete": {
+ "summary": "Delete an authentication configuration",
+ "description": "Soft-deletes an authentication configuration by marking it as deleted in the database. This operation cannot be undone.",
"tags": [
- "Connected Accounts"
+ "Auth Configs"
],
- "operationId": "postConnectedAccountsLink",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "auth_config_id": {
- "type": "string",
- "format": "authConfigId",
- "description": "The auth config id to create a link for"
- },
- "user_id": {
- "type": "string",
- "minLength": 1,
- "description": "The user id to create a link for"
- },
- "alias": {
- "type": "string",
- "description": "A human-readable alias for this connected account. Must be unique per entity and toolkit within the project."
- },
- "callback_url": {
- "type": "string",
- "description": "The callback url to create a link for"
- },
- "connection_data": {
- "description": "Optional data to pre-fill connection fields with default values",
- "type": "object",
- "properties": {
- "subdomain": {
- "type": "string"
- },
- "your-domain": {
- "type": "string"
- },
- "region": {
- "type": "string"
- },
- "shop": {
- "type": "string"
- },
- "account_url": {
- "type": "string"
- },
- "COMPANYDOMAIN": {
- "type": "string"
- },
- "extension": {
- "type": "string"
- },
- "form_api_base_url": {
- "type": "string"
- },
- "instanceEndpoint": {
- "type": "string"
- },
- "api_url": {
- "type": "string"
- },
- "borneo_dashboard_url": {
- "type": "string"
- },
- "proxy_username": {
- "type": "string"
- },
- "proxy_password": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "dc": {
- "type": "string"
- },
- "site_name": {
- "type": "string"
- },
- "instanceName": {
- "type": "string"
- },
- "account_id": {
- "type": "string"
- },
- "your_server": {
- "type": "string"
- },
- "server_location": {
- "type": "string"
- },
- "base_url": {
- "type": "string"
- },
- "oauth_token": {
- "type": "string"
- },
- "authUri": {
- "type": "string"
- },
- "oauth_token_secret": {
- "type": "string"
- },
- "redirectUrl": {
- "type": "string"
- },
- "callbackUrl": {
- "type": "string"
- },
- "oauth_verifier": {
- "type": "string"
- },
- "consumer_key": {
- "type": "string"
- },
- "callback_url": {
- "type": "string"
- },
- "error": {
- "type": "string"
- },
- "error_description": {
- "type": "string"
- },
- "expired_at": {
- "type": "string"
- },
- "state_prefix": {
- "type": "string",
- "maxLength": 40,
- "description": "The oauth2 state prefix for the connection"
- },
- "long_redirect_url": {
- "type": "boolean",
- "description": "Whether to return the redirect url without shortening"
- },
- "code_verifier": {
- "type": "string"
- },
- "finalRedirectUri": {
- "type": "string"
- },
- "webhook_signature": {
- "type": "string"
- },
- "access_token": {
- "type": "string"
- },
- "id_token": {
- "type": "string"
- },
- "token_type": {
- "type": "string"
- },
- "refresh_token": {
- "type": "string",
- "nullable": true
- },
- "expires_in": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "nullable": true,
- "type": "object"
- }
- ]
- },
- "scope": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "nullable": true,
- "type": "object"
- }
- ]
- },
- "authed_user": {
- "type": "object",
- "properties": {
- "access_token": {
- "type": "string"
- },
- "scope": {
- "type": "string"
- }
- },
- "description": "for slack user scopes"
- },
- "generic_api_key": {
- "type": "string"
- },
- "api_key": {
- "type": "string"
- },
- "bearer_token": {
- "type": "string"
- },
- "basic_encoded": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "token": {
- "type": "string"
- },
- "composio_link_redirect_url": {
- "type": "string"
- },
- "credentials_json": {
- "type": "string"
- },
- "sessionId": {
- "type": "string"
- },
- "devKey": {
- "type": "string"
- },
- "application_id": {
- "type": "string"
- },
- "installation_id": {
- "type": "string"
- },
- "private_key": {
- "type": "string"
- },
- "client_id": {
- "type": "string",
- "description": "Dynamically registered client ID"
- },
- "client_secret": {
- "type": "string",
- "description": "Dynamically registered client secret"
- },
- "client_id_issued_at": {
- "type": "number"
- },
- "client_secret_expires_at": {
- "type": "number"
- },
- "expires_at": {
- "type": "string"
- }
- },
- "additionalProperties": true
- }
- },
- "required": [
- "auth_config_id",
- "user_id"
- ]
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "Successfully created auth link",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "link_token": {
- "type": "string",
- "description": "The generated link token for the auth session"
- },
- "redirect_url": {
- "type": "string",
- "description": "The redirect URI to send users to for authentication"
- },
- "expires_at": {
- "type": "string",
- "description": "ISO timestamp when the link expires"
- },
- "connected_account_id": {
- "type": "string",
- "format": "connectedAccountId",
- "description": "The connected account ID that was created"
- }
- },
- "required": [
- "link_token",
- "redirect_url",
- "expires_at",
- "connected_account_id"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad request",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Auth config not found",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "422": {
- "description": "Unprocessable entity",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "501": {
- "description": "Not implemented",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/org/usage/summary": {
- "get": {
- "summary": "Org usage summary",
- "description": "Aggregated metering usage for the authenticated organization across all projects. Requires ClickHouse logging (`USE_CLICKHOUSE_FOR_LOGS`). Values are summed from raw metering events grouped by `entity_type`.",
- "tags": [
- "Organization"
- ],
- "operationId": "getOrgUsageSummary",
- "parameters": [
- {
- "schema": {
- "type": "string",
- "description": "Inclusive range start (ISO 8601). Defaults to 30 days before end_time."
- },
- "required": false,
- "description": "Inclusive range start (ISO 8601). Defaults to 30 days before end_time.",
- "name": "start_time",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "Exclusive range end (ISO 8601). Defaults to now."
- },
- "required": false,
- "description": "Exclusive range end (ISO 8601). Defaults to now.",
- "name": "end_time",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Filter to these metering entity types (comma-separated or repeated query keys). Omit for all types."
- },
- "required": false,
- "description": "Filter to these metering entity types (comma-separated or repeated query keys). Omit for all types.",
- "name": "entity_types",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "Usage aggregates for the organization.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "rows": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "entity_type": {
- "type": "string"
- },
- "unit": {
- "type": "string"
- },
- "total_quantity": {
- "type": "string"
- },
- "event_count": {
- "type": "integer",
- "minimum": 0
- }
- },
- "required": [
- "entity_type",
- "unit",
- "total_quantity",
- "event_count"
- ]
- }
- }
- },
- "required": [
- "rows"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Invalid time range, entity_types, or query parameters.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Authentication required.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Failed to load usage from analytics store or feature configuration.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/org/project/config": {
- "get": {
- "summary": "Get project configuration",
- "description": "Retrieves the current project configuration including 2FA settings.",
- "tags": [
- "Projects"
- ],
- "operationId": "getOrgProjectConfig",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "responses": {
- "200": {
- "description": "Project configuration retrieved successfully.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "is_2FA_enabled": {
- "type": "boolean"
- },
- "logo_url": {
- "type": "string"
- },
- "display_name": {
- "type": "string"
- },
- "mask_secret_keys_in_connected_account": {
- "type": "boolean"
- },
- "log_visibility_setting": {
- "type": "string",
- "enum": [
- "show_all",
- "dont_store_data"
- ]
- },
- "require_mcp_api_key": {
- "type": "boolean"
- },
- "is_composio_link_enabled_for_managed_auth": {
- "type": "boolean",
- "description": "Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key."
- },
- "signed_url_file_expiry_in_seconds": {
- "type": "number",
- "minimum": 1,
- "maximum": 86400
- }
- },
- "required": [
- "is_2FA_enabled",
- "mask_secret_keys_in_connected_account",
- "log_visibility_setting"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad request. The project configuration data may be invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Project not found. The specified project does not exist or has been deleted.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- },
- "patch": {
- "summary": "Update project configuration",
- "description": "Updates the project configuration settings.",
- "tags": [
- "Projects"
- ],
- "operationId": "patchOrgProjectConfig",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "is_2FA_enabled": {
- "type": "boolean"
- },
- "logo_url": {
- "type": "string"
- },
- "display_name": {
- "type": "string"
- },
- "mask_secret_keys_in_connected_account": {
- "type": "boolean"
- },
- "log_visibility_setting": {
- "type": "string",
- "enum": [
- "show_all",
- "dont_store_data"
- ]
- },
- "require_mcp_api_key": {
- "type": "boolean"
- },
- "is_composio_link_enabled_for_managed_auth": {
- "type": "boolean",
- "description": "Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key."
- },
- "signed_url_file_expiry_in_seconds": {
- "type": "number",
- "minimum": 1,
- "maximum": 86400
- }
- }
- },
- "examples": {
- "Enable 2FA": {
- "value": {
- "is_2FA_enabled": true
- }
- },
- "Disable 2FA": {
- "value": {
- "is_2FA_enabled": false
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Project configuration updated successfully.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "is_2FA_enabled": {
- "type": "boolean"
- },
- "logo_url": {
- "type": "string"
- },
- "display_name": {
- "type": "string"
- },
- "mask_secret_keys_in_connected_account": {
- "type": "boolean"
- },
- "log_visibility_setting": {
- "type": "string",
- "enum": [
- "show_all",
- "dont_store_data"
- ]
- },
- "require_mcp_api_key": {
- "type": "boolean"
- },
- "is_composio_link_enabled_for_managed_auth": {
- "type": "boolean",
- "description": "Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key."
- },
- "signed_url_file_expiry_in_seconds": {
- "type": "number",
- "minimum": 1,
- "maximum": 86400
- }
- },
- "required": [
- "is_2FA_enabled",
- "mask_secret_keys_in_connected_account",
- "log_visibility_setting"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad request. The configuration data may be invalid or missing.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Project not found. The specified project does not exist or has been deleted.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/org/project/usage/summary": {
- "get": {
- "summary": "Project usage summary",
- "description": "Aggregated metering usage for the authenticated project only. Requires ClickHouse logging (`USE_CLICKHOUSE_FOR_LOGS`). Values are summed from raw metering events grouped by `entity_type`.",
- "tags": [
- "Projects"
- ],
- "operationId": "getOrgProjectUsageSummary",
+ "operationId": "deleteAuthConfigsByNanoid",
"security": [
{
"ApiKeyAuth": []
@@ -7459,83 +6834,29 @@
{
"schema": {
"type": "string",
- "description": "Inclusive range start (ISO 8601). Defaults to 30 days before end_time."
- },
- "required": false,
- "description": "Inclusive range start (ISO 8601). Defaults to 30 days before end_time.",
- "name": "start_time",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "Exclusive range end (ISO 8601). Defaults to now."
- },
- "required": false,
- "description": "Exclusive range end (ISO 8601). Defaults to now.",
- "name": "end_time",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Filter to these metering entity types (comma-separated or repeated query keys). Omit for all types."
+ "format": "authConfigId",
+ "description": "The unique identifier of the authentication configuration to delete"
},
- "required": false,
- "description": "Filter to these metering entity types (comma-separated or repeated query keys). Omit for all types.",
- "name": "entity_types",
- "in": "query"
+ "required": true,
+ "description": "The unique identifier of the authentication configuration to delete",
+ "name": "nanoid",
+ "in": "path"
}
],
"responses": {
"200": {
- "description": "Usage aggregates for the project.",
+ "description": "Successfully deleted auth config",
"content": {
"application/json": {
"schema": {
"type": "object",
- "properties": {
- "rows": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "entity_type": {
- "type": "string"
- },
- "unit": {
- "type": "string"
- },
- "total_quantity": {
- "type": "string"
- },
- "event_count": {
- "type": "integer",
- "minimum": 0
- }
- },
- "required": [
- "entity_type",
- "unit",
- "total_quantity",
- "event_count"
- ]
- }
- }
- },
- "required": [
- "rows"
- ]
+ "properties": {}
}
}
}
},
"400": {
- "description": "Invalid time range, entity_types, or query parameters.",
+ "description": "Bad request - Invalid auth config ID format",
"content": {
"application/json": {
"schema": {
@@ -7545,17 +6866,7 @@
}
},
"401": {
- "description": "Authentication required.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden.",
+ "description": "Unauthorized - Authentication required",
"content": {
"application/json": {
"schema": {
@@ -7564,146 +6875,88 @@
}
}
},
- "500": {
- "description": "Failed to load usage from analytics store or feature configuration.",
+ "404": {
+ "description": "Auth config not found - The specified configuration does not exist or was already deleted",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/org/owner/project/new": {
- "post": {
- "summary": "Create a new project",
- "description": "Creates a new project within the authenticated user's organization using the specified name. Projects are isolated environments within your organization, each with their own API keys, webhook configurations, and resources. Use this endpoint to create additional projects for different environments (e.g., development, staging, production) or for separate applications.",
- "tags": [
- "Projects"
- ],
- "operationId": "postOrgOwnerProjectNew",
- "security": [
- {
- "OrgApiKeyAuth": []
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "minLength": 3,
- "maxLength": 75,
- "pattern": "^[a-zA-Z0-9_-]+$",
- "description": "A unique name for your project that follows the required format rules",
- "example": "my-awesome-project"
- },
- "should_create_api_key": {
- "type": "boolean",
- "default": false,
- "description": "Whether to create an API key for the project. If true, the API key will be created and returned in the response.",
- "example": false
- },
- "config": {
- "type": "object",
- "properties": {
- "is_2FA_enabled": {
- "type": "boolean"
- },
- "logo_url": {
- "type": "string"
- },
- "display_name": {
- "type": "string"
- },
- "mask_secret_keys_in_connected_account": {
- "type": "boolean"
- },
- "log_visibility_setting": {
- "type": "string",
- "enum": [
- "show_all",
- "dont_store_data"
- ]
- },
- "require_mcp_api_key": {
- "type": "boolean"
- },
- "is_composio_link_enabled_for_managed_auth": {
- "type": "boolean",
- "description": "Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key."
- },
- "signed_url_file_expiry_in_seconds": {
- "type": "number",
- "minimum": 1,
- "maximum": 86400
- }
- },
- "required": [
- "is_2FA_enabled",
- "mask_secret_keys_in_connected_account",
- "log_visibility_setting"
- ],
- "description": "Configuration for the project"
- }
- },
- "required": [
- "name"
- ]
- },
- "examples": {
- "Simple project": {
- "value": {
- "name": "my_production_api"
- }
+ "type": "object",
+ "properties": {}
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error - Something went wrong on the server",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
}
}
}
}
},
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/auth_configs/{nanoid}/{status}": {
+ "patch": {
+ "summary": "Enable or disable an authentication configuration",
+ "description": "Updates the status of an authentication configuration to either enabled or disabled. Disabled configurations cannot be used for new connections.",
+ "tags": [
+ "Auth Configs"
+ ],
+ "operationId": "patchAuthConfigsByNanoidByStatus",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "format": "authConfigId",
+ "description": "The unique identifier of the authentication configuration to update"
+ },
+ "required": true,
+ "description": "The unique identifier of the authentication configuration to update",
+ "name": "nanoid",
+ "in": "path"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "enum": [
+ "ENABLED",
+ "DISABLED"
+ ],
+ "description": "The new status to set for the auth configuration"
+ },
+ "required": true,
+ "description": "The new status to set for the auth configuration",
+ "name": "status",
+ "in": "path"
+ }
+ ],
"responses": {
"200": {
- "description": "Project successfully created. Returns the complete project object with generated IDs, webhook secrets, and configuration.",
+ "description": "Successfully updated auth config status",
"content": {
"application/json": {
"schema": {
"type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "projectId",
- "description": "Unique identifier for the project",
- "example": "pr_1a2b3c4d5e6f"
- },
- "name": {
- "type": "string",
- "description": "Name of the project",
- "example": "My Awesome Project"
- },
- "api_key": {
- "type": "string",
- "nullable": true,
- "description": "API key for the project",
- "example": "ak_abc123xyz456"
- }
- },
- "required": [
- "id",
- "api_key"
- ]
+ "properties": {}
}
}
}
},
"400": {
- "description": "Bad request. This may occur if the project name format is invalid, too short, or contains invalid characters.",
+ "description": "Bad request - Invalid auth config ID or status value",
"content": {
"application/json": {
"schema": {
@@ -7713,7 +6966,17 @@
}
},
"401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "description": "Unauthorized - Authentication required",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not found - Auth configuration does not exist",
"content": {
"application/json": {
"schema": {
@@ -7723,7 +6986,7 @@
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error - Something went wrong on the server",
"content": {
"application/json": {
"schema": {
@@ -7736,624 +6999,514 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/org/owner/project/list": {
+ "/api/v3.1/connected_accounts": {
"get": {
- "summary": "List all projects",
- "description": "Retrieves all projects belonging to the authenticated organization. Projects are returned in descending order of creation date (newest first). This endpoint is useful for displaying project selection in dashboards or for integrations that need to list all available projects.",
+ "summary": "List connected accounts with optional filters",
+ "description": "Retrieves all connected accounts for your project. Connected accounts represent authenticated user connections to external services (e.g., a user's Gmail account, Slack workspace). Filter by toolkit, status, user ID, or auth config to find specific connections.",
"tags": [
- "Projects"
+ "Connected Accounts"
],
- "operationId": "getOrgOwnerProjectList",
+ "operationId": "getConnectedAccounts",
"security": [
{
- "OrgApiKeyAuth": []
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
}
],
"parameters": [
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "The toolkit slugs of the connected accounts"
+ },
+ "required": false,
+ "description": "The toolkit slugs of the connected accounts",
+ "name": "toolkit_slugs",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "enum": [
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
+ ]
+ },
+ "description": "The status of the connected account"
+ },
+ "required": false,
+ "description": "The status of the connected account",
+ "name": "statuses",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "nullable": true,
+ "description": "The cursor to paginate through the connected accounts"
+ },
+ "required": false,
+ "description": "The cursor to paginate through the connected accounts",
+ "name": "cursor",
+ "in": "query"
+ },
{
"schema": {
"type": "number",
- "nullable": true
+ "nullable": true,
+ "description": "The limit of the connected accounts to return"
},
"required": false,
- "description": "Number of items per page, max allowed is 1000",
+ "description": "The limit of the connected accounts to return",
"name": "limit",
"in": "query"
},
{
"schema": {
- "type": "string"
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "The user ids of the connected accounts"
},
"required": false,
- "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
- "name": "cursor",
+ "description": "The user ids of the connected accounts",
+ "name": "user_ids",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "authConfigId"
+ },
+ "description": "The auth config ids of the connected accounts"
+ },
+ "required": false,
+ "description": "The auth config ids of the connected accounts",
+ "name": "auth_config_ids",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "connectedAccountId"
+ },
+ "description": "The connected account ids to filter by"
+ },
+ "required": false,
+ "description": "The connected account ids to filter by",
+ "name": "connected_account_ids",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created_at",
+ "updated_at"
+ ],
+ "default": "created_at",
+ "description": "The order by of the connected accounts"
+ },
+ "required": false,
+ "description": "The order by of the connected accounts",
+ "name": "order_by",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc",
+ "description": "The order direction of the connected accounts"
+ },
+ "required": false,
+ "description": "The order direction of the connected accounts",
+ "name": "order_direction",
"in": "query"
}
],
"responses": {
"200": {
- "description": "Projects retrieved successfully with pagination. Returns an array of projects with pagination info.",
+ "description": "Successfully retrieved connected accounts",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "data": {
+ "items": {
"type": "array",
"items": {
"type": "object",
"properties": {
+ "toolkit": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "The slug of the toolkit"
+ }
+ },
+ "required": [
+ "slug"
+ ]
+ },
+ "auth_config": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "authConfigId",
+ "description": "The id of the auth config"
+ },
+ "auth_scheme": {
+ "type": "string",
+ "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"
+ ],
+ "description": "the authScheme is part of the connection state use it there",
+ "deprecated": true
+ },
+ "is_composio_managed": {
+ "type": "boolean",
+ "description": "Whether the auth config is managed by Composio"
+ },
+ "is_disabled": {
+ "type": "boolean",
+ "description": "Whether the auth config is disabled"
+ },
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "uuid": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The uuid of the auth config"
+ }
+ },
+ "required": [
+ "uuid"
+ ],
+ "deprecated": true
+ }
+ },
+ "required": [
+ "id",
+ "auth_scheme",
+ "is_composio_managed",
+ "is_disabled"
+ ]
+ },
"id": {
"type": "string",
- "format": "projectId",
- "description": "Unique identifier for the project",
- "example": "pr_1a2b3c4d5e6f"
+ "format": "connectedAccountId",
+ "description": "The id of the connection"
},
- "org_id": {
+ "word_id": {
"type": "string",
- "format": "orgId",
- "description": "Identifier of the organization that owns this project",
- "example": "ok_1a2b3c4d5e6f"
+ "nullable": true,
+ "description": "A short, token-friendly identifier for multi-account disambiguation, typically toolkit-prefixed with 1-2 words (e.g., \"gmail_red-castle\")"
},
- "name": {
+ "alias": {
"type": "string",
- "description": "Name of the project",
- "example": "My Awesome Project"
+ "nullable": true,
+ "description": "A user-defined alias for the connected account"
},
- "email": {
+ "user_id": {
"type": "string",
- "description": "Email address associated with the project",
- "example": "[email protected]"
+ "description": "This is deprecated, we will not be providing userId from this api anymore, you will only be able to read via userId not get it back",
+ "deprecated": true
},
- "created_at": {
+ "status": {
"type": "string",
- "description": "ISO timestamp when the project was created",
- "example": "2023-05-16T14:30:00.000Z"
+ "enum": [
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
+ ],
+ "description": "The status of the connection"
},
- "updated_at": {
+ "created_at": {
"type": "string",
- "description": "ISO timestamp when the project was last updated",
- "example": "2023-05-18T09:15:30.000Z"
+ "description": "The created at of the connection"
},
- "webhook_url": {
+ "updated_at": {
"type": "string",
- "nullable": true,
- "format": "uri",
- "description": "DEPRECATED: Use GET /api/v3/webhook_subscriptions instead. Legacy project-level webhook URL.",
- "example": "https://example.com/webhook",
- "deprecated": true
+ "description": "The updated at of the connection"
},
- "event_webhook_url": {
- "type": "string",
- "nullable": true,
- "format": "uri",
- "description": "DEPRECATED: No longer used.",
- "example": "https://example.com/events",
- "deprecated": true
+ "state": {
+ "description": "The state of the connection",
+ "type": "object",
+ "properties": {
+ "authScheme": {
+ "type": "string",
+ "enum": [
+ "OAUTH1",
+ "OAUTH2",
+ "API_KEY",
+ "BASIC",
+ "BEARER_TOKEN",
+ "GOOGLE_SERVICE_ACCOUNT",
+ "NO_AUTH",
+ "CALCOM_AUTH",
+ "BILLCOM_AUTH",
+ "BASIC_WITH_JWT",
+ "SERVICE_ACCOUNT",
+ "SAML",
+ "DCR_OAUTH",
+ "S2S_OAUTH2"
+ ]
+ },
+ "val": {
+ "type": "object",
+ "properties": {
+ "subdomain": {
+ "type": "string"
+ },
+ "your-domain": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "shop": {
+ "type": "string"
+ },
+ "account_url": {
+ "type": "string"
+ },
+ "COMPANYDOMAIN": {
+ "type": "string"
+ },
+ "extension": {
+ "type": "string"
+ },
+ "form_api_base_url": {
+ "type": "string"
+ },
+ "instanceEndpoint": {
+ "type": "string"
+ },
+ "api_url": {
+ "type": "string"
+ },
+ "borneo_dashboard_url": {
+ "type": "string"
+ },
+ "proxy_username": {
+ "type": "string"
+ },
+ "proxy_password": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "dc": {
+ "type": "string"
+ },
+ "site_name": {
+ "type": "string"
+ },
+ "instanceName": {
+ "type": "string"
+ },
+ "account_id": {
+ "type": "string"
+ },
+ "your_server": {
+ "type": "string"
+ },
+ "server_location": {
+ "type": "string"
+ },
+ "base_url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
+ ]
+ },
+ "oauth_token": {
+ "type": "string"
+ },
+ "authUri": {
+ "type": "string"
+ },
+ "oauth_token_secret": {
+ "type": "string"
+ },
+ "redirectUrl": {
+ "type": "string"
+ },
+ "callbackUrl": {
+ "type": "string"
+ },
+ "oauth_verifier": {
+ "type": "string"
+ },
+ "consumer_key": {
+ "type": "string"
+ },
+ "callback_url": {
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "error_description": {
+ "type": "string"
+ },
+ "expired_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "authScheme",
+ "val"
+ ],
+ "additionalProperties": true
},
- "webhook_secret": {
- "type": "string",
- "nullable": true,
- "description": "DEPRECATED: Use GET /api/v3/webhook_subscriptions instead. Legacy project-level webhook secret.",
- "example": "whsec_abcdef123456789",
+ "data": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "This is deprecated, use `state` instead",
"deprecated": true
},
- "triggers_enabled": {
- "type": "boolean",
- "description": "Whether triggers are enabled for this project",
- "example": true
- },
- "last_subscribed_at": {
+ "status_reason": {
"type": "string",
"nullable": true,
- "format": "date-time",
- "description": "ISO timestamp when the project last subscribed to updates",
- "example": "2023-05-17T10:00:00.000Z"
- },
- "is_new_webhook": {
- "type": "boolean",
- "description": "Deprecated: Please refer to webhook_version instead. True indicates if the webhook configuration is using the previous new format (V2). False indicates the oldest format (V1)",
- "example": true,
- "deprecated": true
- },
- "webhook_version": {
- "type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
- ],
- "description": "Payload format version for Pusher real-time events only. For webhook configuration, use GET /api/v3/webhook_subscriptions.",
- "example": "V2"
+ "description": "The reason the connection status changed. Possible reasons: Connection initiation did not complete within 10 minutes, Permanent auth error during token refresh, Max auth failures reached, OAuth callback failed during token exchange, Connection status updated by user, Auth config is disabled"
},
- "deleted": {
+ "is_disabled": {
"type": "boolean",
- "description": "Whether this project has been soft-deleted",
- "example": false
- }
- },
- "required": [
- "id",
- "org_id",
- "name",
- "email",
- "created_at",
- "updated_at",
- "webhook_url",
- "event_webhook_url",
- "webhook_secret",
- "webhook_version",
- "deleted"
- ]
- }
- },
- "next_cursor": {
- "type": "string",
- "nullable": true
- },
- "total_pages": {
- "type": "number"
- },
- "current_page": {
- "type": "number"
- },
- "total_items": {
- "type": "number"
- }
- },
- "required": [
- "data",
- "total_pages",
- "current_page",
- "total_items"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad request. This may occur if there are invalid query parameters or the request is malformed.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/org/owner/project/{nano_id}": {
- "get": {
- "summary": "Get project details by ID With Org Api key",
- "description": "Retrieves detailed information about a specific project using its unique identifier. This endpoint provides complete project configuration including webhook URLs, creation and update timestamps, and webhook secrets. Use this endpoint to inspect project settings or verify project configuration.",
- "tags": [
- "Projects"
- ],
- "operationId": "getOrgOwnerProjectByNanoId",
- "security": [
- {
- "OrgApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "projectId",
- "description": "Unique identifier (Nano ID) of the project to retrieve",
- "example": "pr_1a2b3c4d5e6f"
- },
- "required": true,
- "description": "Unique identifier (Nano ID) of the project to retrieve",
- "name": "nano_id",
- "in": "path"
- }
- ],
- "responses": {
- "200": {
- "description": "Project retrieved successfully. Returns a complete project object with all configuration details and associated API keys.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "projectId",
- "description": "Unique identifier for the project",
- "example": "pr_1a2b3c4d5e6f"
- },
- "org_id": {
- "type": "string",
- "format": "orgId",
- "description": "Identifier of the organization that owns this project",
- "example": "ok_1a2b3c4d5e6f"
- },
- "name": {
- "type": "string",
- "description": "Name of the project",
- "example": "My Awesome Project"
- },
- "email": {
- "type": "string",
- "description": "Email address associated with the project",
- "example": "[email protected]"
- },
- "created_at": {
- "type": "string",
- "description": "ISO timestamp when the project was created",
- "example": "2023-05-16T14:30:00.000Z"
- },
- "updated_at": {
- "type": "string",
- "description": "ISO timestamp when the project was last updated",
- "example": "2023-05-18T09:15:30.000Z"
- },
- "webhook_url": {
- "type": "string",
- "nullable": true,
- "format": "uri",
- "description": "DEPRECATED: Use GET /api/v3/webhook_subscriptions instead. Legacy project-level webhook URL.",
- "example": "https://example.com/webhook",
- "deprecated": true
- },
- "event_webhook_url": {
- "type": "string",
- "nullable": true,
- "format": "uri",
- "description": "DEPRECATED: No longer used.",
- "example": "https://example.com/events",
- "deprecated": true
- },
- "webhook_secret": {
- "type": "string",
- "nullable": true,
- "description": "DEPRECATED: Use GET /api/v3/webhook_subscriptions instead. Legacy project-level webhook secret.",
- "example": "whsec_abcdef123456789",
- "deprecated": true
- },
- "triggers_enabled": {
- "type": "boolean",
- "description": "Whether triggers are enabled for this project",
- "example": true
- },
- "last_subscribed_at": {
- "type": "string",
- "nullable": true,
- "format": "date-time",
- "description": "ISO timestamp when the project last subscribed to updates",
- "example": "2023-05-17T10:00:00.000Z"
- },
- "is_new_webhook": {
- "type": "boolean",
- "description": "Deprecated: Please refer to webhook_version instead. True indicates if the webhook configuration is using the previous new format (V2). False indicates the oldest format (V1)",
- "example": true,
- "deprecated": true
- },
- "webhook_version": {
- "type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
- ],
- "description": "Payload format version for Pusher real-time events only. For webhook configuration, use GET /api/v3/webhook_subscriptions.",
- "example": "V2"
- },
- "deleted": {
- "type": "boolean",
- "description": "Whether this project has been soft-deleted",
- "example": false
- },
- "api_keys": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "Unique identifier for the API key",
- "example": "01H4DKRF5SMP7NQCA3BWT0JYB6"
- },
- "name": {
- "type": "string",
- "description": "User-defined name for the API key",
- "example": "Production Server Key"
+ "description": "Whether the connection is disabled"
},
- "key": {
+ "test_request_endpoint": {
"type": "string",
- "description": "The actual API key value used for authentication",
- "example": "ak_a1b2c3d4e5f6g7h8i9j0"
+ "description": "The endpoint to make test request for verification"
},
- "created_at": {
- "type": "string",
- "format": "date-time",
- "description": "ISO 8601 timestamp when the API key was created",
- "example": "2023-07-15T14:30:00.000Z"
- }
- },
- "required": [
- "id",
- "name",
- "key",
- "created_at"
- ]
- },
- "description": "Array of API keys for the project, including their properties"
- }
- },
- "required": [
- "id",
- "org_id",
- "name",
- "email",
- "created_at",
- "updated_at",
- "webhook_url",
- "event_webhook_url",
- "webhook_secret",
- "webhook_version",
- "deleted",
- "api_keys"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Bad request. This may occur if the project ID format is invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Not found. The specified project does not exist or you do not have access to it.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- },
- "delete": {
- "summary": "Delete a project",
- "description": "Soft-deletes a project within the organization by its unique identifier. When a project is deleted, it is marked as deleted but not immediately removed from the database. This operation affects all resources associated with the project including API keys, webhook configurations, and connected services. This action cannot be undone through the API.",
- "tags": [
- "Projects"
- ],
- "operationId": "deleteOrgOwnerProjectByNanoId",
- "security": [
- {
- "OrgApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "projectId",
- "description": "Unique identifier (Nano ID) of the project to delete",
- "example": "pr_1a2b3c4d5e6f"
- },
- "required": true,
- "description": "Unique identifier (Nano ID) of the project to delete",
- "name": "nano_id",
- "in": "path"
- }
- ],
- "responses": {
- "200": {
- "description": "Project successfully deleted. The project has been marked as deleted in the system.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "success"
- ],
- "description": "Status indicating successful deletion",
- "example": "success"
- }
- },
- "required": [
- "status"
- ],
- "description": "Response indicating successful project deletion"
- }
- }
- }
- },
- "400": {
- "description": "Bad request. The project ID may be invalid or in an incorrect format.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden. You do not have permission to delete this project.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Not found. The specified project does not exist or has already been deleted.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/org/owner/project/{nano_id}/regenerate_api_key": {
- "post": {
- "summary": "Delete and generate new API key for project",
- "description": "Generates a new API key for the specified project, invalidating any existing API keys for that project. This operation creates a fresh API key with a new random name and key value. All existing API keys for this project will be marked as deleted.",
- "tags": [
- "Projects"
- ],
- "operationId": "postOrgOwnerProjectByNanoIdRegenerateApiKey",
- "security": [
- {
- "OrgApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "projectId",
- "description": "Unique identifier (Nano ID) of the project to regenerate API key for",
- "example": "pr_1a2b3c4d5e6f"
- },
- "required": true,
- "description": "Unique identifier (Nano ID) of the project to regenerate API key for",
- "name": "nano_id",
- "in": "path"
- }
- ],
- "responses": {
- "200": {
- "description": "API key regenerated successfully. Returns the new API key details.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "api_key": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "Unique identifier for the API key",
- "example": "01H4DKRF5SMP7NQCA3BWT0JYB6"
- },
- "name": {
- "type": "string",
- "description": "Name of the API key",
- "example": "epic_avatar"
- },
- "key": {
- "type": "string",
- "description": "The newly generated API key value",
- "example": "ak_a1b2c3d4e5f6g7h8i9j0"
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The labels of the connection"
+ },
+ "uuid": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The uuid of the connection"
+ }
+ },
+ "required": [
+ "labels",
+ "uuid"
+ ],
+ "deprecated": true
+ }
},
- "created_at": {
- "type": "string",
- "description": "ISO timestamp when the API key was created",
- "example": "2023-05-16T14:30:00.000Z"
- }
- },
- "required": [
- "id",
- "name",
- "key",
- "created_at"
- ],
- "description": "The newly generated API key for this project"
+ "required": [
+ "toolkit",
+ "auth_config",
+ "id",
+ "word_id",
+ "alias",
+ "user_id",
+ "status",
+ "created_at",
+ "updated_at",
+ "state",
+ "data",
+ "status_reason",
+ "is_disabled"
+ ]
+ }
},
- "message": {
+ "next_cursor": {
"type": "string",
- "description": "Success message",
- "example": "API key regenerated successfully"
+ "nullable": true
+ },
+ "total_pages": {
+ "type": "number"
+ },
+ "current_page": {
+ "type": "number"
+ },
+ "total_items": {
+ "type": "number"
}
},
"required": [
- "api_key",
- "message"
+ "items",
+ "total_pages",
+ "current_page",
+ "total_items"
]
}
}
}
},
"400": {
- "description": "Bad request. The project ID may be invalid or in an incorrect format.",
+ "description": "Bad request",
"content": {
"application/json": {
"schema": {
@@ -8363,7 +7516,7 @@
}
},
"401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -8373,7 +7526,17 @@
}
},
"404": {
- "description": "Not found. The specified project does not exist or you do not have access to it.",
+ "description": "Not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Unprocessable entity",
"content": {
"application/json": {
"schema": {
@@ -8383,7 +7546,7 @@
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error",
"content": {
"application/json": {
"schema": {
@@ -8394,16 +7557,14 @@
}
},
"x-api-version": "3.1"
- }
- },
- "/api/v3.1/webhook_subscriptions": {
+ },
"post": {
- "summary": "Create webhook subscription",
- "description": "Creates a webhook subscription for the authenticated project. Only one subscription is allowed per project. The signing secret is returned only on creation.",
+ "summary": "Create a new connected account",
+ "description": "Initiates a new connection to an external service for a user. For OAuth-based toolkits, this returns a redirect URL to complete authentication. For API key-based toolkits, provide the credentials directly in the request body. Use the `user_id` field to associate the connection with a specific user in your system.",
"tags": [
- "Webhooks"
+ "Connected Accounts"
],
- "operationId": "postWebhookSubscriptions",
+ "operationId": "postConnectedAccounts",
"security": [
{
"ApiKeyAuth": []
@@ -8418,34 +7579,215 @@
"schema": {
"type": "object",
"properties": {
- "webhook_url": {
- "type": "string",
- "maxLength": 2048,
- "format": "uri",
- "description": "HTTPS URL to receive webhook events"
- },
- "enabled_events": {
- "type": "array",
- "items": {
- "type": "string"
+ "auth_config": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "authConfigId",
+ "description": "The auth config id of the app (must be a valid auth config id)"
+ }
},
- "minItems": 1,
- "description": "Array of event types to subscribe to"
+ "required": [
+ "id"
+ ]
+ },
+ "connection": {
+ "type": "object",
+ "properties": {
+ "state": {
+ "description": "The state of the connected account",
+ "type": "object",
+ "properties": {
+ "authScheme": {
+ "type": "string",
+ "enum": [
+ "OAUTH1",
+ "OAUTH2",
+ "API_KEY",
+ "BASIC",
+ "BEARER_TOKEN",
+ "GOOGLE_SERVICE_ACCOUNT",
+ "NO_AUTH",
+ "CALCOM_AUTH",
+ "BILLCOM_AUTH",
+ "BASIC_WITH_JWT",
+ "SERVICE_ACCOUNT",
+ "SAML",
+ "DCR_OAUTH",
+ "S2S_OAUTH2"
+ ]
+ },
+ "val": {
+ "type": "object",
+ "properties": {
+ "subdomain": {
+ "type": "string"
+ },
+ "your-domain": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "shop": {
+ "type": "string"
+ },
+ "account_url": {
+ "type": "string"
+ },
+ "COMPANYDOMAIN": {
+ "type": "string"
+ },
+ "extension": {
+ "type": "string"
+ },
+ "form_api_base_url": {
+ "type": "string"
+ },
+ "instanceEndpoint": {
+ "type": "string"
+ },
+ "api_url": {
+ "type": "string"
+ },
+ "borneo_dashboard_url": {
+ "type": "string"
+ },
+ "proxy_username": {
+ "type": "string"
+ },
+ "proxy_password": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "dc": {
+ "type": "string"
+ },
+ "site_name": {
+ "type": "string"
+ },
+ "instanceName": {
+ "type": "string"
+ },
+ "account_id": {
+ "type": "string"
+ },
+ "your_server": {
+ "type": "string"
+ },
+ "server_location": {
+ "type": "string"
+ },
+ "base_url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
+ ]
+ },
+ "oauth_token": {
+ "type": "string"
+ },
+ "authUri": {
+ "type": "string"
+ },
+ "oauth_token_secret": {
+ "type": "string"
+ },
+ "redirectUrl": {
+ "type": "string"
+ },
+ "callbackUrl": {
+ "type": "string"
+ },
+ "oauth_verifier": {
+ "type": "string"
+ },
+ "consumer_key": {
+ "type": "string"
+ },
+ "callback_url": {
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "error_description": {
+ "type": "string"
+ },
+ "expired_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "authScheme",
+ "val"
+ ],
+ "additionalProperties": true
+ },
+ "data": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use state instead.",
+ "deprecated": true
+ },
+ "user_id": {
+ "type": "string",
+ "default": "default",
+ "description": "The user id of the connected account"
+ },
+ "alias": {
+ "type": "string",
+ "description": "A human-readable alias for this connected account. Must be unique per entity and toolkit within the project."
+ },
+ "callback_url": {
+ "type": "string",
+ "format": "uri",
+ "description": "The URL to redirect to after connection completion"
+ },
+ "redirect_uri": {
+ "type": "string",
+ "format": "uri",
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use callback_url instead.",
+ "deprecated": true
+ },
+ "deprecated_is_v1_rerouted": {
+ "type": "boolean",
+ "default": false,
+ "description": "DEPRECATED: This parameter will be removed in a future version.",
+ "deprecated": true
+ }
+ }
},
- "version": {
- "type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
- ],
- "default": "V3",
- "description": "Webhook payload version"
+ "validate_credentials": {
+ "type": "boolean",
+ "default": false,
+ "description": "[EXPERIMENTAL] Whether to validate the provided credentials, validates only for API Key Auth scheme",
+ "x-experimental": true
}
},
"required": [
- "webhook_url",
- "enabled_events"
+ "auth_config",
+ "connection"
]
}
}
@@ -8453,7 +7795,7 @@
},
"responses": {
"201": {
- "description": "Webhook subscription created",
+ "description": "Successfully created connected account",
"content": {
"application/json": {
"schema": {
@@ -8461,57 +7803,219 @@
"properties": {
"id": {
"type": "string",
- "format": "webhookSubscriptionId",
- "description": "Unique subscription ID"
+ "format": "connectedAccountId",
+ "description": "The id of the connected account"
},
- "webhook_url": {
- "type": "string",
- "description": "Webhook destination URL"
+ "connectionData": {
+ "description": "The connection data of the connected account",
+ "type": "object",
+ "properties": {
+ "authScheme": {
+ "type": "string",
+ "enum": [
+ "OAUTH1",
+ "OAUTH2",
+ "API_KEY",
+ "BASIC",
+ "BEARER_TOKEN",
+ "GOOGLE_SERVICE_ACCOUNT",
+ "NO_AUTH",
+ "CALCOM_AUTH",
+ "BILLCOM_AUTH",
+ "BASIC_WITH_JWT",
+ "SERVICE_ACCOUNT",
+ "SAML",
+ "DCR_OAUTH",
+ "S2S_OAUTH2"
+ ]
+ },
+ "val": {
+ "type": "object",
+ "properties": {
+ "subdomain": {
+ "type": "string"
+ },
+ "your-domain": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "shop": {
+ "type": "string"
+ },
+ "account_url": {
+ "type": "string"
+ },
+ "COMPANYDOMAIN": {
+ "type": "string"
+ },
+ "extension": {
+ "type": "string"
+ },
+ "form_api_base_url": {
+ "type": "string"
+ },
+ "instanceEndpoint": {
+ "type": "string"
+ },
+ "api_url": {
+ "type": "string"
+ },
+ "borneo_dashboard_url": {
+ "type": "string"
+ },
+ "proxy_username": {
+ "type": "string"
+ },
+ "proxy_password": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "dc": {
+ "type": "string"
+ },
+ "site_name": {
+ "type": "string"
+ },
+ "instanceName": {
+ "type": "string"
+ },
+ "account_id": {
+ "type": "string"
+ },
+ "your_server": {
+ "type": "string"
+ },
+ "server_location": {
+ "type": "string"
+ },
+ "base_url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
+ ]
+ },
+ "oauth_token": {
+ "type": "string"
+ },
+ "authUri": {
+ "type": "string"
+ },
+ "oauth_token_secret": {
+ "type": "string"
+ },
+ "redirectUrl": {
+ "type": "string"
+ },
+ "callbackUrl": {
+ "type": "string"
+ },
+ "oauth_verifier": {
+ "type": "string"
+ },
+ "consumer_key": {
+ "type": "string"
+ },
+ "callback_url": {
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "error_description": {
+ "type": "string"
+ },
+ "expired_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "authScheme",
+ "val"
+ ],
+ "additionalProperties": true
},
- "version": {
+ "status": {
"type": "string",
"enum": [
- "V1",
- "V2",
- "V3"
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
],
- "description": "Webhook payload version"
- },
- "enabled_events": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Subscribed event types"
+ "description": "DEPRECATED: This field will be removed in a future version",
+ "deprecated": true
},
- "secret": {
+ "redirect_url": {
"type": "string",
- "description": "Signing secret for HMAC verification"
+ "nullable": true,
+ "description": "DEPRECATED: This field will be removed in a future version",
+ "deprecated": true
},
- "created_at": {
+ "redirect_uri": {
"type": "string",
- "description": "ISO 8601 timestamp"
+ "nullable": true,
+ "description": "DEPRECATED: This field will be removed in a future version",
+ "deprecated": true
},
- "updated_at": {
- "type": "string",
- "description": "ISO 8601 timestamp"
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "uuid": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The uuid of the connected account"
+ },
+ "authConfigUuid": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The uuid of the auth config"
+ }
+ },
+ "required": [
+ "uuid",
+ "authConfigUuid"
+ ],
+ "description": "DEPRECATED: This field will be removed in a future version. Please use id and auth_config.id instead.",
+ "deprecated": true
}
},
"required": [
"id",
- "webhook_url",
- "version",
- "enabled_events",
- "secret",
- "created_at",
- "updated_at"
+ "connectionData",
+ "status",
+ "redirect_url",
+ "redirect_uri",
+ "deprecated"
]
}
}
}
},
"400": {
- "description": "Invalid request",
+ "description": "Bad request",
"content": {
"application/json": {
"schema": {
@@ -8530,8 +8034,8 @@
}
}
},
- "409": {
- "description": "Subscription already exists",
+ "404": {
+ "description": "Not found",
"content": {
"application/json": {
"schema": {
@@ -8549,154 +8053,9 @@
}
}
}
- }
- },
- "x-api-version": "3.1"
- },
- "get": {
- "summary": "List webhook subscriptions",
- "description": "Lists all webhook subscriptions for the authenticated project with pagination. Currently limited to one subscription per project.",
- "tags": [
- "Webhooks"
- ],
- "operationId": "getWebhookSubscriptions",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "number",
- "nullable": true
- },
- "required": false,
- "description": "Number of items per page, max allowed is 1000",
- "name": "limit",
- "in": "query"
- },
- {
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
- "name": "cursor",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "Webhook subscriptions retrieved",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "webhookSubscriptionId",
- "description": "Unique subscription ID"
- },
- "webhook_url": {
- "type": "string",
- "description": "Webhook destination URL"
- },
- "version": {
- "type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
- ],
- "description": "Webhook payload version"
- },
- "enabled_events": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Subscribed event types"
- },
- "secret": {
- "type": "string",
- "description": "Masked signing secret (full secret only on create/rotate)"
- },
- "created_at": {
- "type": "string",
- "description": "ISO 8601 timestamp"
- },
- "updated_at": {
- "type": "string",
- "description": "ISO 8601 timestamp"
- }
- },
- "required": [
- "id",
- "webhook_url",
- "version",
- "enabled_events",
- "secret",
- "created_at",
- "updated_at"
- ]
- }
- },
- "next_cursor": {
- "type": "string",
- "nullable": true
- },
- "total_pages": {
- "type": "number"
- },
- "current_page": {
- "type": "number"
- },
- "total_items": {
- "type": "number"
- }
- },
- "required": [
- "items",
- "total_pages",
- "current_page",
- "total_items"
- ]
- }
- }
- }
- },
- "400": {
- "description": "Invalid pagination",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
},
- "500": {
- "description": "Internal server error",
+ "501": {
+ "description": "Not implemented",
"content": {
"application/json": {
"schema": {
@@ -8709,14 +8068,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/webhook_subscriptions/{id}": {
+ "/api/v3.1/connected_accounts/{nanoid}": {
"get": {
- "summary": "Get webhook subscription",
- "description": "Retrieves a webhook subscription by ID.",
+ "summary": "Get connected account details by ID",
+ "description": "Retrieves comprehensive details of a connected account, including authentication configuration, connection status, and all parameters needed for API requests.",
"tags": [
- "Webhooks"
+ "Connected Accounts"
],
- "operationId": "getWebhookSubscriptionsById",
+ "operationId": "getConnectedAccountsByNanoid",
"security": [
{
"ApiKeyAuth": []
@@ -8729,86 +8088,353 @@
{
"schema": {
"type": "string",
- "format": "webhookSubscriptionId",
- "description": "Webhook subscription ID"
+ "format": "connectedAccountId"
},
"required": true,
- "description": "Webhook subscription ID",
- "name": "id",
+ "description": "The unique identifier (nanoid) of the connected account",
+ "example": "ca_1a2b3c4d5e6f",
+ "name": "nanoid",
"in": "path"
}
],
"responses": {
"200": {
- "description": "Webhook subscription retrieved",
+ "description": "Successfully retrieved connected account details with all authentication parameters and connection status",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
+ "toolkit": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "The slug of the toolkit"
+ }
+ },
+ "required": [
+ "slug"
+ ]
+ },
+ "auth_config": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "authConfigId",
+ "description": "The id of the auth config"
+ },
+ "auth_scheme": {
+ "type": "string",
+ "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"
+ ],
+ "description": "the authScheme is part of the connection state use it there",
+ "deprecated": true
+ },
+ "is_composio_managed": {
+ "type": "boolean",
+ "description": "Whether the auth config is managed by Composio"
+ },
+ "is_disabled": {
+ "type": "boolean",
+ "description": "Whether the auth config is disabled"
+ },
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "uuid": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The uuid of the auth config"
+ }
+ },
+ "required": [
+ "uuid"
+ ],
+ "deprecated": true
+ }
+ },
+ "required": [
+ "id",
+ "auth_scheme",
+ "is_composio_managed",
+ "is_disabled"
+ ]
+ },
"id": {
"type": "string",
- "format": "webhookSubscriptionId",
- "description": "Unique subscription ID"
+ "format": "connectedAccountId",
+ "description": "The id of the connection"
},
- "webhook_url": {
+ "word_id": {
"type": "string",
- "description": "Webhook destination URL"
+ "nullable": true,
+ "description": "A short, token-friendly identifier for multi-account disambiguation, typically toolkit-prefixed with 1-2 words (e.g., \"gmail_red-castle\")"
},
- "version": {
+ "alias": {
"type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
- ],
- "description": "Webhook payload version"
+ "nullable": true,
+ "description": "A user-defined alias for the connected account"
},
- "enabled_events": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Subscribed event types"
+ "user_id": {
+ "type": "string",
+ "description": "This is deprecated, we will not be providing userId from this api anymore, you will only be able to read via userId not get it back",
+ "deprecated": true
},
- "secret": {
+ "status": {
"type": "string",
- "description": "Masked signing secret (full secret only on create/rotate)"
+ "enum": [
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
+ ],
+ "description": "The status of the connection"
},
"created_at": {
"type": "string",
- "description": "ISO 8601 timestamp"
+ "description": "The created at of the connection"
},
"updated_at": {
"type": "string",
- "description": "ISO 8601 timestamp"
+ "description": "The updated at of the connection"
+ },
+ "state": {
+ "description": "The state of the connection",
+ "type": "object",
+ "properties": {
+ "authScheme": {
+ "type": "string",
+ "enum": [
+ "OAUTH1",
+ "OAUTH2",
+ "API_KEY",
+ "BASIC",
+ "BEARER_TOKEN",
+ "GOOGLE_SERVICE_ACCOUNT",
+ "NO_AUTH",
+ "CALCOM_AUTH",
+ "BILLCOM_AUTH",
+ "BASIC_WITH_JWT",
+ "SERVICE_ACCOUNT",
+ "SAML",
+ "DCR_OAUTH",
+ "S2S_OAUTH2"
+ ]
+ },
+ "val": {
+ "type": "object",
+ "properties": {
+ "subdomain": {
+ "type": "string"
+ },
+ "your-domain": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "shop": {
+ "type": "string"
+ },
+ "account_url": {
+ "type": "string"
+ },
+ "COMPANYDOMAIN": {
+ "type": "string"
+ },
+ "extension": {
+ "type": "string"
+ },
+ "form_api_base_url": {
+ "type": "string"
+ },
+ "instanceEndpoint": {
+ "type": "string"
+ },
+ "api_url": {
+ "type": "string"
+ },
+ "borneo_dashboard_url": {
+ "type": "string"
+ },
+ "proxy_username": {
+ "type": "string"
+ },
+ "proxy_password": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "dc": {
+ "type": "string"
+ },
+ "site_name": {
+ "type": "string"
+ },
+ "instanceName": {
+ "type": "string"
+ },
+ "account_id": {
+ "type": "string"
+ },
+ "your_server": {
+ "type": "string"
+ },
+ "server_location": {
+ "type": "string"
+ },
+ "base_url": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string",
+ "enum": [
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
+ ]
+ },
+ "oauth_token": {
+ "type": "string"
+ },
+ "authUri": {
+ "type": "string"
+ },
+ "oauth_token_secret": {
+ "type": "string"
+ },
+ "redirectUrl": {
+ "type": "string"
+ },
+ "callbackUrl": {
+ "type": "string"
+ },
+ "oauth_verifier": {
+ "type": "string"
+ },
+ "consumer_key": {
+ "type": "string"
+ },
+ "callback_url": {
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "error_description": {
+ "type": "string"
+ },
+ "expired_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "authScheme",
+ "val"
+ ],
+ "additionalProperties": true
+ },
+ "data": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "This is deprecated, use `state` instead",
+ "deprecated": true
+ },
+ "status_reason": {
+ "type": "string",
+ "nullable": true,
+ "description": "The reason the connection status changed. Possible reasons: Connection initiation did not complete within 10 minutes, Permanent auth error during token refresh, Max auth failures reached, OAuth callback failed during token exchange, Connection status updated by user, Auth config is disabled"
+ },
+ "is_disabled": {
+ "type": "boolean",
+ "description": "Whether the connection is disabled"
+ },
+ "test_request_endpoint": {
+ "type": "string",
+ "description": "The endpoint to make test request for verification"
+ },
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "The labels of the connection"
+ },
+ "uuid": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The uuid of the connection"
+ }
+ },
+ "required": [
+ "labels",
+ "uuid"
+ ],
+ "deprecated": true
+ },
+ "params": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "The initialization data of the connection, including configuration parameters",
+ "deprecated": true
}
},
"required": [
+ "toolkit",
+ "auth_config",
"id",
- "webhook_url",
- "version",
- "enabled_events",
- "secret",
+ "word_id",
+ "alias",
+ "user_id",
+ "status",
"created_at",
- "updated_at"
+ "updated_at",
+ "state",
+ "data",
+ "status_reason",
+ "is_disabled",
+ "params"
]
}
}
}
},
- "401": {
- "description": "Unauthorized",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "Subscription not found",
+ "400": {
+ "description": "Bad request - Invalid nanoid format or other validation error",
"content": {
"application/json": {
"schema": {
@@ -8817,8 +8443,8 @@
}
}
},
- "500": {
- "description": "Internal server error",
+ "401": {
+ "description": "Unauthorized - Authentication failed",
"content": {
"application/json": {
"schema": {
@@ -8826,133 +8452,9 @@
}
}
}
- }
- },
- "x-api-version": "3.1"
- },
- "patch": {
- "summary": "Update webhook subscription",
- "description": "Updates a webhook subscription. At least one field must be provided.",
- "tags": [
- "Webhooks"
- ],
- "operationId": "patchWebhookSubscriptionsById",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "webhookSubscriptionId",
- "description": "Webhook subscription ID"
- },
- "required": true,
- "description": "Webhook subscription ID",
- "name": "id",
- "in": "path"
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "webhook_url": {
- "type": "string",
- "maxLength": 2048,
- "format": "uri",
- "description": "HTTPS URL to receive webhook events"
- },
- "enabled_events": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "minItems": 1,
- "description": "Array of event types to subscribe to"
- },
- "version": {
- "type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
- ],
- "description": "Webhook payload version"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Webhook subscription updated",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "format": "webhookSubscriptionId",
- "description": "Unique subscription ID"
- },
- "webhook_url": {
- "type": "string",
- "description": "Webhook destination URL"
- },
- "version": {
- "type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
- ],
- "description": "Webhook payload version"
- },
- "enabled_events": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Subscribed event types"
- },
- "secret": {
- "type": "string",
- "description": "Masked signing secret (full secret only on create/rotate)"
- },
- "created_at": {
- "type": "string",
- "description": "ISO 8601 timestamp"
- },
- "updated_at": {
- "type": "string",
- "description": "ISO 8601 timestamp"
- }
- },
- "required": [
- "id",
- "webhook_url",
- "version",
- "enabled_events",
- "secret",
- "created_at",
- "updated_at"
- ]
- }
- }
- }
},
- "400": {
- "description": "Invalid request",
+ "403": {
+ "description": "Forbidden - Insufficient permissions to access this connected account",
"content": {
"application/json": {
"schema": {
@@ -8961,8 +8463,8 @@
}
}
},
- "401": {
- "description": "Unauthorized",
+ "404": {
+ "description": "Not found - Connected account does not exist or was deleted",
"content": {
"application/json": {
"schema": {
@@ -8971,8 +8473,8 @@
}
}
},
- "404": {
- "description": "Subscription not found",
+ "500": {
+ "description": "Internal server error - Failed to retrieve connected account details",
"content": {
"application/json": {
"schema": {
@@ -8981,8 +8483,8 @@
}
}
},
- "500": {
- "description": "Internal server error",
+ "501": {
+ "description": "Not implemented - This operation is not supported for the requested connected account or authentication scheme",
"content": {
"application/json": {
"schema": {
@@ -8995,12 +8497,12 @@
"x-api-version": "3.1"
},
"delete": {
- "summary": "Delete webhook subscription",
- "description": "Permanently deletes a webhook subscription. This action cannot be undone.",
+ "summary": "Delete a connected account",
+ "description": "Soft-deletes a connected account by marking it as deleted in the database. This prevents the account from being used for API calls but preserves the record for audit purposes.",
"tags": [
- "Webhooks"
+ "Connected Accounts"
],
- "operationId": "deleteWebhookSubscriptionsById",
+ "operationId": "deleteConnectedAccountsByNanoid",
"security": [
{
"ApiKeyAuth": []
@@ -9013,36 +8515,51 @@
{
"schema": {
"type": "string",
- "format": "webhookSubscriptionId",
- "description": "Webhook subscription ID"
+ "format": "connectedAccountId"
},
"required": true,
- "description": "Webhook subscription ID",
- "name": "id",
+ "description": "The unique identifier (nanoid) of the connected account",
+ "example": "ca_1a2b3c4d5e6f",
+ "name": "nanoid",
"in": "path"
}
],
"responses": {
"200": {
- "description": "Webhook subscription deleted",
+ "description": "Successfully deleted the connected account. The account is marked as deleted but retained in the database for historical purposes.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
- "type": "boolean"
+ "type": "boolean",
+ "description": "Indicates whether the connected account was successfully deleted"
}
},
"required": [
"success"
- ]
+ ],
+ "description": "Response returned after successfully deleting a connected account",
+ "example": {
+ "success": true
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request - Invalid nanoid format or other validation error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
- "description": "Unauthorized",
+ "description": "Unauthorized - Authentication failed",
"content": {
"application/json": {
"schema": {
@@ -9051,8 +8568,8 @@
}
}
},
- "404": {
- "description": "Subscription not found",
+ "403": {
+ "description": "Forbidden - Insufficient permissions to delete this connected account",
"content": {
"application/json": {
"schema": {
@@ -9061,8 +8578,19 @@
}
}
},
+ "404": {
+ "description": "Connected account not found - The specified account does not exist or has already been deleted",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {}
+ }
+ }
+ }
+ },
"500": {
- "description": "Internal server error",
+ "description": "Internal server error - Failed to delete the connected account due to a server-side issue",
"content": {
"application/json": {
"schema": {
@@ -9073,16 +8601,14 @@
}
},
"x-api-version": "3.1"
- }
- },
- "/api/v3.1/webhook_subscriptions/{id}/rotate_secret": {
- "post": {
- "summary": "Rotate webhook secret",
- "description": "Generates a new signing secret for the webhook subscription. The new secret is returned only in this response.",
+ },
+ "patch": {
+ "summary": "Update a connected account",
+ "description": "Update a connected account. Supports updating the alias and/or credentials. Only specified fields will be updated. Set a credential field to null to remove it. Alias must be unique within the same project, entity, and toolkit scope.",
"tags": [
- "Webhooks"
+ "Connected Accounts"
],
- "operationId": "postWebhookSubscriptionsByIdRotateSecret",
+ "operationId": "patchConnectedAccountsByNanoid",
"security": [
{
"ApiKeyAuth": []
@@ -9095,43 +8621,83 @@
{
"schema": {
"type": "string",
- "format": "webhookSubscriptionId",
- "description": "Webhook subscription ID"
+ "format": "connectedAccountId"
},
"required": true,
- "description": "Webhook subscription ID",
- "name": "id",
+ "description": "The unique identifier (nanoid) of the connected account",
+ "example": "ca_1a2b3c4d5e6f",
+ "name": "nanoid",
"in": "path"
}
- ],
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PatchConnectedAccountBody"
+ },
+ "examples": {
+ "credentials": {
+ "summary": "Update credentials",
+ "value": {
+ "connection": {
+ "state": {
+ "authScheme": "BEARER_TOKEN",
+ "val": {
+ "token": "new_access_token"
+ }
+ }
+ }
+ }
+ },
+ "alias": {
+ "summary": "Update alias",
+ "value": {
+ "alias": "work-gmail"
+ }
+ }
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Webhook secret rotated",
+ "description": "Successfully updated connected account",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
+ "success": {
+ "type": "boolean",
+ "description": "Whether the update was successful"
+ },
"id": {
"type": "string",
- "format": "webhookSubscriptionId",
- "description": "Subscription ID"
+ "format": "connectedAccountId",
+ "description": "The unique identifier of the updated connected account"
},
- "secret": {
+ "status": {
"type": "string",
- "description": "New signing secret"
+ "description": "The current status of the connected account after the update (ACTIVE, EXPIRED, INACTIVE, etc.)"
}
},
"required": [
+ "success",
"id",
- "secret"
- ]
+ "status"
+ ],
+ "example": {
+ "success": true,
+ "id": "ca_1a2b3c4d5e6f",
+ "status": "ACTIVE"
+ }
}
}
}
},
- "401": {
- "description": "Unauthorized",
+ "400": {
+ "description": "Bad request - Invalid nanoid, duplicate alias, or invalid credential values",
"content": {
"application/json": {
"schema": {
@@ -9140,8 +8706,8 @@
}
}
},
- "404": {
- "description": "Subscription not found",
+ "401": {
+ "description": "Unauthorized - Authentication failed",
"content": {
"application/json": {
"schema": {
@@ -9150,8 +8716,8 @@
}
}
},
- "500": {
- "description": "Internal server error",
+ "403": {
+ "description": "Forbidden - Insufficient permissions to update this connected account",
"content": {
"application/json": {
"schema": {
@@ -9159,78 +8725,9 @@
}
}
}
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/webhook_subscriptions/event_types": {
- "get": {
- "summary": "List available event types",
- "description": "Returns all event types that can be subscribed to, along with their supported webhook versions.",
- "tags": [
- "Webhooks"
- ],
- "operationId": "getWebhookSubscriptionsEventTypes",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "responses": {
- "200": {
- "description": "Event types retrieved",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "event_type": {
- "type": "string",
- "description": "Event type identifier"
- },
- "description": {
- "type": "string",
- "description": "Human-readable description of the event"
- },
- "supported_versions": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "V1",
- "V2",
- "V3"
- ]
- },
- "description": "Webhook versions that support this event"
- }
- },
- "required": [
- "event_type",
- "description",
- "supported_versions"
- ]
- }
- }
- },
- "required": [
- "items"
- ]
- }
- }
- }
},
- "401": {
- "description": "Unauthorized",
+ "404": {
+ "description": "Not found - Connected account does not exist or was deleted",
"content": {
"application/json": {
"schema": {
@@ -9240,7 +8737,7 @@
}
},
"500": {
- "description": "Internal server error",
+ "description": "Internal server error - Failed to update connected account",
"content": {
"application/json": {
"schema": {
@@ -9253,14 +8750,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/toolkits": {
- "get": {
- "summary": "List available toolkits",
- "description": "Retrieves a comprehensive list of toolkits of their latest versions that are available to the authenticated project. Toolkits represent integration points with external services and applications, each containing a collection of tools and triggers. This endpoint supports filtering by category and management type, as well as different sorting options.",
+ "/api/v3.1/connected_accounts/{nanoId}/status": {
+ "patch": {
+ "summary": "Enable or disable a connected account",
+ "description": "Updates the status of a connected account to either enabled (active) or disabled (inactive). Disabled accounts cannot be used for API calls but remain in the database.",
"tags": [
- "Toolkits"
+ "Connected Accounts"
],
- "operationId": "getToolkits",
+ "operationId": "patchConnectedAccountsByNanoIdStatus",
"security": [
{
"ApiKeyAuth": []
@@ -9273,278 +8770,62 @@
{
"schema": {
"type": "string",
- "description": "Category ID or name to filter toolkits by",
- "example": "productivity"
- },
- "required": false,
- "description": "Filter toolkits by category",
- "name": "category",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "enum": [
- "composio",
- "all",
- "project"
- ],
- "description": "Entity responsible for managing the toolkits"
- },
- "required": false,
- "description": "Filter toolkits by who manages them",
- "name": "managed_by",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "enum": [
- "usage",
- "alphabetically"
- ],
- "description": "Determines how toolkits should be sorted in the response"
- },
- "required": false,
- "description": "Sort order for returned toolkits",
- "name": "sort_by",
- "in": "query"
- },
- {
- "schema": {
- "type": "boolean",
- "nullable": true,
- "default": false,
- "description": "Include deprecated toolkits in the response",
- "example": true
- },
- "required": false,
- "description": "Include deprecated toolkits in the response",
- "name": "include_deprecated",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "Search query to filter toolkits by name, slug, or description (minimum 3 characters)",
- "example": "gmail"
- },
- "required": false,
- "description": "Search query to filter toolkits by name, slug, or description",
- "name": "search",
- "in": "query"
- },
- {
- "schema": {
- "type": "number",
- "nullable": true
- },
- "required": false,
- "description": "Number of items per page, max allowed is 1000",
- "name": "limit",
- "in": "query"
- },
- {
- "schema": {
- "type": "string"
+ "format": "connectedAccountId"
},
- "required": false,
- "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
- "name": "cursor",
- "in": "query"
+ "required": true,
+ "description": "The unique identifier of the connected account",
+ "example": "ca_1a2b3c4d5e6f",
+ "name": "nanoId",
+ "in": "path"
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "description": "Set to true to enable the account or false to disable it"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "example": {
+ "enabled": true
+ }
+ }
+ }
}
- ],
+ },
"responses": {
"200": {
- "description": "Toolkits retrieved successfully. Returns a paginated list of available toolkits with detailed metadata.",
+ "description": "Successfully updated the connected account status. If enabled=true, the account status is set to ACTIVE; if enabled=false, the status is set to INACTIVE.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "items": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "URL-friendly unique identifier for the toolkit",
- "example": "github"
- },
- "name": {
- "type": "string",
- "description": "Human-readable name of the toolkit",
- "example": "GitHub"
- },
- "auth_schemes": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of authentication methods supported by this toolkit",
- "example": [
- "oauth2",
- "api_key"
- ]
- },
- "composio_managed_auth_schemes": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of authentication methods that Composio manages for this toolkit",
- "example": [
- "oauth2"
- ]
- },
- "is_local_toolkit": {
- "type": "boolean",
- "description": "DEPRECATED: This field is no longer meaningful and will always return false. It was previously used to indicate if a toolkit is specific to the current project.",
- "deprecated": true,
- "example": false
- },
- "no_auth": {
- "type": "boolean",
- "description": "When true, this toolkit can be used without authentication",
- "example": false
- },
- "auth_guide_url": {
- "type": "string",
- "nullable": true,
- "description": "URL to a guide page with authentication setup instructions for this toolkit",
- "example": "https://composio.dev/auth/github"
- },
- "deprecated": {
- "$ref": "#/components/schemas/DeprecatedToolkitInfo"
- },
- "meta": {
- "type": "object",
- "properties": {
- "created_at": {
- "type": "string",
- "description": "Creation date and time of the toolkit",
- "example": "2023-01-15T09:30:00.000Z"
- },
- "updated_at": {
- "type": "string",
- "description": "Last modification date and time of the toolkit",
- "example": "2023-05-20T14:45:00.000Z"
- },
- "description": {
- "type": "string",
- "description": "Human-readable description explaining the toolkit's purpose and functionality",
- "example": "Integrate with GitHub repositories, issues, pull requests, and more."
- },
- "logo": {
- "type": "string",
- "description": "Image URL for the toolkit's branding",
- "example": "https://assets.composio.dev/logos/github.png"
- },
- "app_url": {
- "type": "string",
- "nullable": true,
- "description": "Link to the toolkit's main application or service website",
- "example": "https://github.com"
- },
- "categories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "Category identifier",
- "example": "developer-tools"
- },
- "name": {
- "type": "string",
- "description": "Human-readable category name",
- "example": "Developer Tools"
- }
- },
- "required": [
- "id",
- "name"
- ]
- },
- "description": "List of categories associated with this toolkit",
- "example": [
- {
- "id": "developer-tools",
- "name": "Developer Tools"
- },
- {
- "id": "productivity",
- "name": "Productivity"
- }
- ]
- },
- "triggers_count": {
- "type": "number",
- "description": "Count of available triggers in this toolkit",
- "example": 5
- },
- "tools_count": {
- "type": "number",
- "description": "Count of available tools in this toolkit",
- "example": 12
- },
- "version": {
- "type": "string",
- "description": "Version of the toolkit",
- "example": "20250905_00"
- }
- },
- "required": [
- "created_at",
- "updated_at",
- "description",
- "logo",
- "categories",
- "triggers_count",
- "tools_count",
- "version"
- ],
- "description": "Additional metadata about the toolkit"
- }
- },
- "required": [
- "slug",
- "name",
- "is_local_toolkit",
- "deprecated",
- "meta"
- ],
- "description": "Detailed information about a toolkit"
- }
- },
- "next_cursor": {
- "type": "string",
- "nullable": true
- },
- "total_pages": {
- "type": "number"
- },
- "current_page": {
- "type": "number"
- },
- "total_items": {
- "type": "number"
+ "success": {
+ "type": "boolean",
+ "description": "Indicates whether the connected account status was successfully updated"
}
},
"required": [
- "items",
- "total_pages",
- "current_page",
- "total_items"
- ]
+ "success"
+ ],
+ "description": "Response returned after successfully updating a connected account status",
+ "example": {
+ "success": true
+ }
}
}
}
},
"400": {
- "description": "Bad request. The query parameters may be invalid or in an incorrect format.",
+ "description": "Bad request - Invalid nanoid format or invalid request body",
"content": {
"application/json": {
"schema": {
@@ -9554,7 +8835,7 @@
}
},
"401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "description": "Unauthorized - Authentication failed",
"content": {
"application/json": {
"schema": {
@@ -9563,8 +8844,8 @@
}
}
},
- "404": {
- "description": "Not found. The toolkits you are looking for do not exist.",
+ "403": {
+ "description": "Forbidden - Insufficient permissions to update this connected account",
"content": {
"application/json": {
"schema": {
@@ -9573,8 +8854,19 @@
}
}
},
+ "404": {
+ "description": "Connected account not found - The specified account does not exist or has been deleted",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {}
+ }
+ }
+ }
+ },
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error - Failed to update the connected account status due to a server-side issue",
"content": {
"application/json": {
"schema": {
@@ -9587,14 +8879,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/toolkits/categories": {
- "get": {
- "summary": "List toolkit categories",
- "description": "Retrieves a comprehensive list of all available toolkit categories from their latest versions. These categories can be used to filter toolkits by type or purpose when using the toolkit listing endpoint. Categories help organize toolkits into logical groups based on their functionality or industry focus.",
+ "/api/v3.1/connected_accounts/{nanoid}/refresh": {
+ "post": {
+ "summary": "Refresh authentication for a connected account",
+ "description": "Initiates a new authentication flow for a connected account when credentials have expired or become invalid. This may generate a new authentication URL for OAuth flows or refresh tokens for other auth schemes.",
"tags": [
- "Toolkits"
+ "Connected Accounts"
],
- "operationId": "getToolkitsCategories",
+ "operationId": "postConnectedAccountsByNanoidRefresh",
"security": [
{
"ApiKeyAuth": []
@@ -9602,64 +8894,97 @@
{
"UserApiKeyAuth": []
}
- ],
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "format": "connectedAccountId"
+ },
+ "required": true,
+ "description": "The unique identifier of the connected account",
+ "example": "ca_1a2b3c4d5e6f",
+ "name": "nanoid",
+ "in": "path"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "format": "uri"
+ },
+ "required": false,
+ "name": "redirect_url",
+ "in": "query"
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "redirect_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "validate_credentials": {
+ "type": "boolean",
+ "default": false,
+ "description": "[EXPERIMENTAL] Whether to validate the provided credentials, validates only for API Key Auth scheme",
+ "x-experimental": true
+ }
+ }
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successfully retrieved a paginated list of all available toolkit categories with their identifiers and display names.",
+ "description": "Successfully refreshed the connected account authentication. For OAuth flows, a new redirect URL is provided.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "items": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "Display name of the toolkit category",
- "example": "Developer Tools"
- },
- "id": {
- "type": "string",
- "description": "URL-friendly unique identifier for the category, used for filtering toolkits",
- "example": "developer-tools"
- }
- },
- "required": [
- "name",
- "id"
- ],
- "description": "Information about a single toolkit category"
- }
- },
- "next_cursor": {
+ "id": {
"type": "string",
- "nullable": true
- },
- "total_pages": {
- "type": "number"
+ "description": "The unique identifier of the connected account"
},
- "current_page": {
- "type": "number"
+ "status": {
+ "type": "string",
+ "enum": [
+ "INITIALIZING",
+ "INITIATED",
+ "ACTIVE",
+ "FAILED",
+ "EXPIRED",
+ "INACTIVE"
+ ],
+ "description": "The current status of the connected account (e.g., active, pending, failed)"
},
- "total_items": {
- "type": "number"
+ "redirect_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "The URL to which the user should be redirected to complete the authentication process (null for auth schemes that do not require redirection)"
}
},
"required": [
- "items",
- "total_pages",
- "current_page",
- "total_items"
- ]
+ "id",
+ "status",
+ "redirect_url"
+ ],
+ "description": "Response schema for a refreshed connected account authentication",
+ "example": {
+ "id": "ca_1a2b3c4d5e6f",
+ "status": "ACTIVE",
+ "redirect_url": "https://app.example.com/oauth/callback"
+ }
}
}
}
},
"400": {
- "description": "Bad request. The request may be invalid or in an incorrect format.",
+ "description": "Bad request - Invalid nanoid format or the account cannot be refreshed in its current state",
"content": {
"application/json": {
"schema": {
@@ -9669,7 +8994,17 @@
}
},
"401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "description": "Unauthorized - Authentication failed",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden - Insufficient permissions to refresh this connected account",
"content": {
"application/json": {
"schema": {
@@ -9679,7 +9014,7 @@
}
},
"404": {
- "description": "Not found. The requested resource was not found.",
+ "description": "Not found - Connected account does not exist or was deleted",
"content": {
"application/json": {
"schema": {
@@ -9689,7 +9024,17 @@
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error - Failed to refresh the connected account authentication",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "501": {
+ "description": "Not implemented - This operation is not supported for the requested connected account or authentication scheme",
"content": {
"application/json": {
"schema": {
@@ -9702,14 +9047,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/toolkits/{slug}": {
- "get": {
- "summary": "Get toolkit by slug",
- "description": "Retrieves comprehensive information about a specific toolkit using its unique slug identifier. This endpoint provides detailed metadata, authentication configuration options, and feature counts for the requested toolkit.",
+ "/api/v3.1/connected_accounts/link": {
+ "post": {
+ "summary": "Create a new auth link session",
+ "description": "Creates a new authentication link session that users can use to connect their accounts",
"tags": [
- "Toolkits"
+ "Connected Accounts"
],
- "operationId": "getToolkitsBySlug",
+ "operationId": "postConnectedAccountsLink",
"security": [
{
"ApiKeyAuth": []
@@ -9718,466 +9063,606 @@
"UserApiKeyAuth": []
}
],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "description": "The unique slug identifier of the toolkit to retrieve",
- "example": "github"
- },
- "required": true,
- "description": "Toolkit slug identifier",
- "name": "slug",
- "in": "path"
- },
- {
- "schema": {
- "type": "string",
- "default": "latest",
- "description": "Version of the toolkit",
- "example": "20250905_00"
- },
- "required": false,
- "description": "Version of the toolkit",
- "name": "version",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "Successfully retrieved detailed information about the requested toolkit, including authentication options, metadata, and feature counts.",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "URL-friendly unique identifier for the toolkit",
- "example": "github"
- },
- "name": {
- "type": "string",
- "description": "Human-readable name of the toolkit",
- "example": "GitHub"
- },
- "enabled": {
- "type": "boolean",
- "description": "Indicates if this toolkit is currently enabled and available for use",
- "example": true
- },
- "composio_managed_auth_schemes": {
- "type": "array",
- "items": {
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "auth_config_id": {
+ "type": "string",
+ "format": "authConfigId",
+ "description": "The auth config id to create a link for"
+ },
+ "user_id": {
+ "type": "string",
+ "minLength": 1,
+ "description": "The user id to create a link for"
+ },
+ "alias": {
+ "type": "string",
+ "description": "A human-readable alias for this connected account. Must be unique per entity and toolkit within the project."
+ },
+ "callback_url": {
+ "type": "string",
+ "description": "The callback url to create a link for"
+ },
+ "connection_data": {
+ "description": "Optional data to pre-fill connection fields with default values",
+ "type": "object",
+ "properties": {
+ "subdomain": {
+ "type": "string"
+ },
+ "your-domain": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "shop": {
+ "type": "string"
+ },
+ "account_url": {
+ "type": "string"
+ },
+ "COMPANYDOMAIN": {
+ "type": "string"
+ },
+ "extension": {
+ "type": "string"
+ },
+ "form_api_base_url": {
+ "type": "string"
+ },
+ "instanceEndpoint": {
+ "type": "string"
+ },
+ "api_url": {
+ "type": "string"
+ },
+ "borneo_dashboard_url": {
+ "type": "string"
+ },
+ "proxy_username": {
+ "type": "string"
+ },
+ "proxy_password": {
+ "type": "string"
+ },
+ "domain": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ },
+ "dc": {
+ "type": "string"
+ },
+ "site_name": {
+ "type": "string"
+ },
+ "instanceName": {
+ "type": "string"
+ },
+ "account_id": {
+ "type": "string"
+ },
+ "your_server": {
+ "type": "string"
+ },
+ "server_location": {
"type": "string"
},
- "description": "List of authentication methods that Composio manages for this toolkit",
- "example": [
- "oauth2"
- ]
- },
- "is_local_toolkit": {
- "type": "boolean",
- "description": "DEPRECATED: This field is no longer meaningful and will always return false. It was previously used to indicate if a toolkit is specific to the current project.",
- "deprecated": true,
- "example": false
- },
- "auth_config_details": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "mode": {
- "type": "string",
- "description": "The type of authentication mode (e.g., oauth2, basic_auth, api_key)",
- "example": "oauth2"
- },
- "fields": {
- "type": "object",
- "properties": {
- "auth_config_creation": {
- "type": "object",
- "properties": {
- "required": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- },
- "default": {
- "type": "string",
- "nullable": true
- },
- "type": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "legacy_template_name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "displayName",
- "type",
- "description",
- "required"
- ]
- }
- },
- "optional": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- },
- "default": {
- "type": "string",
- "nullable": true
- },
- "type": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "legacy_template_name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "displayName",
- "type",
- "description",
- "required"
- ]
- }
- }
- },
- "required": [
- "required",
- "optional"
- ],
- "description": "Form fields needed when creating an authentication configuration"
- },
- "connected_account_initiation": {
- "type": "object",
- "properties": {
- "required": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- },
- "default": {
- "type": "string",
- "nullable": true
- },
- "type": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "legacy_template_name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "displayName",
- "type",
- "description",
- "required"
- ]
- }
- },
- "optional": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- },
- "default": {
- "type": "string",
- "nullable": true
- },
- "type": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "legacy_template_name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "displayName",
- "type",
- "description",
- "required"
- ]
- }
- }
- },
- "required": [
- "required",
- "optional"
- ],
- "description": "Form fields needed when connecting a user account with this authentication method"
- }
- },
- "required": [
- "auth_config_creation",
- "connected_account_initiation"
- ],
- "description": "Field groups required for different authentication stages"
+ "base_url": {
+ "type": "string"
+ },
+ "oauth_token": {
+ "type": "string"
+ },
+ "authUri": {
+ "type": "string"
+ },
+ "oauth_token_secret": {
+ "type": "string"
+ },
+ "redirectUrl": {
+ "type": "string"
+ },
+ "callbackUrl": {
+ "type": "string"
+ },
+ "oauth_verifier": {
+ "type": "string"
+ },
+ "consumer_key": {
+ "type": "string"
+ },
+ "callback_url": {
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "error_description": {
+ "type": "string"
+ },
+ "expired_at": {
+ "type": "string"
+ },
+ "state_prefix": {
+ "type": "string",
+ "maxLength": 40,
+ "description": "The oauth2 state prefix for the connection"
+ },
+ "long_redirect_url": {
+ "type": "boolean",
+ "description": "Whether to return the redirect url without shortening"
+ },
+ "code_verifier": {
+ "type": "string"
+ },
+ "finalRedirectUri": {
+ "type": "string"
+ },
+ "webhook_signature": {
+ "type": "string"
+ },
+ "access_token": {
+ "type": "string"
+ },
+ "id_token": {
+ "type": "string"
+ },
+ "token_type": {
+ "type": "string"
+ },
+ "refresh_token": {
+ "type": "string",
+ "nullable": true
+ },
+ "expires_in": {
+ "anyOf": [
+ {
+ "type": "number"
},
- "proxy": {
- "type": "object",
- "properties": {
- "base_url": {
- "type": "string",
- "description": "URL to which authentication requests will be proxied",
- "example": "https://auth.example.com/proxy"
- }
- },
- "required": [
- "base_url"
- ],
- "description": "Configuration for proxying authentication requests to external services"
+ {
+ "type": "string"
},
- "name": {
- "type": "string",
- "description": "Display name for this authentication method",
- "example": "OAuth 2.0"
+ {
+ "nullable": true,
+ "type": "object"
+ }
+ ]
+ },
+ "scope": {
+ "anyOf": [
+ {
+ "type": "string"
},
- "auth_hint_url": {
- "type": "string",
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
"nullable": true,
- "description": "URL to a page where users can obtain or configure credentials for this authentication method",
- "example": "https://github.com/settings/tokens"
+ "type": "object"
+ }
+ ]
+ },
+ "authed_user": {
+ "type": "object",
+ "properties": {
+ "access_token": {
+ "type": "string"
},
- "deprecated_auth_provider_details": {
- "type": "object",
- "properties": {
- "authorization_url": {
- "type": "string"
- },
- "token_url": {
- "type": "string"
- }
- },
- "description": "Authentication URL fields for OAuth 2.0 and OAuth 1.0. We don't recommend using this field for authentication and might break post Aug 31 2025.",
- "deprecated": true
+ "scope": {
+ "type": "string"
}
},
- "required": [
- "mode",
- "fields",
- "name"
- ],
- "description": "Detailed configuration for an authentication method"
+ "description": "for slack user scopes"
},
- "description": "Complete authentication configuration details for each supported auth method"
+ "generic_api_key": {
+ "type": "string"
+ },
+ "api_key": {
+ "type": "string"
+ },
+ "bearer_token": {
+ "type": "string"
+ },
+ "basic_encoded": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ },
+ "composio_link_redirect_url": {
+ "type": "string"
+ },
+ "credentials_json": {
+ "type": "string"
+ },
+ "sessionId": {
+ "type": "string"
+ },
+ "devKey": {
+ "type": "string"
+ },
+ "application_id": {
+ "type": "string"
+ },
+ "installation_id": {
+ "type": "string"
+ },
+ "private_key": {
+ "type": "string"
+ },
+ "client_id": {
+ "type": "string",
+ "description": "Dynamically registered client ID"
+ },
+ "client_secret": {
+ "type": "string",
+ "description": "Dynamically registered client secret"
+ },
+ "client_id_issued_at": {
+ "type": "number"
+ },
+ "client_secret_expires_at": {
+ "type": "number"
+ },
+ "expires_at": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "auth_config_id",
+ "user_id"
+ ]
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "Successfully created auth link",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "link_token": {
+ "type": "string",
+ "description": "The generated link token for the auth session"
+ },
+ "redirect_url": {
+ "type": "string",
+ "description": "The redirect URI to send users to for authentication"
+ },
+ "expires_at": {
+ "type": "string",
+ "description": "ISO timestamp when the link expires"
+ },
+ "connected_account_id": {
+ "type": "string",
+ "format": "connectedAccountId",
+ "description": "The connected account ID that was created"
+ }
+ },
+ "required": [
+ "link_token",
+ "redirect_url",
+ "expires_at",
+ "connected_account_id"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Auth config not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Unprocessable entity",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "501": {
+ "description": "Not implemented",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/org/project/config": {
+ "get": {
+ "summary": "Get project configuration",
+ "description": "Retrieves the current project configuration including 2FA settings.",
+ "tags": [
+ "Projects"
+ ],
+ "operationId": "getOrgProjectConfig",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Project configuration retrieved successfully.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "is_2FA_enabled": {
+ "type": "boolean"
},
- "auth_guide_url": {
- "type": "string",
- "nullable": true,
- "description": "URL to a guide page with authentication setup instructions for this toolkit",
- "example": "https://composio.dev/auth/github"
+ "logo_url": {
+ "type": "string"
},
- "base_url": {
+ "display_name": {
+ "type": "string"
+ },
+ "mask_secret_keys_in_connected_account": {
+ "type": "boolean"
+ },
+ "log_visibility_setting": {
"type": "string",
- "description": "If evaluation of base URL needs some connection info (like shopify), please create the connection and get the base URL from there",
- "example": "https://api.github.com"
+ "enum": [
+ "show_all",
+ "dont_store_data"
+ ]
},
- "meta": {
- "type": "object",
- "properties": {
- "created_at": {
- "type": "string",
- "description": "Creation date and time of the toolkit",
- "example": "2023-01-15T09:30:00.000Z"
- },
- "updated_at": {
- "type": "string",
- "description": "Last modification date and time of the toolkit",
- "example": "2023-05-20T14:45:00.000Z"
- },
- "description": {
- "type": "string",
- "description": "Human-readable description explaining the toolkit's purpose and functionality",
- "example": "Integrate with GitHub repositories, issues, pull requests, and more."
- },
- "logo": {
- "type": "string",
- "description": "Image URL for the toolkit's branding",
- "example": "https://assets.composio.dev/logos/github.png"
- },
- "app_url": {
- "type": "string",
- "nullable": true,
- "description": "Link to the toolkit's main application or service website",
- "example": "https://github.com"
- },
- "categories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "Human-readable category name",
- "example": "Developer Tools"
- },
- "slug": {
- "type": "string",
- "description": "URL-friendly identifier for the category",
- "example": "developer-tools"
- }
- },
- "required": [
- "name",
- "slug"
- ]
- },
- "description": "List of categories associated with this toolkit",
- "example": [
- {
- "name": "Developer Tools",
- "slug": "developer-tools"
- },
- {
- "name": "Productivity",
- "slug": "productivity"
- }
- ]
- },
- "triggers_count": {
- "type": "number",
- "description": "Count of available triggers in this toolkit",
- "example": 5
- },
- "tools_count": {
- "type": "number",
- "description": "Count of available tools in this toolkit",
- "example": 12
- },
- "version": {
- "type": "string",
- "description": "Version of the toolkit",
- "example": "20250905_00"
- },
- "available_versions": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Available versions of the toolkit",
- "example": [
- "20250905_00",
- "20250906_00"
- ]
- }
- },
- "required": [
- "created_at",
- "updated_at",
- "description",
- "logo",
- "categories",
- "triggers_count",
- "tools_count",
- "version",
- "available_versions"
- ],
- "description": "Comprehensive metadata for the toolkit including dates, descriptions, and statistics"
+ "require_mcp_api_key": {
+ "type": "boolean"
+ },
+ "is_composio_link_enabled_for_managed_auth": {
+ "type": "boolean",
+ "description": "Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key."
+ },
+ "signed_url_file_expiry_in_seconds": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 86400
+ }
+ },
+ "required": [
+ "is_2FA_enabled",
+ "mask_secret_keys_in_connected_account",
+ "log_visibility_setting"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request. The project configuration data may be invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Project not found. The specified project does not exist or has been deleted.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ },
+ "patch": {
+ "summary": "Update project configuration",
+ "description": "Updates the project configuration settings.",
+ "tags": [
+ "Projects"
+ ],
+ "operationId": "patchOrgProjectConfig",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "is_2FA_enabled": {
+ "type": "boolean"
+ },
+ "logo_url": {
+ "type": "string"
+ },
+ "display_name": {
+ "type": "string"
+ },
+ "mask_secret_keys_in_connected_account": {
+ "type": "boolean"
+ },
+ "log_visibility_setting": {
+ "type": "string",
+ "enum": [
+ "show_all",
+ "dont_store_data"
+ ]
+ },
+ "require_mcp_api_key": {
+ "type": "boolean"
+ },
+ "is_composio_link_enabled_for_managed_auth": {
+ "type": "boolean",
+ "description": "Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key."
+ },
+ "signed_url_file_expiry_in_seconds": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 86400
+ }
+ }
+ },
+ "examples": {
+ "Enable 2FA": {
+ "value": {
+ "is_2FA_enabled": true
+ }
+ },
+ "Disable 2FA": {
+ "value": {
+ "is_2FA_enabled": false
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Project configuration updated successfully.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "is_2FA_enabled": {
+ "type": "boolean"
},
- "get_current_user_endpoint": {
- "type": "string",
- "description": "Endpoint to get the current user"
+ "logo_url": {
+ "type": "string"
},
- "get_current_user_endpoint_method": {
- "type": "string",
- "description": "HTTP method to use when calling the get current user endpoint (e.g., GET, POST)",
- "example": "GET"
+ "display_name": {
+ "type": "string"
},
- "deprecated": {
- "type": "object",
- "properties": {
- "toolkitId": {
- "type": "string"
- },
- "getCurrentUserEndpoint": {
- "type": "string"
- },
- "rawProxyInfoByAuthSchemes": {
- "type": "array",
- "items": {
- "type": "object",
- "additionalProperties": {}
- }
- }
- },
- "required": [
- "toolkitId",
- "rawProxyInfoByAuthSchemes"
+ "mask_secret_keys_in_connected_account": {
+ "type": "boolean"
+ },
+ "log_visibility_setting": {
+ "type": "string",
+ "enum": [
+ "show_all",
+ "dont_store_data"
]
+ },
+ "require_mcp_api_key": {
+ "type": "boolean"
+ },
+ "is_composio_link_enabled_for_managed_auth": {
+ "type": "boolean",
+ "description": "Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key."
+ },
+ "signed_url_file_expiry_in_seconds": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 86400
}
},
"required": [
- "slug",
- "name",
- "enabled",
- "is_local_toolkit",
- "meta",
- "deprecated"
- ],
- "description": "Detailed information about a single toolkit"
+ "is_2FA_enabled",
+ "mask_secret_keys_in_connected_account",
+ "log_visibility_setting"
+ ]
}
}
}
},
"400": {
- "description": "Bad request. The toolkit slug may be invalid or in an incorrect format.",
+ "description": "Bad request. The configuration data may be invalid or missing.",
"content": {
"application/json": {
"schema": {
@@ -10197,7 +9682,7 @@
}
},
"404": {
- "description": "Not found. The requested toolkit does not exist or is not accessible to the authenticated project.",
+ "description": "Project not found. The specified project does not exist or has been deleted.",
"content": {
"application/json": {
"schema": {
@@ -10207,7 +9692,7 @@
}
},
"500": {
- "description": "Internal server error. An unexpect ed error occurred while processing the request.",
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -10220,20 +9705,17 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/toolkits/multi": {
+ "/api/v3.1/org/owner/project/new": {
"post": {
- "summary": "Fetch multiple toolkits",
- "description": "Retrieves a comprehensive list of toolkits of their latest versions that are available to the authenticated project. Toolkits represent integration points with external services and applications, each containing a collection of tools and triggers. This endpoint supports filtering by category and management type, as well as different sorting options. You can optionally specify a list of toolkit slugs to fetch specific toolkits.",
+ "summary": "Create a new project",
+ "description": "Creates a new project within the authenticated user's organization using the specified name. Projects are isolated environments within your organization, each with their own API keys, webhook configurations, and resources. Use this endpoint to create additional projects for different environments (e.g., development, staging, production) or for separate applications.",
"tags": [
- "Toolkits"
+ "Projects"
],
- "operationId": "postToolkitsMulti",
+ "operationId": "postOrgOwnerProjectNew",
"security": [
{
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
+ "OrgApiKeyAuth": []
}
],
"requestBody": {
@@ -10242,216 +9724,294 @@
"schema": {
"type": "object",
"properties": {
- "toolkits": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Array of toolkit slug identifiers to retrieve",
- "example": [
- "github",
- "slack",
- "gmail"
- ]
- },
- "category": {
+ "name": {
"type": "string",
- "description": "Category ID or name to filter toolkits by",
- "example": "productivity"
+ "minLength": 3,
+ "maxLength": 75,
+ "pattern": "^[a-zA-Z0-9_-]+$",
+ "description": "A unique name for your project that follows the required format rules",
+ "example": "my-awesome-project"
},
- "managed_by": {
- "type": "string",
- "enum": [
- "composio",
- "all",
- "project"
- ],
- "description": "Entity responsible for managing the toolkits"
+ "should_create_api_key": {
+ "type": "boolean",
+ "default": false,
+ "description": "Whether to create an API key for the project. If true, the API key will be created and returned in the response.",
+ "example": false
},
- "sort_by": {
- "type": "string",
- "enum": [
- "usage",
- "alphabetically"
+ "config": {
+ "type": "object",
+ "properties": {
+ "is_2FA_enabled": {
+ "type": "boolean"
+ },
+ "logo_url": {
+ "type": "string"
+ },
+ "display_name": {
+ "type": "string"
+ },
+ "mask_secret_keys_in_connected_account": {
+ "type": "boolean"
+ },
+ "log_visibility_setting": {
+ "type": "string",
+ "enum": [
+ "show_all",
+ "dont_store_data"
+ ]
+ },
+ "require_mcp_api_key": {
+ "type": "boolean"
+ },
+ "is_composio_link_enabled_for_managed_auth": {
+ "type": "boolean",
+ "description": "Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key."
+ },
+ "signed_url_file_expiry_in_seconds": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 86400
+ }
+ },
+ "required": [
+ "is_2FA_enabled",
+ "mask_secret_keys_in_connected_account",
+ "log_visibility_setting"
],
- "description": "Determines how toolkits should be sorted in the response"
- },
- "limit": {
- "type": "number",
- "nullable": true
- },
- "cursor": {
- "type": "string"
+ "description": "Configuration for the project"
}
},
- "description": "Body parameters for filtering and sorting toolkits"
+ "required": [
+ "name"
+ ]
+ },
+ "examples": {
+ "Simple project": {
+ "value": {
+ "name": "my_production_api"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Project successfully created. Returns the complete project object with generated IDs, webhook secrets, and configuration.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "projectId",
+ "description": "Unique identifier for the project",
+ "example": "pr_1a2b3c4d5e6f"
+ },
+ "name": {
+ "type": "string",
+ "description": "Name of the project",
+ "example": "My Awesome Project"
+ },
+ "api_key": {
+ "type": "string",
+ "nullable": true,
+ "description": "API key for the project",
+ "example": "ak_abc123xyz456"
+ }
+ },
+ "required": [
+ "id",
+ "api_key"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request. This may occur if the project name format is invalid, too short, or contains invalid characters.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
}
}
}
},
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/org/owner/project/list": {
+ "get": {
+ "summary": "List all projects",
+ "description": "Retrieves all projects belonging to the authenticated organization. Projects are returned in descending order of creation date (newest first). This endpoint is useful for displaying project selection in dashboards or for integrations that need to list all available projects.",
+ "tags": [
+ "Projects"
+ ],
+ "operationId": "getOrgOwnerProjectList",
+ "security": [
+ {
+ "OrgApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true
+ },
+ "required": false,
+ "description": "Number of items per page, max allowed is 1000",
+ "name": "limit",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": false,
+ "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
+ "name": "cursor",
+ "in": "query"
+ }
+ ],
"responses": {
"200": {
- "description": "Toolkits retrieved successfully. Returns a paginated list of available toolkits with detailed metadata.",
+ "description": "Projects retrieved successfully with pagination. Returns an array of projects with pagination info.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "items": {
+ "data": {
"type": "array",
"items": {
"type": "object",
"properties": {
- "slug": {
+ "id": {
"type": "string",
- "description": "URL-friendly unique identifier for the toolkit",
- "example": "github"
+ "format": "projectId",
+ "description": "Unique identifier for the project",
+ "example": "pr_1a2b3c4d5e6f"
+ },
+ "org_id": {
+ "type": "string",
+ "format": "orgId",
+ "description": "Identifier of the organization that owns this project",
+ "example": "ok_1a2b3c4d5e6f"
},
"name": {
"type": "string",
- "description": "Human-readable name of the toolkit",
- "example": "GitHub"
+ "description": "Name of the project",
+ "example": "My Awesome Project"
},
- "auth_schemes": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of authentication methods supported by this toolkit",
- "example": [
- "oauth2",
- "api_key"
- ]
+ "email": {
+ "type": "string",
+ "description": "Email address associated with the project",
+ "example": "[email protected]"
},
- "composio_managed_auth_schemes": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of authentication methods that Composio manages for this toolkit",
- "example": [
- "oauth2"
- ]
+ "created_at": {
+ "type": "string",
+ "description": "ISO timestamp when the project was created",
+ "example": "2023-05-16T14:30:00.000Z"
},
- "is_local_toolkit": {
- "type": "boolean",
- "description": "DEPRECATED: This field is no longer meaningful and will always return false. It was previously used to indicate if a toolkit is specific to the current project.",
- "deprecated": true,
- "example": false
+ "updated_at": {
+ "type": "string",
+ "description": "ISO timestamp when the project was last updated",
+ "example": "2023-05-18T09:15:30.000Z"
},
- "no_auth": {
+ "webhook_url": {
+ "type": "string",
+ "nullable": true,
+ "format": "uri",
+ "description": "DEPRECATED: Use GET /api/v3/webhook_subscriptions instead. Legacy project-level webhook URL.",
+ "example": "https://example.com/webhook",
+ "deprecated": true
+ },
+ "event_webhook_url": {
+ "type": "string",
+ "nullable": true,
+ "format": "uri",
+ "description": "DEPRECATED: No longer used.",
+ "example": "https://example.com/events",
+ "deprecated": true
+ },
+ "webhook_secret": {
+ "type": "string",
+ "nullable": true,
+ "description": "DEPRECATED: Use GET /api/v3/webhook_subscriptions instead. Legacy project-level webhook secret.",
+ "example": "whsec_abcdef123456789",
+ "deprecated": true
+ },
+ "triggers_enabled": {
"type": "boolean",
- "description": "When true, this toolkit can be used without authentication",
- "example": false
+ "description": "Whether triggers are enabled for this project",
+ "example": true
},
- "auth_guide_url": {
+ "last_subscribed_at": {
"type": "string",
"nullable": true,
- "description": "URL to a guide page with authentication setup instructions for this toolkit",
- "example": "https://composio.dev/auth/github"
+ "format": "date-time",
+ "description": "ISO timestamp when the project last subscribed to updates",
+ "example": "2023-05-17T10:00:00.000Z"
},
- "deprecated": {
- "$ref": "#/components/schemas/DeprecatedToolkitInfo"
+ "is_new_webhook": {
+ "type": "boolean",
+ "description": "Deprecated: Please refer to webhook_version instead. True indicates if the webhook configuration is using the previous new format (V2). False indicates the oldest format (V1)",
+ "example": true,
+ "deprecated": true
},
- "meta": {
- "type": "object",
- "properties": {
- "created_at": {
- "type": "string",
- "description": "Creation date and time of the toolkit",
- "example": "2023-01-15T09:30:00.000Z"
- },
- "updated_at": {
- "type": "string",
- "description": "Last modification date and time of the toolkit",
- "example": "2023-05-20T14:45:00.000Z"
- },
- "description": {
- "type": "string",
- "description": "Human-readable description explaining the toolkit's purpose and functionality",
- "example": "Integrate with GitHub repositories, issues, pull requests, and more."
- },
- "logo": {
- "type": "string",
- "description": "Image URL for the toolkit's branding",
- "example": "https://assets.composio.dev/logos/github.png"
- },
- "app_url": {
- "type": "string",
- "nullable": true,
- "description": "Link to the toolkit's main application or service website",
- "example": "https://github.com"
- },
- "categories": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "Category identifier",
- "example": "developer-tools"
- },
- "name": {
- "type": "string",
- "description": "Human-readable category name",
- "example": "Developer Tools"
- }
- },
- "required": [
- "id",
- "name"
- ]
- },
- "description": "List of categories associated with this toolkit",
- "example": [
- {
- "id": "developer-tools",
- "name": "Developer Tools"
- },
- {
- "id": "productivity",
- "name": "Productivity"
- }
- ]
- },
- "triggers_count": {
- "type": "number",
- "description": "Count of available triggers in this toolkit",
- "example": 5
- },
- "tools_count": {
- "type": "number",
- "description": "Count of available tools in this toolkit",
- "example": 12
- },
- "version": {
- "type": "string",
- "description": "Version of the toolkit",
- "example": "20250905_00"
- }
- },
- "required": [
- "created_at",
- "updated_at",
- "description",
- "logo",
- "categories",
- "triggers_count",
- "tools_count",
- "version"
+ "webhook_version": {
+ "type": "string",
+ "enum": [
+ "V1",
+ "V2",
+ "V3"
],
- "description": "Additional metadata about the toolkit"
+ "description": "Payload format version for Pusher real-time events only. For webhook configuration, use GET /api/v3/webhook_subscriptions.",
+ "example": "V2"
+ },
+ "deleted": {
+ "type": "boolean",
+ "description": "Whether this project has been soft-deleted",
+ "example": false
}
},
"required": [
- "slug",
+ "id",
+ "org_id",
"name",
- "is_local_toolkit",
- "deprecated",
- "meta"
- ],
- "description": "Detailed information about a toolkit"
+ "email",
+ "created_at",
+ "updated_at",
+ "webhook_url",
+ "event_webhook_url",
+ "webhook_secret",
+ "webhook_version",
+ "deleted"
+ ]
}
},
"next_cursor": {
@@ -10469,7 +10029,7 @@
}
},
"required": [
- "items",
+ "data",
"total_pages",
"current_page",
"total_items"
@@ -10479,7 +10039,7 @@
}
},
"400": {
- "description": "Bad request. The query parameters may be invalid or in an incorrect format.",
+ "description": "Bad request. This may occur if there are invalid query parameters or the request is malformed.",
"content": {
"application/json": {
"schema": {
@@ -10498,16 +10058,6 @@
}
}
},
- "404": {
- "description": "Not found. The toolkits you are looking for do not exist.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
"500": {
"description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
@@ -10522,170 +10072,196 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/trigger_instances/{slug}/upsert": {
- "post": {
- "summary": "Create or update a trigger",
- "description": "Creates a new trigger instance or updates an existing one with the same configuration. Triggers listen for events from external services (webhooks or polling) and can invoke your workflows. If a matching trigger already exists and is disabled, it will be re-enabled. Requires a connected account ID to associate the trigger with a specific user connection.",
+ "/api/v3.1/org/owner/project/{nano_id}": {
+ "get": {
+ "summary": "Get project details by ID With Org Api key",
+ "description": "Retrieves detailed information about a specific project using its unique identifier. This endpoint provides complete project configuration including webhook URLs, creation and update timestamps, and webhook secrets. Use this endpoint to inspect project settings or verify project configuration.",
"tags": [
- "Triggers"
+ "Projects"
],
- "operationId": "postTriggerInstancesBySlugUpsert",
+ "operationId": "getOrgOwnerProjectByNanoId",
"security": [
{
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
+ "OrgApiKeyAuth": []
}
],
"parameters": [
{
"schema": {
"type": "string",
- "description": "The slug of the trigger instance. Case-insensitive (internally normalized to uppercase)."
+ "format": "projectId",
+ "description": "Unique identifier (Nano ID) of the project to retrieve",
+ "example": "pr_1a2b3c4d5e6f"
},
"required": true,
- "description": "The slug of the trigger instance. Case-insensitive (internally normalized to uppercase).",
- "name": "slug",
+ "description": "Unique identifier (Nano ID) of the project to retrieve",
+ "name": "nano_id",
"in": "path"
}
],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "connectedAuthId": {
- "type": "string",
- "format": "connectedAccountId",
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use connected_account_id instead.",
- "deprecated": true
- },
- "triggerConfig": {
- "type": "object",
- "additionalProperties": {},
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_config instead.",
- "deprecated": true
- },
- "connected_account_id": {
- "type": "string",
- "format": "connectedAccountId",
- "description": "Connected account nanoid"
- },
- "trigger_config": {
- "type": "object",
- "additionalProperties": {},
- "description": "Trigger configuration"
- },
- "version": {
- "type": "string",
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use toolkit_versions instead.",
- "deprecated": true,
- "example": "latest"
- },
- "toolkit_versions": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "nullable": true,
- "type": "object"
- }
- ],
- "description": "Toolkit version specification. Supports \"latest\" string or a record mapping toolkit slugs to specific versions.",
- "example": "latest"
- }
- }
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully upserted trigger instance",
+ "description": "Project retrieved successfully. Returns a complete project object with all configuration details and associated API keys.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "trigger_id": {
+ "id": {
"type": "string",
- "description": "ID of the updated trigger"
+ "format": "projectId",
+ "description": "Unique identifier for the project",
+ "example": "pr_1a2b3c4d5e6f"
},
- "deprecated": {
- "type": "object",
- "properties": {
- "uuid": {
- "type": "string",
- "description": "ID of the updated trigger"
- }
- },
- "required": [
- "uuid"
- ]
- }
- },
- "required": [
- "trigger_id",
- "deprecated"
- ]
- }
- }
- }
- },
- "201": {
- "description": "Successfully created trigger instance",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "trigger_id": {
+ "org_id": {
"type": "string",
- "description": "ID of the updated trigger"
+ "format": "orgId",
+ "description": "Identifier of the organization that owns this project",
+ "example": "ok_1a2b3c4d5e6f"
},
- "deprecated": {
- "type": "object",
- "properties": {
- "uuid": {
- "type": "string",
- "description": "ID of the updated trigger"
- }
+ "name": {
+ "type": "string",
+ "description": "Name of the project",
+ "example": "My Awesome Project"
+ },
+ "email": {
+ "type": "string",
+ "description": "Email address associated with the project",
+ "example": "[email protected]"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "ISO timestamp when the project was created",
+ "example": "2023-05-16T14:30:00.000Z"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "ISO timestamp when the project was last updated",
+ "example": "2023-05-18T09:15:30.000Z"
+ },
+ "webhook_url": {
+ "type": "string",
+ "nullable": true,
+ "format": "uri",
+ "description": "DEPRECATED: Use GET /api/v3/webhook_subscriptions instead. Legacy project-level webhook URL.",
+ "example": "https://example.com/webhook",
+ "deprecated": true
+ },
+ "event_webhook_url": {
+ "type": "string",
+ "nullable": true,
+ "format": "uri",
+ "description": "DEPRECATED: No longer used.",
+ "example": "https://example.com/events",
+ "deprecated": true
+ },
+ "webhook_secret": {
+ "type": "string",
+ "nullable": true,
+ "description": "DEPRECATED: Use GET /api/v3/webhook_subscriptions instead. Legacy project-level webhook secret.",
+ "example": "whsec_abcdef123456789",
+ "deprecated": true
+ },
+ "triggers_enabled": {
+ "type": "boolean",
+ "description": "Whether triggers are enabled for this project",
+ "example": true
+ },
+ "last_subscribed_at": {
+ "type": "string",
+ "nullable": true,
+ "format": "date-time",
+ "description": "ISO timestamp when the project last subscribed to updates",
+ "example": "2023-05-17T10:00:00.000Z"
+ },
+ "is_new_webhook": {
+ "type": "boolean",
+ "description": "Deprecated: Please refer to webhook_version instead. True indicates if the webhook configuration is using the previous new format (V2). False indicates the oldest format (V1)",
+ "example": true,
+ "deprecated": true
+ },
+ "webhook_version": {
+ "type": "string",
+ "enum": [
+ "V1",
+ "V2",
+ "V3"
+ ],
+ "description": "Payload format version for Pusher real-time events only. For webhook configuration, use GET /api/v3/webhook_subscriptions.",
+ "example": "V2"
+ },
+ "deleted": {
+ "type": "boolean",
+ "description": "Whether this project has been soft-deleted",
+ "example": false
+ },
+ "api_keys": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Unique identifier for the API key",
+ "example": "01H4DKRF5SMP7NQCA3BWT0JYB6"
+ },
+ "name": {
+ "type": "string",
+ "description": "User-defined name for the API key",
+ "example": "Production Server Key"
+ },
+ "key": {
+ "type": "string",
+ "description": "The actual API key value used for authentication",
+ "example": "ak_a1b2c3d4e5f6g7h8i9j0"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "description": "ISO 8601 timestamp when the API key was created",
+ "example": "2023-07-15T14:30:00.000Z"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "key",
+ "created_at"
+ ]
},
- "required": [
- "uuid"
- ]
+ "description": "Array of API keys for the project, including their properties"
}
},
"required": [
- "trigger_id",
- "deprecated"
+ "id",
+ "org_id",
+ "name",
+ "email",
+ "created_at",
+ "updated_at",
+ "webhook_url",
+ "event_webhook_url",
+ "webhook_secret",
+ "webhook_version",
+ "deleted",
+ "api_keys"
]
}
}
}
},
- "204": {
- "description": "No content",
+ "400": {
+ "description": "Bad request. This may occur if the project ID format is invalid.",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {}
+ "$ref": "#/components/schemas/Error"
}
}
}
},
- "400": {
- "description": "Bad request",
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
"content": {
"application/json": {
"schema": {
@@ -10694,8 +10270,8 @@
}
}
},
- "401": {
- "description": "Unauthorized",
+ "404": {
+ "description": "Not found. The specified project does not exist or you do not have access to it.",
"content": {
"application/json": {
"schema": {
@@ -10704,8 +10280,8 @@
}
}
},
- "404": {
- "description": "Trigger instance not found",
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -10713,19 +10289,63 @@
}
}
}
- },
- "408": {
- "description": "Request timeout",
+ }
+ },
+ "x-api-version": "3.1"
+ },
+ "delete": {
+ "summary": "Delete a project",
+ "description": "Soft-deletes a project within the organization by its unique identifier. When a project is deleted, it is marked as deleted but not immediately removed from the database. This operation affects all resources associated with the project including API keys, webhook configurations, and connected services. This action cannot be undone through the API.",
+ "tags": [
+ "Projects"
+ ],
+ "operationId": "deleteOrgOwnerProjectByNanoId",
+ "security": [
+ {
+ "OrgApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "format": "projectId",
+ "description": "Unique identifier (Nano ID) of the project to delete",
+ "example": "pr_1a2b3c4d5e6f"
+ },
+ "required": true,
+ "description": "Unique identifier (Nano ID) of the project to delete",
+ "name": "nano_id",
+ "in": "path"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Project successfully deleted. The project has been marked as deleted in the system.",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Error"
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "success"
+ ],
+ "description": "Status indicating successful deletion",
+ "example": "success"
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "description": "Response indicating successful project deletion"
}
}
}
},
- "409": {
- "description": "Conflict",
+ "400": {
+ "description": "Bad request. The project ID may be invalid or in an incorrect format.",
"content": {
"application/json": {
"schema": {
@@ -10734,8 +10354,8 @@
}
}
},
- "410": {
- "description": "Gone",
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
"content": {
"application/json": {
"schema": {
@@ -10744,8 +10364,8 @@
}
}
},
- "422": {
- "description": "Unprocessable entity",
+ "403": {
+ "description": "Forbidden. You do not have permission to delete this project.",
"content": {
"application/json": {
"schema": {
@@ -10754,8 +10374,8 @@
}
}
},
- "500": {
- "description": "Internal server error",
+ "404": {
+ "description": "Not found. The specified project does not exist or has already been deleted.",
"content": {
"application/json": {
"schema": {
@@ -10764,8 +10384,8 @@
}
}
},
- "501": {
- "description": "Not implemented",
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -10778,382 +10398,247 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/trigger_instances/active": {
- "get": {
- "summary": "List active triggers",
- "description": "Retrieves all active trigger instances for your project. Triggers listen for events from connected accounts (e.g., new emails, Slack messages, GitHub commits) and can invoke webhooks or workflows. Use filters to find triggers for specific users, connected accounts, or trigger types.",
- "tags": [
- "Triggers"
- ],
- "operationId": "getTriggerInstancesActive",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Array of user IDs to filter triggers by"
- },
- "required": false,
- "description": "Array of user IDs to filter triggers by",
- "name": "user_ids",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "format": "connectedAccountId"
- },
- "description": "Array of connected account IDs to filter triggers by"
- },
- "required": false,
- "description": "Array of connected account IDs to filter triggers by",
- "name": "connected_account_ids",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "format": "authConfigId"
- },
- "description": "Array of auth config IDs to filter triggers by"
- },
- "required": false,
- "description": "Array of auth config IDs to filter triggers by",
- "name": "auth_config_ids",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "format": "triggerInstanceId"
- },
- "description": "Array of trigger IDs to filter triggers by"
- },
- "required": false,
- "description": "Array of trigger IDs to filter triggers by",
- "name": "trigger_ids",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Array of trigger names to filter triggers by. Case-insensitive (internally normalized to uppercase)."
- },
- "required": false,
- "description": "Array of trigger names to filter triggers by. Case-insensitive (internally normalized to uppercase).",
- "name": "trigger_names",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "format": "connectedAccountId"
- }
- },
- "required": false,
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use connected_account_ids instead.",
- "deprecated": true,
- "name": "connectedAccountIds",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "format": "authConfigId"
- }
- },
- "required": false,
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use auth_config_ids instead.",
- "deprecated": true,
- "name": "authConfigIds",
- "in": "query"
- },
+ "/api/v3.1/org/owner/project/{nano_id}/regenerate_api_key": {
+ "post": {
+ "summary": "Delete and generate new API key for project",
+ "description": "Generates a new API key for the specified project, invalidating any existing API keys for that project. This operation creates a fresh API key with a new random name and key value. All existing API keys for this project will be marked as deleted.",
+ "tags": [
+ "Projects"
+ ],
+ "operationId": "postOrgOwnerProjectByNanoIdRegenerateApiKey",
+ "security": [
{
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string",
- "format": "triggerInstanceId"
- }
- },
- "required": false,
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_ids instead.",
- "deprecated": true,
- "name": "triggerIds",
- "in": "query"
- },
+ "OrgApiKeyAuth": []
+ }
+ ],
+ "parameters": [
{
"schema": {
- "type": "boolean",
- "nullable": true,
- "default": false,
- "description": "When set to true, includes disabled triggers in the response."
+ "type": "string",
+ "format": "projectId",
+ "description": "Unique identifier (Nano ID) of the project to regenerate API key for",
+ "example": "pr_1a2b3c4d5e6f"
},
- "required": false,
- "description": "When set to true, includes disabled triggers in the response.",
- "name": "show_disabled",
- "in": "query"
- },
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
+ "required": true,
+ "description": "Unique identifier (Nano ID) of the project to regenerate API key for",
+ "name": "nano_id",
+ "in": "path"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "API key regenerated successfully. Returns the new API key details.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "api_key": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Unique identifier for the API key",
+ "example": "01H4DKRF5SMP7NQCA3BWT0JYB6"
+ },
+ "name": {
+ "type": "string",
+ "description": "Name of the API key",
+ "example": "epic_avatar"
+ },
+ "key": {
+ "type": "string",
+ "description": "The newly generated API key value",
+ "example": "ak_a1b2c3d4e5f6g7h8i9j0"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "ISO timestamp when the API key was created",
+ "example": "2023-05-16T14:30:00.000Z"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "key",
+ "created_at"
+ ],
+ "description": "The newly generated API key for this project"
+ },
+ "message": {
+ "type": "string",
+ "description": "Success message",
+ "example": "API key regenerated successfully"
+ }
+ },
+ "required": [
+ "api_key",
+ "message"
+ ]
+ }
}
- },
- "required": false,
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_names instead.",
- "deprecated": true,
- "name": "triggerNames",
- "in": "query"
+ }
},
- {
- "schema": {
- "type": "boolean",
- "nullable": true,
- "default": false,
- "description": "DEPRECATED: Use show_disabled instead"
- },
- "required": false,
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use show_disabled instead.",
- "deprecated": true,
- "name": "showDisabled",
- "in": "query"
+ "400": {
+ "description": "Bad request. The project ID may be invalid or in an incorrect format.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
},
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Array of connected account UUIDs to filter triggers by"
- },
- "required": false,
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use connected_account_ids instead.",
- "deprecated": true,
- "name": "deprecatedConnectedAccountUuids",
- "in": "query"
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
},
- {
- "schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Array of auth config UUIDs to filter triggers by"
- },
- "required": false,
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use auth_config_ids instead.",
- "deprecated": true,
- "name": "deprecatedAuthConfigUuids",
- "in": "query"
+ "404": {
+ "description": "Not found. The specified project does not exist or you do not have access to it.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
},
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/webhook_subscriptions": {
+ "post": {
+ "summary": "Create webhook subscription",
+ "description": "Creates a webhook subscription for the authenticated project. Only one subscription is allowed per project. The signing secret is returned only on creation.",
+ "tags": [
+ "Webhooks"
+ ],
+ "operationId": "postWebhookSubscriptions",
+ "security": [
{
- "schema": {
- "type": "number",
- "nullable": true
- },
- "required": false,
- "description": "Number of items per page, max allowed is 1000",
- "name": "limit",
- "in": "query"
+ "ApiKeyAuth": []
},
{
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
- "name": "cursor",
- "in": "query"
+ "UserApiKeyAuth": []
}
],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "webhook_url": {
+ "type": "string",
+ "maxLength": 2048,
+ "format": "uri",
+ "description": "HTTPS URL to receive webhook events"
+ },
+ "enabled_events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "description": "Array of event types to subscribe to"
+ },
+ "version": {
+ "type": "string",
+ "enum": [
+ "V1",
+ "V2",
+ "V3"
+ ],
+ "default": "V3",
+ "description": "Webhook payload version"
+ }
+ },
+ "required": [
+ "webhook_url",
+ "enabled_events"
+ ]
+ }
+ }
+ }
+ },
"responses": {
- "200": {
- "description": "Successfully retrieved active trigger instances",
+ "201": {
+ "description": "Webhook subscription created",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "items": {
+ "id": {
+ "type": "string",
+ "format": "webhookSubscriptionId",
+ "description": "Unique subscription ID"
+ },
+ "webhook_url": {
+ "type": "string",
+ "description": "Webhook destination URL"
+ },
+ "version": {
+ "type": "string",
+ "enum": [
+ "V1",
+ "V2",
+ "V3"
+ ],
+ "description": "Webhook payload version"
+ },
+ "enabled_events": {
"type": "array",
"items": {
- "type": "object",
- "properties": {
- "uuid": {
- "type": "string",
- "description": "Unique identifier of the trigger instance"
- },
- "id": {
- "type": "string",
- "format": "triggerInstanceId",
- "description": "Nano ID of the trigger instance"
- },
- "connected_account_id": {
- "type": "string",
- "description": "ID of the connected account this trigger is associated with"
- },
- "trigger_name": {
- "type": "string",
- "description": "Name of the trigger"
- },
- "connected_account_uuid": {
- "type": "string",
- "description": "UUID of the connected account this trigger is associated with"
- },
- "user_id": {
- "type": "string",
- "description": "ID of the user this trigger is associated with"
- },
- "trigger_data": {
- "type": "string",
- "description": "Additional data associated with the trigger instance"
- },
- "version": {
- "type": "string",
- "description": "Version of the trigger instance"
- },
- "trigger_config": {
- "type": "object",
- "additionalProperties": {},
- "description": "Configuration for the trigger"
- },
- "state": {
- "type": "object",
- "additionalProperties": {},
- "description": "DEPRECATED: This field exposes internal state and will be removed in a future version.",
- "deprecated": true
- },
- "updated_at": {
- "type": "string",
- "description": "ISO 8601 timestamp when the trigger instance was updated"
- },
- "disabled_at": {
- "type": "string",
- "nullable": true,
- "description": "ISO 8601 timestamp when the trigger instance was disabled, if applicable"
- },
- "disabledAt": {
- "type": "string",
- "nullable": true,
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use disabled_at instead.",
- "deprecated": true
- },
- "connectedAccountId": {
- "type": "string",
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use connected_account_id instead.",
- "deprecated": true
- },
- "triggerName": {
- "type": "string",
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_name instead.",
- "deprecated": true
- },
- "updatedAt": {
- "type": "string",
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use updated_at instead.",
- "deprecated": true
- },
- "triggerConfig": {
- "type": "object",
- "additionalProperties": {},
- "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_config instead.",
- "deprecated": true
- },
- "deprecated": {
- "type": "object",
- "properties": {
- "createdAt": {
- "type": "string",
- "description": "Deprecated created_at for the trigger instance"
- }
- },
- "required": [
- "createdAt"
- ],
- "description": "Deprecated fields for the trigger instance"
- }
- },
- "required": [
- "id",
- "connected_account_id",
- "trigger_name",
- "connected_account_uuid",
- "user_id",
- "version",
- "trigger_config",
- "state",
- "updated_at",
- "disabled_at",
- "disabledAt",
- "connectedAccountId",
- "triggerName",
- "updatedAt",
- "triggerConfig"
- ]
- }
+ "type": "string"
+ },
+ "description": "Subscribed event types"
},
- "next_cursor": {
+ "secret": {
"type": "string",
- "nullable": true
- },
- "total_pages": {
- "type": "number"
+ "description": "Signing secret for HMAC verification"
},
- "current_page": {
- "type": "number"
+ "created_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp"
},
- "total_items": {
- "type": "number"
+ "updated_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp"
}
},
"required": [
- "items",
- "total_pages",
- "current_page",
- "total_items"
+ "id",
+ "webhook_url",
+ "version",
+ "enabled_events",
+ "secret",
+ "created_at",
+ "updated_at"
]
}
}
}
},
"400": {
- "description": "Bad request",
+ "description": "Invalid request",
"content": {
"application/json": {
"schema": {
@@ -11172,6 +10657,16 @@
}
}
},
+ "409": {
+ "description": "Subscription already exists",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
"500": {
"description": "Internal server error",
"content": {
@@ -11184,16 +10679,14 @@
}
},
"x-api-version": "3.1"
- }
- },
- "/api/v3.1/trigger_instances/manage/{triggerId}": {
- "delete": {
- "summary": "Delete a trigger",
- "description": "Permanently deletes a trigger instance. This stops the trigger from listening for events and removes it from your project. Use the PATCH endpoint with status \"disable\" if you want to temporarily pause a trigger instead.",
+ },
+ "get": {
+ "summary": "List webhook subscriptions",
+ "description": "Lists all webhook subscriptions for the authenticated project with pagination. Currently limited to one subscription per project.",
"tags": [
- "Triggers"
+ "Webhooks"
],
- "operationId": "deleteTriggerInstancesManageByTriggerId",
+ "operationId": "getWebhookSubscriptions",
"security": [
{
"ApiKeyAuth": []
@@ -11205,39 +10698,112 @@
"parameters": [
{
"schema": {
- "type": "string",
- "format": "triggerInstanceId",
- "description": "The ID of the trigger instance to delete"
+ "type": "number",
+ "nullable": true
},
- "required": true,
- "description": "The ID of the trigger instance to delete",
- "name": "triggerId",
- "in": "path"
+ "required": false,
+ "description": "Number of items per page, max allowed is 1000",
+ "name": "limit",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": false,
+ "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
+ "name": "cursor",
+ "in": "query"
}
],
"responses": {
"200": {
- "description": "Successfully deleted the trigger instance",
+ "description": "Webhook subscriptions retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "trigger_id": {
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "webhookSubscriptionId",
+ "description": "Unique subscription ID"
+ },
+ "webhook_url": {
+ "type": "string",
+ "description": "Webhook destination URL"
+ },
+ "version": {
+ "type": "string",
+ "enum": [
+ "V1",
+ "V2",
+ "V3"
+ ],
+ "description": "Webhook payload version"
+ },
+ "enabled_events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Subscribed event types"
+ },
+ "secret": {
+ "type": "string",
+ "description": "Masked signing secret (full secret only on create/rotate)"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp"
+ }
+ },
+ "required": [
+ "id",
+ "webhook_url",
+ "version",
+ "enabled_events",
+ "secret",
+ "created_at",
+ "updated_at"
+ ]
+ }
+ },
+ "next_cursor": {
"type": "string",
- "format": "triggerInstanceId",
- "description": "The ID of the deleted trigger instance"
+ "nullable": true
+ },
+ "total_pages": {
+ "type": "number"
+ },
+ "current_page": {
+ "type": "number"
+ },
+ "total_items": {
+ "type": "number"
}
},
"required": [
- "trigger_id"
+ "items",
+ "total_pages",
+ "current_page",
+ "total_items"
]
}
}
}
},
"400": {
- "description": "Bad request",
+ "description": "Invalid pagination",
"content": {
"application/json": {
"schema": {
@@ -11256,36 +10822,6 @@
}
}
},
- "404": {
- "description": "Trigger instance not found",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "409": {
- "description": "Trigger instance already deleted",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "410": {
- "description": "Trigger instance already gone",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
"500": {
"description": "Internal server error",
"content": {
@@ -11298,14 +10834,16 @@
}
},
"x-api-version": "3.1"
- },
- "patch": {
- "summary": "Enable or disable a trigger",
- "description": "Updates the status of a trigger instance to enable or disable it. Disabling a trigger pauses event listening without deleting the trigger configuration. Re-enabling restores the trigger to its active state. Use this for temporary maintenance or to control trigger execution.",
+ }
+ },
+ "/api/v3.1/webhook_subscriptions/{id}": {
+ "get": {
+ "summary": "Get webhook subscription",
+ "description": "Retrieves a webhook subscription by ID.",
"tags": [
- "Triggers"
+ "Webhooks"
],
- "operationId": "patchTriggerInstancesManageByTriggerId",
+ "operationId": "getWebhookSubscriptionsById",
"security": [
{
"ApiKeyAuth": []
@@ -11318,69 +10856,74 @@
{
"schema": {
"type": "string",
- "format": "triggerInstanceId",
- "description": "The ID of the trigger instance to update"
+ "format": "webhookSubscriptionId",
+ "description": "Webhook subscription ID"
},
"required": true,
- "description": "The ID of the trigger instance to update",
- "name": "triggerId",
+ "description": "Webhook subscription ID",
+ "name": "id",
"in": "path"
}
],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "status": {
- "type": "string",
- "enum": [
- "enable",
- "disable"
- ]
- }
- },
- "required": [
- "status"
- ]
- }
- }
- }
- },
"responses": {
"200": {
- "description": "Successfully updated trigger status",
+ "description": "Webhook subscription retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "status": {
+ "id": {
+ "type": "string",
+ "format": "webhookSubscriptionId",
+ "description": "Unique subscription ID"
+ },
+ "webhook_url": {
+ "type": "string",
+ "description": "Webhook destination URL"
+ },
+ "version": {
"type": "string",
"enum": [
- "success"
+ "V1",
+ "V2",
+ "V3"
],
- "description": "Status of the operation"
+ "description": "Webhook payload version"
+ },
+ "enabled_events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Subscribed event types"
+ },
+ "secret": {
+ "type": "string",
+ "description": "Masked signing secret (full secret only on create/rotate)"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp"
}
},
"required": [
- "status"
+ "id",
+ "webhook_url",
+ "version",
+ "enabled_events",
+ "secret",
+ "created_at",
+ "updated_at"
]
}
}
}
},
- "400": {
- "description": "Bad Request",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
"401": {
"description": "Unauthorized",
"content": {
@@ -11392,27 +10935,7 @@
}
},
"404": {
- "description": "Trigger instance not found",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "409": {
- "description": "Trigger instance already enabled/disabled",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "410": {
- "description": "Trigger instance already gone",
+ "description": "Subscription not found",
"content": {
"application/json": {
"schema": {
@@ -11422,17 +10945,7 @@
}
},
"500": {
- "description": "Internal Server Error",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "501": {
- "description": "Not implemented",
+ "description": "Internal server error",
"content": {
"application/json": {
"schema": {
@@ -11443,16 +10956,14 @@
}
},
"x-api-version": "3.1"
- }
- },
- "/api/v3.1/triggers_types/list/enum": {
- "get": {
- "summary": "List trigger type enums",
- "description": "Retrieves a list of all available trigger type enum values that can be used across the API from latest versions of the toolkit only",
+ },
+ "patch": {
+ "summary": "Update webhook subscription",
+ "description": "Updates a webhook subscription. At least one field must be provided.",
"tags": [
- "Triggers"
+ "Webhooks"
],
- "operationId": "getTriggersTypesListEnum",
+ "operationId": "patchWebhookSubscriptionsById",
"security": [
{
"ApiKeyAuth": []
@@ -11460,24 +10971,115 @@
{
"UserApiKeyAuth": []
}
- ],
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "format": "webhookSubscriptionId",
+ "description": "Webhook subscription ID"
+ },
+ "required": true,
+ "description": "Webhook subscription ID",
+ "name": "id",
+ "in": "path"
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "webhook_url": {
+ "type": "string",
+ "maxLength": 2048,
+ "format": "uri",
+ "description": "HTTPS URL to receive webhook events"
+ },
+ "enabled_events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "description": "Array of event types to subscribe to"
+ },
+ "version": {
+ "type": "string",
+ "enum": [
+ "V1",
+ "V2",
+ "V3"
+ ],
+ "description": "Webhook payload version"
+ }
+ }
+ }
+ }
+ }
+ },
"responses": {
"200": {
- "description": "Successfully retrieved trigger enum list",
+ "description": "Webhook subscription updated",
"content": {
"application/json": {
"schema": {
- "type": "array",
- "items": {
- "type": "string"
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "webhookSubscriptionId",
+ "description": "Unique subscription ID"
+ },
+ "webhook_url": {
+ "type": "string",
+ "description": "Webhook destination URL"
+ },
+ "version": {
+ "type": "string",
+ "enum": [
+ "V1",
+ "V2",
+ "V3"
+ ],
+ "description": "Webhook payload version"
+ },
+ "enabled_events": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Subscribed event types"
+ },
+ "secret": {
+ "type": "string",
+ "description": "Masked signing secret (full secret only on create/rotate)"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp"
+ }
},
- "description": "JSON string containing all trigger enum values"
+ "required": [
+ "id",
+ "webhook_url",
+ "version",
+ "enabled_events",
+ "secret",
+ "created_at",
+ "updated_at"
+ ]
}
}
}
},
"400": {
- "description": "Bad request",
+ "description": "Invalid request",
"content": {
"application/json": {
"schema": {
@@ -11497,7 +11099,7 @@
}
},
"404": {
- "description": "Not found",
+ "description": "Subscription not found",
"content": {
"application/json": {
"schema": {
@@ -11518,202 +11120,50 @@
}
},
"x-api-version": "3.1"
- }
- },
- "/api/v3.1/triggers_types/{slug}": {
- "get": {
- "summary": "Get trigger type by slug",
- "description": "Retrieve detailed information about a specific trigger type using its slug identifier",
+ },
+ "delete": {
+ "summary": "Delete webhook subscription",
+ "description": "Permanently deletes a webhook subscription. This action cannot be undone.",
"tags": [
- "Triggers"
- ],
- "operationId": "getTriggersTypesBySlug",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "description": "The unique slug identifier for the trigger type. Case-insensitive (internally normalized to uppercase).",
- "example": "SLACK_RECEIVE_MESSAGE"
- },
- "required": true,
- "description": "The unique slug identifier for the trigger type. Case-insensitive (internally normalized to uppercase).",
- "name": "slug",
- "in": "path"
- },
- {
- "schema": {
- "oneOf": [
- {
- "type": "null"
- },
- {
- "type": "string"
- },
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "description": "Object representation of parsed bracket notation"
- }
- ]
- },
- "required": false,
- "description": "Toolkit version specification. Use \"latest\" for latest versions or bracket notation for specific versions per toolkit.",
- "in": "query",
- "name": "toolkit_versions",
- "examples": {
- "latest_version": {
- "summary": "Latest version for all toolkits",
- "value": "latest"
- },
- "bracket_notation": {
- "summary": "Specific versions using bracket notation",
- "value": "Use: toolkit_versions[gmail]=20250930_00&toolkit_versions[slack]=20250929_00"
- },
- "null_value": {
- "summary": "No version specified (uses latest)",
- "value": null
- }
- }
- }
+ "Webhooks"
],
- "responses": {
- "200": {
- "description": "Successfully retrieved trigger type",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "Unique identifier for the trigger type",
- "example": "SLACK_RECEIVE_MESSAGE"
- },
- "name": {
- "type": "string",
- "description": "Human-readable name of the trigger",
- "example": "New Message in Slack Channel"
- },
- "description": {
- "type": "string",
- "description": "Detailed description of what the trigger does",
- "example": "Triggers when a new message is posted to a Slack channel"
- },
- "instructions": {
- "type": "string",
- "description": "Step-by-step instructions on how to set up and use this trigger"
- },
- "type": {
- "type": "string",
- "enum": [
- "webhook",
- "poll"
- ],
- "description": "The trigger mechanism - either webhook (event-based) or poll (scheduled check)",
- "example": "webhook"
- },
- "toolkit": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "Unique identifier for the parent toolkit",
- "example": "slack"
- },
- "name": {
- "type": "string",
- "description": "Deprecated: Use slug instead",
- "example": "Slack"
- },
- "logo": {
- "type": "string",
- "description": "Logo of the toolkit",
- "example": "https://example.com/logo.png"
- }
- },
- "required": [
- "slug",
- "name",
- "logo"
- ],
- "description": "Information about the toolkit that provides this trigger"
- },
- "config": {
- "type": "object",
- "additionalProperties": {},
- "description": "Configuration schema required to set up this trigger",
- "example": {
- "channel_id": {
- "type": "string",
- "required": true
- },
- "message_type": {
- "type": "enum",
- "options": [
- "all",
- "direct",
- "channel"
- ]
- }
- }
- },
- "payload": {
- "type": "object",
- "additionalProperties": {},
- "description": "Schema of the data payload this trigger will deliver when it fires",
- "example": {
- "message": {
- "type": "string"
- },
- "sender": {
- "type": "object",
- "properties": {
- "id": "string",
- "name": "string"
- }
- },
- "timestamp": {
- "type": "number"
- }
- }
- },
- "version": {
- "type": "string",
- "description": "Version of the trigger type",
- "example": "20250930_00"
- }
- },
- "required": [
- "slug",
- "name",
- "description",
- "instructions",
- "type",
- "toolkit",
- "config",
- "payload",
- "version"
- ]
- }
- }
- }
+ "operationId": "deleteWebhookSubscriptionsById",
+ "security": [
+ {
+ "ApiKeyAuth": []
},
- "400": {
- "description": "Bad request",
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "format": "webhookSubscriptionId",
+ "description": "Webhook subscription ID"
+ },
+ "required": true,
+ "description": "Webhook subscription ID",
+ "name": "id",
+ "in": "path"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Webhook subscription deleted",
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Error"
+ "type": "object",
+ "properties": {
+ "success": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "success"
+ ]
}
}
}
@@ -11729,7 +11179,7 @@
}
},
"404": {
- "description": "Not found",
+ "description": "Subscription not found",
"content": {
"application/json": {
"schema": {
@@ -11752,14 +11202,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/triggers_types": {
- "get": {
- "summary": "List trigger types",
- "description": "Retrieve a list of available trigger types with optional filtering by toolkit. Results are paginated and can be filtered by toolkit.",
+ "/api/v3.1/webhook_subscriptions/{id}/rotate_secret": {
+ "post": {
+ "summary": "Rotate webhook secret",
+ "description": "Generates a new signing secret for the webhook subscription. The new secret is returned only in this response.",
"tags": [
- "Triggers"
+ "Webhooks"
],
- "operationId": "getTriggersTypes",
+ "operationId": "postWebhookSubscriptionsByIdRotateSecret",
"security": [
{
"ApiKeyAuth": []
@@ -11771,230 +11221,44 @@
"parameters": [
{
"schema": {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- },
- "description": "Array of toolkit slugs to filter triggers by",
- "example": [
- "slack",
- "github"
- ]
- },
- "required": false,
- "description": "Array of toolkit slugs to filter triggers by",
- "name": "toolkit_slugs",
- "in": "query"
- },
- {
- "schema": {
- "oneOf": [
- {
- "type": "null"
- },
- {
- "type": "string"
- },
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "description": "Object representation of parsed bracket notation"
- }
- ]
- },
- "required": false,
- "description": "Toolkit version specification. Use \"latest\" for latest versions or bracket notation for specific versions per toolkit.",
- "in": "query",
- "name": "toolkit_versions",
- "examples": {
- "latest_version": {
- "summary": "Latest version for all toolkits",
- "value": "latest"
- },
- "bracket_notation": {
- "summary": "Specific versions using bracket notation",
- "value": "Use: toolkit_versions[gmail]=20250930_00&toolkit_versions[slack]=20250929_00"
- },
- "null_value": {
- "summary": "No version specified (uses latest)",
- "value": null
- }
- }
- },
- {
- "schema": {
- "type": "number",
- "nullable": true
- },
- "required": false,
- "description": "Number of items per page, max allowed is 1000",
- "name": "limit",
- "in": "query"
- },
- {
- "schema": {
- "type": "string"
+ "type": "string",
+ "format": "webhookSubscriptionId",
+ "description": "Webhook subscription ID"
},
- "required": false,
- "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
- "name": "cursor",
- "in": "query"
+ "required": true,
+ "description": "Webhook subscription ID",
+ "name": "id",
+ "in": "path"
}
],
"responses": {
"200": {
- "description": "Successfully retrieved triggers",
+ "description": "Webhook secret rotated",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "Unique identifier for the trigger type",
- "example": "SLACK_RECEIVE_MESSAGE"
- },
- "name": {
- "type": "string",
- "description": "Human-readable name of the trigger",
- "example": "New Message in Slack Channel"
- },
- "description": {
- "type": "string",
- "description": "Detailed description of what the trigger does",
- "example": "Triggers when a new message is posted to a Slack channel"
- },
- "instructions": {
- "type": "string",
- "description": "Step-by-step instructions on how to set up and use this trigger"
- },
- "type": {
- "type": "string",
- "enum": [
- "webhook",
- "poll"
- ],
- "description": "The trigger mechanism - either webhook (event-based) or poll (scheduled check)",
- "example": "webhook"
- },
- "toolkit": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "Unique identifier for the parent toolkit",
- "example": "slack"
- },
- "name": {
- "type": "string",
- "description": "Deprecated: Use slug instead",
- "example": "Slack"
- },
- "logo": {
- "type": "string",
- "description": "Logo of the toolkit",
- "example": "https://example.com/logo.png"
- }
- },
- "required": [
- "slug",
- "name",
- "logo"
- ],
- "description": "Information about the toolkit that provides this trigger"
- },
- "config": {
- "type": "object",
- "additionalProperties": {},
- "description": "Configuration schema required to set up this trigger",
- "example": {
- "channel_id": {
- "type": "string",
- "required": true
- },
- "message_type": {
- "type": "enum",
- "options": [
- "all",
- "direct",
- "channel"
- ]
- }
- }
- },
- "payload": {
- "type": "object",
- "additionalProperties": {},
- "description": "Schema of the data payload this trigger will deliver when it fires",
- "example": {
- "message": {
- "type": "string"
- },
- "sender": {
- "type": "object",
- "properties": {
- "id": "string",
- "name": "string"
- }
- },
- "timestamp": {
- "type": "number"
- }
- }
- },
- "version": {
- "type": "string",
- "description": "Version of the trigger type",
- "example": "20250930_00"
- }
- },
- "required": [
- "slug",
- "name",
- "description",
- "instructions",
- "type",
- "toolkit",
- "config",
- "payload",
- "version"
- ]
- }
- },
- "next_cursor": {
- "type": "string",
- "nullable": true
- },
- "total_pages": {
- "type": "number"
- },
- "current_page": {
- "type": "number"
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "webhookSubscriptionId",
+ "description": "Subscription ID"
},
- "total_items": {
- "type": "number"
+ "secret": {
+ "type": "string",
+ "description": "New signing secret"
}
},
"required": [
- "items",
- "total_pages",
- "current_page",
- "total_items"
+ "id",
+ "secret"
]
}
}
}
},
- "400": {
- "description": "Bad request",
+ "401": {
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -12003,8 +11267,8 @@
}
}
},
- "401": {
- "description": "Unauthorized",
+ "404": {
+ "description": "Subscription not found",
"content": {
"application/json": {
"schema": {
@@ -12013,8 +11277,87 @@
}
}
},
- "404": {
- "description": "Not found",
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/webhook_subscriptions/event_types": {
+ "get": {
+ "summary": "List available event types",
+ "description": "Returns all event types that can be subscribed to, along with their supported webhook versions.",
+ "tags": [
+ "Webhooks"
+ ],
+ "operationId": "getWebhookSubscriptionsEventTypes",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Event types retrieved",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "event_type": {
+ "type": "string",
+ "description": "Event type identifier"
+ },
+ "description": {
+ "type": "string",
+ "description": "Human-readable description of the event"
+ },
+ "supported_versions": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "V1",
+ "V2",
+ "V3"
+ ]
+ },
+ "description": "Webhook versions that support this event"
+ }
+ },
+ "required": [
+ "event_type",
+ "description",
+ "supported_versions"
+ ]
+ }
+ }
+ },
+ "required": [
+ "items"
+ ]
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -12037,14 +11380,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/mcp/servers": {
+ "/api/v3.1/toolkits": {
"get": {
- "summary": "List MCP servers with optional filters and pagination",
- "description": "Retrieves a paginated list of MCP servers associated with the authenticated project. Results can be filtered by name, toolkit, or authentication configuration ID. MCP servers are used to provide Model Control Protocol integration points for connecting AI assistants to your applications and services.",
+ "summary": "List available toolkits",
+ "description": "Retrieves a comprehensive list of toolkits of their latest versions that are available to the authenticated project. Toolkits represent integration points with external services and applications, each containing a collection of tools and triggers. This endpoint supports filtering by category and management type, as well as different sorting options.",
"tags": [
- "MCP"
+ "Toolkits"
],
- "operationId": "getMcpServers",
+ "operationId": "getToolkits",
"security": [
{
"ApiKeyAuth": []
@@ -12057,94 +11400,90 @@
{
"schema": {
"type": "string",
- "description": "Name substring to filter servers by",
- "example": "github"
+ "description": "Category ID or name to filter toolkits by",
+ "example": "productivity"
},
"required": false,
- "description": "Filter MCP servers by name (case-insensitive partial match)",
- "name": "name",
+ "description": "Filter toolkits by category",
+ "name": "category",
"in": "query"
},
{
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "composio",
+ "all",
+ "project"
+ ],
+ "description": "Entity responsible for managing the toolkits"
},
"required": false,
- "description": "Comma-separated list of toolkit slugs to filter servers by",
- "in": "query",
- "name": "toolkits"
+ "description": "Filter toolkits by who manages them",
+ "name": "managed_by",
+ "in": "query"
},
{
"schema": {
- "type": "string"
+ "type": "string",
+ "enum": [
+ "usage",
+ "alphabetically"
+ ],
+ "description": "Determines how toolkits should be sorted in the response"
},
"required": false,
- "description": "Comma-separated list of auth config IDs to filter servers by",
- "in": "query",
- "name": "auth_config_ids"
+ "description": "Sort order for returned toolkits",
+ "name": "sort_by",
+ "in": "query"
},
{
"schema": {
- "type": "string",
- "enum": [
- "created_at",
- "updated_at"
- ],
- "default": "updated_at",
- "description": "Field to use for ordering the results",
- "example": "updated_at"
+ "type": "boolean",
+ "nullable": true,
+ "default": false,
+ "description": "Include deprecated toolkits in the response",
+ "example": true
},
"required": false,
- "description": "Field to order results by",
- "name": "order_by",
+ "description": "Include deprecated toolkits in the response",
+ "name": "include_deprecated",
"in": "query"
},
{
"schema": {
"type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc",
- "description": "Sort direction (ascending or descending)",
- "example": "desc"
+ "description": "Search query to filter toolkits by name, slug, or description (minimum 3 characters)",
+ "example": "gmail"
},
"required": false,
- "description": "Direction of ordering",
- "name": "order_direction",
+ "description": "Search query to filter toolkits by name, slug, or description",
+ "name": "search",
"in": "query"
},
{
"schema": {
"type": "number",
- "nullable": true,
- "default": 1,
- "description": "Page number to retrieve",
- "example": 1
+ "nullable": true
},
"required": false,
- "description": "Page number for pagination (1-based)",
- "name": "page_no",
+ "description": "Number of items per page, max allowed is 1000",
+ "name": "limit",
"in": "query"
},
{
"schema": {
- "type": "number",
- "nullable": true,
- "default": 10,
- "description": "Number of servers to return per page",
- "example": 10
+ "type": "string"
},
"required": false,
- "description": "Number of items per page (default: 10)",
- "name": "limit",
+ "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
+ "name": "cursor",
"in": "query"
}
],
"responses": {
"200": {
- "description": "Successfully retrieved MCP servers. Returns a paginated list of server configurations including connection details and command instructions.",
+ "description": "Toolkits retrieved successfully. Returns a paginated list of available toolkits with detailed metadata.",
"content": {
"application/json": {
"schema": {
@@ -12155,195 +11494,299 @@
"items": {
"type": "object",
"properties": {
- "id": {
+ "slug": {
"type": "string",
- "description": "UUID of the MCP server instance",
- "example": "550e8400-e29b-41d4-a716-446655440000"
+ "description": "URL-friendly unique identifier for the toolkit",
+ "example": "github"
},
"name": {
"type": "string",
- "description": "User-defined descriptive name for this MCP server",
- "example": "GitHub Integration Server"
+ "description": "Human-readable name of the toolkit",
+ "example": "GitHub"
},
- "auth_config_ids": {
+ "auth_schemes": {
"type": "array",
"items": {
"type": "string"
},
- "description": "ID references to the auth configurations used by this server",
+ "description": "List of authentication methods supported by this toolkit",
"example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
+ "oauth2",
+ "api_key"
]
},
- "allowed_tools": {
+ "composio_managed_auth_schemes": {
"type": "array",
"items": {
"type": "string"
},
- "description": "Array of tool slugs that this MCP server is allowed to use",
+ "description": "List of authentication methods that Composio manages for this toolkit",
"example": [
- "GITHUB_CREATE_AN_ISSUE",
- "GITHUB_GET_A_REPOSITORY",
- "GITHUB_LIST_PULL_REQUESTS"
+ "oauth2"
]
},
- "mcp_url": {
- "type": "string",
- "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
+ "is_local_toolkit": {
+ "type": "boolean",
+ "description": "DEPRECATED: This field is no longer meaningful and will always return false. It was previously used to indicate if a toolkit is specific to the current project.",
"deprecated": true,
- "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
+ "example": false
},
- "toolkits": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Array of toolkit slugs that this MCP server is allowed to use",
- "example": [
- "github",
- "jira",
- "slack"
- ]
+ "no_auth": {
+ "type": "boolean",
+ "description": "When true, this toolkit can be used without authentication",
+ "example": false
+ },
+ "auth_guide_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "URL to a guide page with authentication setup instructions for this toolkit",
+ "example": "https://composio.dev/auth/github"
},
- "toolkit_icons": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
- "example": {
- "github": "https://assets.composio.dev/logos/github.png",
- "jira": "https://assets.composio.dev/logos/jira.png",
- "slack": "https://assets.composio.dev/logos/slack.png"
- }
+ "deprecated": {
+ "$ref": "#/components/schemas/DeprecatedToolkitInfo"
},
- "commands": {
+ "meta": {
"type": "object",
"properties": {
- "cursor": {
+ "created_at": {
"type": "string",
- "description": "Command line instruction for Cursor client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ "description": "Creation date and time of the toolkit",
+ "example": "2023-01-15T09:30:00.000Z"
},
- "claude": {
+ "updated_at": {
"type": "string",
- "description": "Command line instruction for Claude client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ "description": "Last modification date and time of the toolkit",
+ "example": "2023-05-20T14:45:00.000Z"
},
- "windsurf": {
+ "description": {
"type": "string",
- "description": "Command line instruction for Windsurf client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ "description": "Human-readable description explaining the toolkit's purpose and functionality",
+ "example": "Integrate with GitHub repositories, issues, pull requests, and more."
+ },
+ "logo": {
+ "type": "string",
+ "description": "Image URL for the toolkit's branding",
+ "example": "https://assets.composio.dev/logos/github.png"
+ },
+ "app_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "Link to the toolkit's main application or service website",
+ "example": "https://github.com"
+ },
+ "categories": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Category identifier",
+ "example": "developer-tools"
+ },
+ "name": {
+ "type": "string",
+ "description": "Human-readable category name",
+ "example": "Developer Tools"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "description": "List of categories associated with this toolkit",
+ "example": [
+ {
+ "id": "developer-tools",
+ "name": "Developer Tools"
+ },
+ {
+ "id": "productivity",
+ "name": "Productivity"
+ }
+ ]
+ },
+ "triggers_count": {
+ "type": "number",
+ "description": "Count of available triggers in this toolkit",
+ "example": 5
+ },
+ "tools_count": {
+ "type": "number",
+ "description": "Count of available tools in this toolkit",
+ "example": 12
+ },
+ "version": {
+ "type": "string",
+ "description": "Version of the toolkit",
+ "example": "20250905_00"
}
},
"required": [
- "cursor",
- "claude",
- "windsurf"
+ "created_at",
+ "updated_at",
+ "description",
+ "logo",
+ "categories",
+ "triggers_count",
+ "tools_count",
+ "version"
],
- "description": "Set of command line instructions for connecting various clients to this MCP server",
- "deprecated": true
- },
- "updated_at": {
- "type": "string",
- "description": "Date and time when this server configuration was last modified",
- "example": "2023-06-15T14:30:00.000Z"
- },
- "created_at": {
- "type": "string",
- "description": "Date and time when this server was initially created",
- "example": "2023-06-10T09:15:00.000Z"
- },
- "server_instance_count": {
- "type": "number",
- "description": "Total count of active user instances connected to this server",
- "example": 5
- },
- "managed_auth_via_composio": {
- "type": "boolean",
- "description": "Whether the MCP server is managed by Composio",
- "example": true
+ "description": "Additional metadata about the toolkit"
}
},
"required": [
- "id",
+ "slug",
"name",
- "auth_config_ids",
- "allowed_tools",
- "mcp_url",
- "toolkits",
- "toolkit_icons",
- "commands",
- "updated_at",
- "created_at",
- "server_instance_count",
- "managed_auth_via_composio"
+ "is_local_toolkit",
+ "deprecated",
+ "meta"
],
- "description": "MCP server configuration and connection details"
- },
- "description": "Array of MCP server configurations",
- "example": [
- {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "GitHub Integration Server",
- "auth_config_ids": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ],
- "allowed_tools": [
- "GITHUB_CREATE_AN_ISSUE",
- "GITHUB_GET_A_REPOSITORY"
- ],
- "mcp_url": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john",
- "commands": {
- "cursor": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor",
- "claude": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude",
- "windsurf": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
- },
- "toolkits": [
- "github",
- "jira",
- "slack"
- ],
- "toolkit_icons": {
- "github": "https://assets.composio.dev/logos/github.png",
- "jira": "https://assets.composio.dev/logos/jira.png",
- "slack": "https://assets.composio.dev/logos/slack.png"
+ "description": "Detailed information about a toolkit"
+ }
+ },
+ "next_cursor": {
+ "type": "string",
+ "nullable": true
+ },
+ "total_pages": {
+ "type": "number"
+ },
+ "current_page": {
+ "type": "number"
+ },
+ "total_items": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "items",
+ "total_pages",
+ "current_page",
+ "total_items"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request. The query parameters may be invalid or in an incorrect format.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not found. The toolkits you are looking for do not exist.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/toolkits/categories": {
+ "get": {
+ "summary": "List toolkit categories",
+ "description": "Retrieves a comprehensive list of all available toolkit categories from their latest versions. These categories can be used to filter toolkits by type or purpose when using the toolkit listing endpoint. Categories help organize toolkits into logical groups based on their functionality or industry focus.",
+ "tags": [
+ "Toolkits"
+ ],
+ "operationId": "getToolkitsCategories",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved a paginated list of all available toolkit categories with their identifiers and display names.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Display name of the toolkit category",
+ "example": "Developer Tools"
},
- "updated_at": "2023-06-15T14:30:00.000Z",
- "created_at": "2023-06-10T09:15:00.000Z",
- "server_instance_count": 5,
- "managed_auth_via_composio": true
- }
- ]
+ "id": {
+ "type": "string",
+ "description": "URL-friendly unique identifier for the category, used for filtering toolkits",
+ "example": "developer-tools"
+ }
+ },
+ "required": [
+ "name",
+ "id"
+ ],
+ "description": "Information about a single toolkit category"
+ }
+ },
+ "next_cursor": {
+ "type": "string",
+ "nullable": true
},
"total_pages": {
- "type": "number",
- "description": "Total number of pages in the paginated response",
- "example": 5
+ "type": "number"
},
"current_page": {
- "type": "number",
- "description": "Current page number being returned",
- "example": 1
+ "type": "number"
+ },
+ "total_items": {
+ "type": "number"
}
},
"required": [
"items",
"total_pages",
- "current_page"
- ],
- "description": "Paginated response containing MCP servers"
+ "current_page",
+ "total_items"
+ ]
}
}
}
},
"400": {
- "description": "Bad request. The query parameters may be invalid or in an incorrect format.",
+ "description": "Bad request. The request may be invalid or in an incorrect format.",
"content": {
"application/json": {
"schema": {
@@ -12362,8 +11805,8 @@
}
}
},
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to view MCP servers for this project.",
+ "404": {
+ "description": "Not found. The requested resource was not found.",
"content": {
"application/json": {
"schema": {
@@ -12384,14 +11827,16 @@
}
},
"x-api-version": "3.1"
- },
- "post": {
- "summary": "Create a new MCP server",
- "description": "Creates a new Model Control Protocol (MCP) server instance for the authenticated project. An MCP server provides a connection point for AI assistants to access your applications and services. The server is configured with specific authentication and tool permissions that determine what actions the connected assistants can perform.",
+ }
+ },
+ "/api/v3.1/toolkits/{slug}": {
+ "get": {
+ "summary": "Get toolkit by slug",
+ "description": "Retrieves comprehensive information about a specific toolkit using its unique slug identifier. This endpoint provides detailed metadata, authentication configuration options, and feature counts for the requested toolkit.",
"tags": [
- "MCP"
+ "Toolkits"
],
- "operationId": "postMcpServers",
+ "operationId": "getToolkitsBySlug",
"security": [
{
"ApiKeyAuth": []
@@ -12400,243 +11845,466 @@
"UserApiKeyAuth": []
}
],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "minLength": 4,
- "maxLength": 30,
- "pattern": "^[a-zA-Z0-9- ]+$",
- "description": "Human-readable name to identify this MCP server instance (4-30 characters, alphanumeric, spaces, and hyphens only)",
- "example": "Production GitHub Integration"
- },
- "auth_config_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "ID references to existing authentication configurations",
- "example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ]
- },
- "no_auth_apps": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of NO_AUTH apps to enable for this MCP server",
- "example": [
- "exa",
- "codeinterpreter",
- "composio",
- "composio_search"
- ]
- },
- "allowed_tools": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [],
- "description": "List of tool slugs that should be allowed for this server. If not provided, all available tools for the authentication configuration will be enabled.",
- "example": [
- "GITHUB_CREATE_AN_ISSUE",
- "GITHUB_GET_A_REPOSITORY",
- "GITHUB_LIST_PULL_REQUESTS"
- ]
- },
- "managed_auth_via_composio": {
- "type": "boolean",
- "description": "Whether the MCP server is managed by Composio"
- }
- },
- "required": [
- "name",
- "auth_config_ids"
- ],
- "description": "Request parameters for creating a new MCP server with specific authentication configuration"
- },
- "examples": {
- "Basic MCP Server": {
- "value": {
- "name": "GitHub Integration Server",
- "auth_config_ids": [
- "ac_1a2b3c4d5e6f"
- ]
- }
- },
- "Server with Limited Tools": {
- "value": {
- "name": "GitHub Issues Only",
- "auth_config_ids": [
- "ac_1a2b3c4d5e6f"
- ],
- "allowed_tools": [
- "GMAIL_ADD_LABEL_TO_EMAIL"
- ]
- }
- },
- "Server with Expiration": {
- "value": {
- "name": "Temporary Integration Server",
- "auth_config_ids": [
- "ac_1a2b3c4d5e6f"
- ]
- }
- }
- }
- }
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "The unique slug identifier of the toolkit to retrieve",
+ "example": "github"
+ },
+ "required": true,
+ "description": "Toolkit slug identifier",
+ "name": "slug",
+ "in": "path"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "default": "latest",
+ "description": "Version of the toolkit",
+ "example": "20250905_00"
+ },
+ "required": false,
+ "description": "Version of the toolkit",
+ "name": "version",
+ "in": "query"
}
- },
+ ],
"responses": {
- "201": {
- "description": "MCP server created successfully. Returns the complete server configuration including connection details and command instructions.",
+ "200": {
+ "description": "Successfully retrieved detailed information about the requested toolkit, including authentication options, metadata, and feature counts.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "id": {
+ "slug": {
"type": "string",
- "description": "UUID of the MCP server instance",
- "example": "550e8400-e29b-41d4-a716-446655440000"
+ "description": "URL-friendly unique identifier for the toolkit",
+ "example": "github"
},
"name": {
"type": "string",
- "description": "User-defined descriptive name for this MCP server",
- "example": "GitHub Integration Server"
+ "description": "Human-readable name of the toolkit",
+ "example": "GitHub"
},
- "auth_config_ids": {
+ "enabled": {
+ "type": "boolean",
+ "description": "Indicates if this toolkit is currently enabled and available for use",
+ "example": true
+ },
+ "composio_managed_auth_schemes": {
"type": "array",
"items": {
"type": "string"
},
- "description": "ID references to the auth configurations used by this server",
+ "description": "List of authentication methods that Composio manages for this toolkit",
"example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
+ "oauth2"
]
},
- "allowed_tools": {
+ "is_local_toolkit": {
+ "type": "boolean",
+ "description": "DEPRECATED: This field is no longer meaningful and will always return false. It was previously used to indicate if a toolkit is specific to the current project.",
+ "deprecated": true,
+ "example": false
+ },
+ "auth_config_details": {
"type": "array",
"items": {
- "type": "string"
+ "type": "object",
+ "properties": {
+ "mode": {
+ "type": "string",
+ "description": "The type of authentication mode (e.g., oauth2, basic_auth, api_key)",
+ "example": "oauth2"
+ },
+ "fields": {
+ "type": "object",
+ "properties": {
+ "auth_config_creation": {
+ "type": "object",
+ "properties": {
+ "required": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "default": {
+ "type": "string",
+ "nullable": true
+ },
+ "type": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "legacy_template_name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "displayName",
+ "type",
+ "description",
+ "required"
+ ]
+ }
+ },
+ "optional": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "default": {
+ "type": "string",
+ "nullable": true
+ },
+ "type": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "legacy_template_name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "displayName",
+ "type",
+ "description",
+ "required"
+ ]
+ }
+ }
+ },
+ "required": [
+ "required",
+ "optional"
+ ],
+ "description": "Form fields needed when creating an authentication configuration"
+ },
+ "connected_account_initiation": {
+ "type": "object",
+ "properties": {
+ "required": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "default": {
+ "type": "string",
+ "nullable": true
+ },
+ "type": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "legacy_template_name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "displayName",
+ "type",
+ "description",
+ "required"
+ ]
+ }
+ },
+ "optional": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "default": {
+ "type": "string",
+ "nullable": true
+ },
+ "type": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "legacy_template_name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "displayName",
+ "type",
+ "description",
+ "required"
+ ]
+ }
+ }
+ },
+ "required": [
+ "required",
+ "optional"
+ ],
+ "description": "Form fields needed when connecting a user account with this authentication method"
+ }
+ },
+ "required": [
+ "auth_config_creation",
+ "connected_account_initiation"
+ ],
+ "description": "Field groups required for different authentication stages"
+ },
+ "proxy": {
+ "type": "object",
+ "properties": {
+ "base_url": {
+ "type": "string",
+ "description": "URL to which authentication requests will be proxied",
+ "example": "https://auth.example.com/proxy"
+ }
+ },
+ "required": [
+ "base_url"
+ ],
+ "description": "Configuration for proxying authentication requests to external services"
+ },
+ "name": {
+ "type": "string",
+ "description": "Display name for this authentication method",
+ "example": "OAuth 2.0"
+ },
+ "auth_hint_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "URL to a page where users can obtain or configure credentials for this authentication method",
+ "example": "https://github.com/settings/tokens"
+ },
+ "deprecated_auth_provider_details": {
+ "type": "object",
+ "properties": {
+ "authorization_url": {
+ "type": "string"
+ },
+ "token_url": {
+ "type": "string"
+ }
+ },
+ "description": "Authentication URL fields for OAuth 2.0 and OAuth 1.0. We don't recommend using this field for authentication and might break post Aug 31 2025.",
+ "deprecated": true
+ }
+ },
+ "required": [
+ "mode",
+ "fields",
+ "name"
+ ],
+ "description": "Detailed configuration for an authentication method"
},
- "description": "Array of tool slugs that this MCP server is allowed to use",
- "example": [
- "GITHUB_CREATE_AN_ISSUE",
- "GITHUB_GET_A_REPOSITORY",
- "GITHUB_LIST_PULL_REQUESTS"
- ]
+ "description": "Complete authentication configuration details for each supported auth method"
},
- "mcp_url": {
+ "auth_guide_url": {
"type": "string",
- "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
- "deprecated": true,
- "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
- },
- "toolkits": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Array of toolkit slugs that this MCP server is allowed to use",
- "example": [
- "github",
- "jira",
- "slack"
- ]
+ "nullable": true,
+ "description": "URL to a guide page with authentication setup instructions for this toolkit",
+ "example": "https://composio.dev/auth/github"
},
- "toolkit_icons": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
- "example": {
- "github": "https://assets.composio.dev/logos/github.png",
- "jira": "https://assets.composio.dev/logos/jira.png",
- "slack": "https://assets.composio.dev/logos/slack.png"
- }
+ "base_url": {
+ "type": "string",
+ "description": "If evaluation of base URL needs some connection info (like shopify), please create the connection and get the base URL from there",
+ "example": "https://api.github.com"
},
- "commands": {
+ "meta": {
"type": "object",
"properties": {
- "cursor": {
+ "created_at": {
"type": "string",
- "description": "Command line instruction for Cursor client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ "description": "Creation date and time of the toolkit",
+ "example": "2023-01-15T09:30:00.000Z"
},
- "claude": {
+ "updated_at": {
"type": "string",
- "description": "Command line instruction for Claude client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ "description": "Last modification date and time of the toolkit",
+ "example": "2023-05-20T14:45:00.000Z"
},
- "windsurf": {
+ "description": {
"type": "string",
- "description": "Command line instruction for Windsurf client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ "description": "Human-readable description explaining the toolkit's purpose and functionality",
+ "example": "Integrate with GitHub repositories, issues, pull requests, and more."
+ },
+ "logo": {
+ "type": "string",
+ "description": "Image URL for the toolkit's branding",
+ "example": "https://assets.composio.dev/logos/github.png"
+ },
+ "app_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "Link to the toolkit's main application or service website",
+ "example": "https://github.com"
+ },
+ "categories": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Human-readable category name",
+ "example": "Developer Tools"
+ },
+ "slug": {
+ "type": "string",
+ "description": "URL-friendly identifier for the category",
+ "example": "developer-tools"
+ }
+ },
+ "required": [
+ "name",
+ "slug"
+ ]
+ },
+ "description": "List of categories associated with this toolkit",
+ "example": [
+ {
+ "name": "Developer Tools",
+ "slug": "developer-tools"
+ },
+ {
+ "name": "Productivity",
+ "slug": "productivity"
+ }
+ ]
+ },
+ "triggers_count": {
+ "type": "number",
+ "description": "Count of available triggers in this toolkit",
+ "example": 5
+ },
+ "tools_count": {
+ "type": "number",
+ "description": "Count of available tools in this toolkit",
+ "example": 12
+ },
+ "version": {
+ "type": "string",
+ "description": "Version of the toolkit",
+ "example": "20250905_00"
+ },
+ "available_versions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Available versions of the toolkit",
+ "example": [
+ "20250905_00",
+ "20250906_00"
+ ]
}
},
"required": [
- "cursor",
- "claude",
- "windsurf"
+ "created_at",
+ "updated_at",
+ "description",
+ "logo",
+ "categories",
+ "triggers_count",
+ "tools_count",
+ "version",
+ "available_versions"
],
- "description": "Set of command line instructions for connecting various clients to this MCP server",
- "deprecated": true
+ "description": "Comprehensive metadata for the toolkit including dates, descriptions, and statistics"
},
- "updated_at": {
+ "get_current_user_endpoint": {
"type": "string",
- "description": "Date and time when this server configuration was last modified",
- "example": "2023-06-15T14:30:00.000Z"
+ "description": "Endpoint to get the current user"
},
- "created_at": {
+ "get_current_user_endpoint_method": {
"type": "string",
- "description": "Date and time when this server was initially created",
- "example": "2023-06-10T09:15:00.000Z"
- },
- "server_instance_count": {
- "type": "number",
- "description": "Total count of active user instances connected to this server",
- "example": 5
+ "description": "HTTP method to use when calling the get current user endpoint (e.g., GET, POST)",
+ "example": "GET"
},
- "managed_auth_via_composio": {
- "type": "boolean",
- "description": "Whether the MCP server is managed by Composio",
- "example": true
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "toolkitId": {
+ "type": "string"
+ },
+ "getCurrentUserEndpoint": {
+ "type": "string"
+ },
+ "rawProxyInfoByAuthSchemes": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "additionalProperties": {}
+ }
+ }
+ },
+ "required": [
+ "toolkitId",
+ "rawProxyInfoByAuthSchemes"
+ ]
}
},
"required": [
- "id",
+ "slug",
"name",
- "auth_config_ids",
- "allowed_tools",
- "mcp_url",
- "toolkits",
- "toolkit_icons",
- "commands",
- "updated_at",
- "created_at",
- "server_instance_count",
- "managed_auth_via_composio"
+ "enabled",
+ "is_local_toolkit",
+ "meta",
+ "deprecated"
],
- "description": "MCP server configuration and connection details"
+ "description": "Detailed information about a single toolkit"
}
}
}
},
"400": {
- "description": "Bad request. The request body may be invalid, missing required parameters, or the auth_config_id may not exist.",
+ "description": "Bad request. The toolkit slug may be invalid or in an incorrect format.",
"content": {
"application/json": {
"schema": {
@@ -12655,18 +12323,8 @@
}
}
},
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to create MCP servers for this project.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
"404": {
- "description": "Not Found. The specified auth_config_id does not exist or is not accessible to the authenticated user.",
+ "description": "Not found. The requested toolkit does not exist or is not accessible to the authenticated project.",
"content": {
"application/json": {
"schema": {
@@ -12676,7 +12334,7 @@
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error. An unexpect ed error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -12689,14 +12347,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/mcp/servers/custom": {
+ "/api/v3.1/toolkits/multi": {
"post": {
- "summary": "Create a new custom MCP server with multiple apps",
- "description": "Creates a new Model Control Protocol (MCP) server instance that can integrate with multiple applications or toolkits simultaneously. This endpoint allows you to create a server that can access tools from different applications, making it suitable for complex workflows that span multiple services.",
+ "summary": "Fetch multiple toolkits",
+ "description": "Retrieves a comprehensive list of toolkits of their latest versions that are available to the authenticated project. Toolkits represent integration points with external services and applications, each containing a collection of tools and triggers. This endpoint supports filtering by category and management type, as well as different sorting options. You can optionally specify a list of toolkit slugs to fetch specific toolkits.",
"tags": [
- "MCP"
+ "Toolkits"
],
- "operationId": "postMcpServersCustom",
+ "operationId": "postToolkitsMulti",
"security": [
{
"ApiKeyAuth": []
@@ -12711,185 +12369,244 @@
"schema": {
"type": "object",
"properties": {
- "name": {
- "type": "string",
- "minLength": 4,
- "maxLength": 30,
- "pattern": "^[a-zA-Z0-9- ]+$",
- "description": "Human-readable name to identify this custom MCP server (4-30 characters, alphanumeric, spaces, and hyphens only)",
- "example": "Multi App Integration Server"
- },
- "auth_config_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "ID references to existing authentication configurations",
- "example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ]
- },
"toolkits": {
"type": "array",
"items": {
"type": "string"
},
- "description": "List of application/toolkit identifiers to enable for this server",
+ "description": "Array of toolkit slug identifiers to retrieve",
"example": [
"github",
- "jira",
- "slack"
+ "slack",
+ "gmail"
]
},
- "allowed_tools": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Tool identifiers to enable that aren't part of standard toolkits",
- "example": [
- "GITHUB_CREATE_AN_ISSUE",
- "SLACK_SEND_MESSAGE"
- ]
+ "category": {
+ "type": "string",
+ "description": "Category ID or name to filter toolkits by",
+ "example": "productivity"
},
- "custom_tools": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "DEPRECATED: Use allowed_tools instead. Tool identifiers to enable that aren't part of standard toolkits",
- "example": [
- "GITHUB_CREATE_AN_ISSUE",
- "SLACK_SEND_MESSAGE"
- ]
+ "managed_by": {
+ "type": "string",
+ "enum": [
+ "composio",
+ "all",
+ "project"
+ ],
+ "description": "Entity responsible for managing the toolkits"
+ },
+ "sort_by": {
+ "type": "string",
+ "enum": [
+ "usage",
+ "alphabetically"
+ ],
+ "description": "Determines how toolkits should be sorted in the response"
+ },
+ "limit": {
+ "type": "number",
+ "nullable": true
},
- "managed_auth_via_composio": {
- "type": "boolean",
- "description": "Whether to manage authentication via Composio"
- }
- },
- "required": [
- "name"
- ],
- "description": "Parameters for creating a new custom MCP server with multiple applications"
- },
- "examples": {
- "Basic Multi-App Server": {
- "value": {
- "name": "Development Integration Server",
- "toolkits": [
- "github",
- "jira"
- ]
+ "cursor": {
+ "type": "string"
}
},
- "Advanced Multi-App Server": {
- "value": {
- "name": "Complete Workflow Integration",
- "toolkits": [
- "github",
- "jira",
- "slack"
- ],
- "custom_tools": [
- "SLACK_SEND_MESSAGE"
- ]
- }
- }
+ "description": "Body parameters for filtering and sorting toolkits"
}
}
}
},
"responses": {
- "201": {
- "description": "Custom MCP server created successfully. Returns the complete server configuration including connection details and command instructions for all specified applications.",
+ "200": {
+ "description": "Toolkits retrieved successfully. Returns a paginated list of available toolkits with detailed metadata.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "description": "Unique identifier for the newly created custom MCP server",
- "example": "550e8400-e29b-41d4-a716-446655440000"
- },
- "name": {
- "type": "string",
- "description": "Human-readable name of the custom MCP server",
- "example": "Multi-App Integration Server"
- },
- "auth_config_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "ID references to the auth configurations used by this server",
- "example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ]
- },
- "allowed_tools": {
+ "items": {
"type": "array",
"items": {
- "type": "string"
- },
- "description": "List of tool identifiers that are enabled for this server",
- "example": [
- "GITHUB_CREATE_AN_ISSUE",
- "JIRA_GET_ISSUE",
- "SLACK_SEND_MESSAGE",
- "GMAIL_SEND_EMAIL"
- ]
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "URL-friendly unique identifier for the toolkit",
+ "example": "github"
+ },
+ "name": {
+ "type": "string",
+ "description": "Human-readable name of the toolkit",
+ "example": "GitHub"
+ },
+ "auth_schemes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of authentication methods supported by this toolkit",
+ "example": [
+ "oauth2",
+ "api_key"
+ ]
+ },
+ "composio_managed_auth_schemes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of authentication methods that Composio manages for this toolkit",
+ "example": [
+ "oauth2"
+ ]
+ },
+ "is_local_toolkit": {
+ "type": "boolean",
+ "description": "DEPRECATED: This field is no longer meaningful and will always return false. It was previously used to indicate if a toolkit is specific to the current project.",
+ "deprecated": true,
+ "example": false
+ },
+ "no_auth": {
+ "type": "boolean",
+ "description": "When true, this toolkit can be used without authentication",
+ "example": false
+ },
+ "auth_guide_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "URL to a guide page with authentication setup instructions for this toolkit",
+ "example": "https://composio.dev/auth/github"
+ },
+ "deprecated": {
+ "$ref": "#/components/schemas/DeprecatedToolkitInfo"
+ },
+ "meta": {
+ "type": "object",
+ "properties": {
+ "created_at": {
+ "type": "string",
+ "description": "Creation date and time of the toolkit",
+ "example": "2023-01-15T09:30:00.000Z"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "Last modification date and time of the toolkit",
+ "example": "2023-05-20T14:45:00.000Z"
+ },
+ "description": {
+ "type": "string",
+ "description": "Human-readable description explaining the toolkit's purpose and functionality",
+ "example": "Integrate with GitHub repositories, issues, pull requests, and more."
+ },
+ "logo": {
+ "type": "string",
+ "description": "Image URL for the toolkit's branding",
+ "example": "https://assets.composio.dev/logos/github.png"
+ },
+ "app_url": {
+ "type": "string",
+ "nullable": true,
+ "description": "Link to the toolkit's main application or service website",
+ "example": "https://github.com"
+ },
+ "categories": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Category identifier",
+ "example": "developer-tools"
+ },
+ "name": {
+ "type": "string",
+ "description": "Human-readable category name",
+ "example": "Developer Tools"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ]
+ },
+ "description": "List of categories associated with this toolkit",
+ "example": [
+ {
+ "id": "developer-tools",
+ "name": "Developer Tools"
+ },
+ {
+ "id": "productivity",
+ "name": "Productivity"
+ }
+ ]
+ },
+ "triggers_count": {
+ "type": "number",
+ "description": "Count of available triggers in this toolkit",
+ "example": 5
+ },
+ "tools_count": {
+ "type": "number",
+ "description": "Count of available tools in this toolkit",
+ "example": 12
+ },
+ "version": {
+ "type": "string",
+ "description": "Version of the toolkit",
+ "example": "20250905_00"
+ }
+ },
+ "required": [
+ "created_at",
+ "updated_at",
+ "description",
+ "logo",
+ "categories",
+ "triggers_count",
+ "tools_count",
+ "version"
+ ],
+ "description": "Additional metadata about the toolkit"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "is_local_toolkit",
+ "deprecated",
+ "meta"
+ ],
+ "description": "Detailed information about a toolkit"
+ }
},
- "mcp_url": {
+ "next_cursor": {
"type": "string",
- "description": "URL endpoint for establishing connection to this MCP server",
- "example": "https://backend.composio.dev/v3/mcp/550e8410-e29b-41d4-a716-446655440000?user_id=john"
- },
- "commands": {
- "type": "object",
- "properties": {
- "cursor": {
- "type": "string",
- "description": "Command line instruction for Cursor client setup",
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8410-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
- },
- "claude": {
- "type": "string",
- "description": "Command line instruction for Claude client setup",
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8410-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
- },
- "windsurf": {
- "type": "string",
- "description": "Command line instruction for Windsurf client setup",
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8410-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
- }
- },
- "required": [
- "cursor",
- "claude",
- "windsurf"
- ],
- "description": "Set of command line instructions for connecting various clients to this MCP server"
+ "nullable": true
+ },
+ "total_pages": {
+ "type": "number"
+ },
+ "current_page": {
+ "type": "number"
+ },
+ "total_items": {
+ "type": "number"
}
},
"required": [
- "id",
- "name",
- "auth_config_ids",
- "allowed_tools",
- "mcp_url",
- "commands"
- ],
- "description": "Response for a successfully created custom MCP server with multiple applications"
+ "items",
+ "total_pages",
+ "current_page",
+ "total_items"
+ ]
}
}
}
},
"400": {
- "description": "Bad request. The request body may be invalid, missing required parameters, or contain invalid toolkit identifiers.",
+ "description": "Bad request. The query parameters may be invalid or in an incorrect format.",
"content": {
"application/json": {
"schema": {
@@ -12908,8 +12625,8 @@
}
}
},
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to create MCP servers for this project.",
+ "404": {
+ "description": "Not found. The toolkits you are looking for do not exist.",
"content": {
"application/json": {
"schema": {
@@ -12932,14 +12649,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/mcp/servers/generate": {
+ "/api/v3.1/trigger_instances/{slug}/upsert": {
"post": {
- "summary": "Generate MCP URL with custom parameters",
- "description": "Generates a Model Control Protocol (MCP) URL for an existing server with custom query parameters. The URL includes user-specific parameters and configuration flags that control the behavior of the MCP connection.",
+ "summary": "Create or update a trigger",
+ "description": "Creates a new trigger instance or updates an existing one with the same configuration. Triggers listen for events from external services (webhooks or polling) and can invoke your workflows. If a matching trigger already exists and is disabled, it will be re-enabled. Requires a connected account ID to associate the trigger with a specific user connection.",
"tags": [
- "MCP"
+ "Triggers"
],
- "operationId": "postMcpServersGenerate",
+ "operationId": "postTriggerInstancesBySlugUpsert",
"security": [
{
"ApiKeyAuth": []
@@ -12948,131 +12665,194 @@
"UserApiKeyAuth": []
}
],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "The slug of the trigger instance. Case-insensitive (internally normalized to uppercase)."
+ },
+ "required": true,
+ "description": "The slug of the trigger instance. Case-insensitive (internally normalized to uppercase).",
+ "name": "slug",
+ "in": "path"
+ }
+ ],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "mcp_server_id": {
+ "connectedAuthId": {
"type": "string",
- "description": "Unique identifier of the MCP server to generate URL for",
- "example": "550e8400-e29b-41d4-a716-446655440000"
+ "format": "connectedAccountId",
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use connected_account_id instead.",
+ "deprecated": true
},
- "managed_auth_by_composio": {
- "type": "boolean",
- "default": false,
- "description": "Flag indicating if Composio manages authentication",
- "example": true
+ "triggerConfig": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_config instead.",
+ "deprecated": true
},
- "user_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of user identifiers for whom the URL is generated",
- "example": [
- "user_123456",
- "user_789012"
- ]
+ "connected_account_id": {
+ "type": "string",
+ "format": "connectedAccountId",
+ "description": "Connected account nanoid"
},
- "connected_account_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of connected account identifiers",
- "example": [
- "ca_1a2b3c4d5e6f",
- "ca_7g8h9i0j1k2l",
- "ca_3m4n5o6p7q8r"
- ]
- }
- },
- "required": [
- "mcp_server_id"
- ],
- "description": "Request parameters for generating an MCP URL"
- },
- "examples": {
- "Basic URL Generation": {
- "value": {
- "mcp_server_id": "550e8400-e29b-41d4-a716-446655440000",
- "user_ids": [
- "user_123456"
- ],
- "connected_account_ids": [
- "ca_1a2b3c4d5e6f",
- "ca_7g8h9i0j1k2l"
- ]
- }
- },
- "Managed Auth Configuration": {
- "value": {
- "mcp_server_id": "550e8400-e29b-41d4-a716-446655440000",
- "user_ids": [
- "user_123456",
- "user_789012"
+ "trigger_config": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Trigger configuration"
+ },
+ "version": {
+ "type": "string",
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use toolkit_versions instead.",
+ "deprecated": true,
+ "example": "latest"
+ },
+ "toolkit_versions": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "nullable": true,
+ "type": "object"
+ }
],
- "connected_account_ids": [
- "ca_1a2b3c4d5e6f",
- "ca_7g8h9i0j1k2l",
- "ca_3m4n5o6p7q8r"
- ]
+ "description": "Toolkit version specification. Supports \"latest\" string or a record mapping toolkit slugs to specific versions.",
+ "example": "latest"
}
}
}
}
- }
- },
- "responses": {
- "200": {
- "description": "Successfully generated MCP URL. Returns the complete URL with all specified query parameters.",
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Successfully upserted trigger instance",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "trigger_id": {
+ "type": "string",
+ "description": "ID of the updated trigger"
+ },
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "uuid": {
+ "type": "string",
+ "description": "ID of the updated trigger"
+ }
+ },
+ "required": [
+ "uuid"
+ ]
+ }
+ },
+ "required": [
+ "trigger_id",
+ "deprecated"
+ ]
+ }
+ }
+ }
+ },
+ "201": {
+ "description": "Successfully created trigger instance",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "trigger_id": {
+ "type": "string",
+ "description": "ID of the updated trigger"
+ },
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "uuid": {
+ "type": "string",
+ "description": "ID of the updated trigger"
+ }
+ },
+ "required": [
+ "uuid"
+ ]
+ }
+ },
+ "required": [
+ "trigger_id",
+ "deprecated"
+ ]
+ }
+ }
+ }
+ },
+ "204": {
+ "description": "No content",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {}
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Trigger instance not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "408": {
+ "description": "Request timeout",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {
- "mcp_url": {
- "type": "string",
- "description": "Base MCP URL without any query parameters",
- "example": "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000"
- },
- "connected_account_urls": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of URLs generated for each connected account ID",
- "example": [
- "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_ids=ca_1a2b3c4d5e6f&user_id=user_123456,user_789012",
- "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_ids=ca_7g8h9i0j1k2l&user_id=user_123456,user_789012"
- ]
- },
- "user_ids_url": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of URLs generated for each user ID",
- "example": [
- "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_ids=ca_1a2b3c4d5e6f,ca_7g8h9i0j1k2l&user_id=user_123456",
- "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_ids=ca_1a2b3c4d5e6f,ca_7g8h9i0j1k2l&user_id=user_789012"
- ]
- }
- },
- "required": [
- "mcp_url",
- "connected_account_urls",
- "user_ids_url"
- ],
- "description": "Response containing the generated MCP URLs"
+ "$ref": "#/components/schemas/Error"
}
}
}
},
- "400": {
- "description": "Bad request. The request body may be invalid or missing required parameters.",
+ "409": {
+ "description": "Conflict",
"content": {
"application/json": {
"schema": {
@@ -13081,8 +12861,8 @@
}
}
},
- "401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "410": {
+ "description": "Gone",
"content": {
"application/json": {
"schema": {
@@ -13091,8 +12871,8 @@
}
}
},
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to access this MCP server.",
+ "422": {
+ "description": "Unprocessable entity",
"content": {
"application/json": {
"schema": {
@@ -13101,8 +12881,18 @@
}
}
},
- "404": {
- "description": "MCP server not found. No server with the specified ID exists or it has been deleted.",
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "501": {
+ "description": "Not implemented",
"content": {
"application/json": {
"schema": {
@@ -13110,198 +12900,387 @@
}
}
}
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/trigger_instances/active": {
+ "get": {
+ "summary": "List active triggers",
+ "description": "Retrieves all active trigger instances for your project. Triggers listen for events from connected accounts (e.g., new emails, Slack messages, GitHub commits) and can invoke webhooks or workflows. Use filters to find triggers for specific users, connected accounts, or trigger types.",
+ "tags": [
+ "Triggers"
+ ],
+ "operationId": "getTriggerInstancesActive",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of user IDs to filter triggers by"
+ },
+ "required": false,
+ "description": "Array of user IDs to filter triggers by",
+ "name": "user_ids",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "connectedAccountId"
+ },
+ "description": "Array of connected account IDs to filter triggers by"
+ },
+ "required": false,
+ "description": "Array of connected account IDs to filter triggers by",
+ "name": "connected_account_ids",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "authConfigId"
+ },
+ "description": "Array of auth config IDs to filter triggers by"
+ },
+ "required": false,
+ "description": "Array of auth config IDs to filter triggers by",
+ "name": "auth_config_ids",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "triggerInstanceId"
+ },
+ "description": "Array of trigger IDs to filter triggers by"
+ },
+ "required": false,
+ "description": "Array of trigger IDs to filter triggers by",
+ "name": "trigger_ids",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of trigger names to filter triggers by. Case-insensitive (internally normalized to uppercase)."
+ },
+ "required": false,
+ "description": "Array of trigger names to filter triggers by. Case-insensitive (internally normalized to uppercase).",
+ "name": "trigger_names",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "connectedAccountId"
+ }
+ },
+ "required": false,
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use connected_account_ids instead.",
+ "deprecated": true,
+ "name": "connectedAccountIds",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "authConfigId"
+ }
+ },
+ "required": false,
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use auth_config_ids instead.",
+ "deprecated": true,
+ "name": "authConfigIds",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string",
+ "format": "triggerInstanceId"
+ }
+ },
+ "required": false,
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_ids instead.",
+ "deprecated": true,
+ "name": "triggerIds",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "boolean",
+ "nullable": true,
+ "default": false,
+ "description": "When set to true, includes disabled triggers in the response."
+ },
+ "required": false,
+ "description": "When set to true, includes disabled triggers in the response.",
+ "name": "show_disabled",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ }
+ },
+ "required": false,
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_names instead.",
+ "deprecated": true,
+ "name": "triggerNames",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "boolean",
+ "nullable": true,
+ "default": false,
+ "description": "DEPRECATED: Use show_disabled instead"
+ },
+ "required": false,
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use show_disabled instead.",
+ "deprecated": true,
+ "name": "showDisabled",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of connected account UUIDs to filter triggers by"
+ },
+ "required": false,
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use connected_account_ids instead.",
+ "deprecated": true,
+ "name": "deprecatedConnectedAccountUuids",
+ "in": "query"
},
- "500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- }
- },
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/mcp/{id}": {
- "get": {
- "summary": "Get MCP server details by ID",
- "description": "Retrieves detailed configuration information for a specific Model Control Protocol (MCP) server. The returned data includes connection details, associated applications, enabled tools, and authentication configuration.",
- "tags": [
- "MCP"
- ],
- "operationId": "getMcpById",
- "security": [
{
- "ApiKeyAuth": []
+ "schema": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of auth config UUIDs to filter triggers by"
+ },
+ "required": false,
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use auth_config_ids instead.",
+ "deprecated": true,
+ "name": "deprecatedAuthConfigUuids",
+ "in": "query"
},
{
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
+ "schema": {
+ "type": "number",
+ "nullable": true
+ },
+ "required": false,
+ "description": "Number of items per page, max allowed is 1000",
+ "name": "limit",
+ "in": "query"
+ },
{
"schema": {
- "type": "string",
- "description": "Unique identifier of the MCP server to retrieve, update, or delete",
- "example": "550e8400-e29b-41d4-a716-446655440000"
+ "type": "string"
},
- "required": true,
- "description": "The ID of the MCP server",
- "name": "id",
- "in": "path"
+ "required": false,
+ "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
+ "name": "cursor",
+ "in": "query"
}
],
"responses": {
"200": {
- "description": "Successfully retrieved MCP server. Returns the complete server configuration including connection details, authentication settings, and available tools.",
+ "description": "Successfully retrieved active trigger instances",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "description": "UUID of the MCP server instance",
- "example": "550e8400-e29b-41d4-a716-446655440000"
- },
- "name": {
- "type": "string",
- "description": "User-defined descriptive name for this MCP server",
- "example": "GitHub Integration Server"
- },
- "auth_config_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "ID references to the auth configurations used by this server",
- "example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ]
- },
- "allowed_tools": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Array of tool slugs that this MCP server is allowed to use",
- "example": [
- "GITHUB_CREATE_AN_ISSUE",
- "GITHUB_GET_A_REPOSITORY",
- "GITHUB_LIST_PULL_REQUESTS"
- ]
- },
- "mcp_url": {
- "type": "string",
- "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
- "deprecated": true,
- "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
- },
- "toolkits": {
+ "items": {
"type": "array",
"items": {
- "type": "string"
- },
- "description": "Array of toolkit slugs that this MCP server is allowed to use",
- "example": [
- "github",
- "jira",
- "slack"
- ]
- },
- "toolkit_icons": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
- "example": {
- "github": "https://assets.composio.dev/logos/github.png",
- "jira": "https://assets.composio.dev/logos/jira.png",
- "slack": "https://assets.composio.dev/logos/slack.png"
- }
- },
- "commands": {
- "type": "object",
- "properties": {
- "cursor": {
- "type": "string",
- "description": "Command line instruction for Cursor client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
- },
- "claude": {
- "type": "string",
- "description": "Command line instruction for Claude client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
- },
- "windsurf": {
- "type": "string",
- "description": "Command line instruction for Windsurf client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
- }
- },
- "required": [
- "cursor",
- "claude",
- "windsurf"
- ],
- "description": "Set of command line instructions for connecting various clients to this MCP server",
- "deprecated": true
- },
- "updated_at": {
- "type": "string",
- "description": "Date and time when this server configuration was last modified",
- "example": "2023-06-15T14:30:00.000Z"
+ "type": "object",
+ "properties": {
+ "uuid": {
+ "type": "string",
+ "description": "Unique identifier of the trigger instance"
+ },
+ "id": {
+ "type": "string",
+ "format": "triggerInstanceId",
+ "description": "Nano ID of the trigger instance"
+ },
+ "connected_account_id": {
+ "type": "string",
+ "description": "ID of the connected account this trigger is associated with"
+ },
+ "trigger_name": {
+ "type": "string",
+ "description": "Name of the trigger"
+ },
+ "connected_account_uuid": {
+ "type": "string",
+ "description": "UUID of the connected account this trigger is associated with"
+ },
+ "user_id": {
+ "type": "string",
+ "description": "ID of the user this trigger is associated with"
+ },
+ "trigger_data": {
+ "type": "string",
+ "description": "Additional data associated with the trigger instance"
+ },
+ "version": {
+ "type": "string",
+ "description": "Version of the trigger instance"
+ },
+ "trigger_config": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Configuration for the trigger"
+ },
+ "state": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "DEPRECATED: This field exposes internal state and will be removed in a future version.",
+ "deprecated": true
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "ISO 8601 timestamp when the trigger instance was updated"
+ },
+ "disabled_at": {
+ "type": "string",
+ "nullable": true,
+ "description": "ISO 8601 timestamp when the trigger instance was disabled, if applicable"
+ },
+ "disabledAt": {
+ "type": "string",
+ "nullable": true,
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use disabled_at instead.",
+ "deprecated": true
+ },
+ "connectedAccountId": {
+ "type": "string",
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use connected_account_id instead.",
+ "deprecated": true
+ },
+ "triggerName": {
+ "type": "string",
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_name instead.",
+ "deprecated": true
+ },
+ "updatedAt": {
+ "type": "string",
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use updated_at instead.",
+ "deprecated": true
+ },
+ "triggerConfig": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "DEPRECATED: This parameter will be removed in a future version. Please use trigger_config instead.",
+ "deprecated": true
+ },
+ "deprecated": {
+ "type": "object",
+ "properties": {
+ "createdAt": {
+ "type": "string",
+ "description": "Deprecated created_at for the trigger instance"
+ }
+ },
+ "required": [
+ "createdAt"
+ ],
+ "description": "Deprecated fields for the trigger instance"
+ }
+ },
+ "required": [
+ "id",
+ "connected_account_id",
+ "trigger_name",
+ "connected_account_uuid",
+ "user_id",
+ "version",
+ "trigger_config",
+ "state",
+ "updated_at",
+ "disabled_at",
+ "disabledAt",
+ "connectedAccountId",
+ "triggerName",
+ "updatedAt",
+ "triggerConfig"
+ ]
+ }
},
- "created_at": {
+ "next_cursor": {
"type": "string",
- "description": "Date and time when this server was initially created",
- "example": "2023-06-10T09:15:00.000Z"
+ "nullable": true
},
- "server_instance_count": {
- "type": "number",
- "description": "Total count of active user instances connected to this server",
- "example": 5
+ "total_pages": {
+ "type": "number"
},
- "managed_auth_via_composio": {
- "type": "boolean",
- "description": "Whether the MCP server is managed by Composio",
- "example": true
+ "current_page": {
+ "type": "number"
},
- "deleted": {
- "type": "boolean",
- "description": "Whether the MCP server is deleted"
+ "total_items": {
+ "type": "number"
}
},
"required": [
- "id",
- "name",
- "auth_config_ids",
- "allowed_tools",
- "mcp_url",
- "toolkits",
- "toolkit_icons",
- "commands",
- "updated_at",
- "created_at",
- "server_instance_count",
- "managed_auth_via_composio",
- "deleted"
- ],
- "description": "MCP server configuration and connection details"
+ "items",
+ "total_pages",
+ "current_page",
+ "total_items"
+ ]
}
}
}
},
"400": {
- "description": "Bad request. The server ID parameter may be invalid or in an incorrect format.",
+ "description": "Bad request",
"content": {
"application/json": {
"schema": {
@@ -13311,27 +13290,7 @@
}
},
"401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to view this MCP server.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "404": {
- "description": "MCP server not found. No server with the specified ID exists or it has been deleted.",
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -13341,7 +13300,7 @@
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error",
"content": {
"application/json": {
"schema": {
@@ -13352,14 +13311,16 @@
}
},
"x-api-version": "3.1"
- },
- "patch": {
- "summary": "Update MCP server configuration",
- "description": "Updates the configuration of an existing Model Control Protocol (MCP) server. You can modify the server name, associated applications, and enabled tools. Only the fields included in the request will be updated.",
+ }
+ },
+ "/api/v3.1/trigger_instances/manage/{triggerId}": {
+ "delete": {
+ "summary": "Delete a trigger",
+ "description": "Permanently deletes a trigger instance. This stops the trigger from listening for events and removes it from your project. Use the PATCH endpoint with status \"disable\" if you want to temporarily pause a trigger instead.",
"tags": [
- "MCP"
+ "Triggers"
],
- "operationId": "patchMcpById",
+ "operationId": "deleteTriggerInstancesManageByTriggerId",
"security": [
{
"ApiKeyAuth": []
@@ -13372,278 +13333,203 @@
{
"schema": {
"type": "string",
- "description": "Unique identifier of the MCP server to retrieve, update, or delete",
- "example": "550e8400-e29b-41d4-a716-446655440000"
+ "format": "triggerInstanceId",
+ "description": "The ID of the trigger instance to delete"
},
"required": true,
- "description": "The ID of the MCP server",
- "name": "id",
+ "description": "The ID of the trigger instance to delete",
+ "name": "triggerId",
"in": "path"
}
],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "Human-readable name to identify this MCP server instance (4-30 characters, alphanumeric, spaces, and hyphens only)",
- "example": "Production GitHub Integration"
- },
- "toolkits": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of toolkit slugs this server should be configured to work with.",
- "example": [
- "gmail",
- "notion"
- ]
- },
- "allowed_tools": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of action identifiers that should be enabled for this server",
- "example": [
- "GMAIL_ADD_LABEL_TO_EMAIL"
- ]
- },
- "managed_auth_via_composio": {
- "type": "boolean",
- "description": "Whether the MCP server is managed by Composio",
- "example": true
+ "responses": {
+ "200": {
+ "description": "Successfully deleted the trigger instance",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "trigger_id": {
+ "type": "string",
+ "format": "triggerInstanceId",
+ "description": "The ID of the deleted trigger instance"
+ }
},
- "auth_config_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "List of auth config IDs to use for this MCP server.",
- "example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ]
- }
- },
- "description": "Parameters for updating an existing MCP server configuration"
- },
- "examples": {
- "Update Server Name": {
- "value": {
- "name": "Updated GitHub Integration Server"
- }
- },
- "Update Single Auth Config": {
- "value": {
- "auth_config_ids": [
- "ac_1a2b3c4d5e6f"
- ],
- "toolkits": [
- "gmail"
- ],
- "allowed_tools": [
- "GMAIL_ADD_LABEL_TO_EMAIL"
- ]
- }
- },
- "Update Multiple Auth Configs": {
- "value": {
- "auth_config_ids": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ],
- "toolkits": [
- "gmail",
- "notion"
- ],
- "allowed_tools": [
- "GMAIL_ADD_LABEL_TO_EMAIL",
- "NOTION_CREATE_NOTION_PAGE"
- ]
- }
- },
- "Update Toolkits Only": {
- "value": {
- "toolkits": [
- "gmail",
- "notion"
+ "required": [
+ "trigger_id"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Trigger instance not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "409": {
+ "description": "Trigger instance already deleted",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "410": {
+ "description": "Trigger instance already gone",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ },
+ "patch": {
+ "summary": "Enable or disable a trigger",
+ "description": "Updates the status of a trigger instance to enable or disable it. Disabling a trigger pauses event listening without deleting the trigger configuration. Re-enabling restores the trigger to its active state. Use this for temporary maintenance or to control trigger execution.",
+ "tags": [
+ "Triggers"
+ ],
+ "operationId": "patchTriggerInstancesManageByTriggerId",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "format": "triggerInstanceId",
+ "description": "The ID of the trigger instance to update"
+ },
+ "required": true,
+ "description": "The ID of the trigger instance to update",
+ "name": "triggerId",
+ "in": "path"
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string",
+ "enum": [
+ "enable",
+ "disable"
]
}
},
- "Full Update": {
- "value": {
- "name": "Production Multi-App MCP Server",
- "auth_config_ids": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ],
- "toolkits": [
- "gmail",
- "notion"
- ],
- "allowed_tools": [
- "GMAIL_ADD_LABEL_TO_EMAIL",
- "NOTION_CREATE_NOTION_PAGE"
- ]
- }
- }
+ "required": [
+ "status"
+ ]
}
}
}
},
"responses": {
"200": {
- "description": "Successfully updated MCP server. Returns the complete updated server configuration including connection details, authentication settings, and available tools.",
+ "description": "Successfully updated trigger status",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "id": {
- "type": "string",
- "description": "UUID of the MCP server instance",
- "example": "550e8400-e29b-41d4-a716-446655440000"
- },
- "name": {
- "type": "string",
- "description": "User-defined descriptive name for this MCP server",
- "example": "GitHub Integration Server"
- },
- "auth_config_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "ID references to the auth configurations used by this server",
- "example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ]
- },
- "allowed_tools": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Array of tool slugs that this MCP server is allowed to use",
- "example": [
- "GITHUB_CREATE_AN_ISSUE",
- "GITHUB_GET_A_REPOSITORY",
- "GITHUB_LIST_PULL_REQUESTS"
- ]
- },
- "mcp_url": {
+ "status": {
"type": "string",
- "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
- "deprecated": true,
- "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
- },
- "toolkits": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Array of toolkit slugs that this MCP server is allowed to use",
- "example": [
- "github",
- "jira",
- "slack"
- ]
- },
- "toolkit_icons": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
- "example": {
- "github": "https://assets.composio.dev/logos/github.png",
- "jira": "https://assets.composio.dev/logos/jira.png",
- "slack": "https://assets.composio.dev/logos/slack.png"
- }
- },
- "commands": {
- "type": "object",
- "properties": {
- "cursor": {
- "type": "string",
- "description": "Command line instruction for Cursor client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
- },
- "claude": {
- "type": "string",
- "description": "Command line instruction for Claude client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
- },
- "windsurf": {
- "type": "string",
- "description": "Command line instruction for Windsurf client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
- }
- },
- "required": [
- "cursor",
- "claude",
- "windsurf"
+ "enum": [
+ "success"
],
- "description": "Set of command line instructions for connecting various clients to this MCP server",
- "deprecated": true
- },
- "updated_at": {
- "type": "string",
- "description": "Date and time when this server configuration was last modified",
- "example": "2023-06-15T14:30:00.000Z"
- },
- "created_at": {
- "type": "string",
- "description": "Date and time when this server was initially created",
- "example": "2023-06-10T09:15:00.000Z"
- },
- "server_instance_count": {
- "type": "number",
- "description": "Total count of active user instances connected to this server",
- "example": 5
- },
- "managed_auth_via_composio": {
- "type": "boolean",
- "description": "Whether the MCP server is managed by Composio",
- "example": true
- },
- "deleted": {
- "type": "boolean",
- "description": "Whether the MCP server is deleted"
+ "description": "Status of the operation"
}
},
"required": [
- "id",
- "name",
- "auth_config_ids",
- "allowed_tools",
- "mcp_url",
- "toolkits",
- "toolkit_icons",
- "commands",
- "updated_at",
- "created_at",
- "server_instance_count",
- "managed_auth_via_composio",
- "deleted"
- ],
- "description": "MCP server configuration and connection details"
+ "status"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad Request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Trigger instance not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
}
}
}
},
- "400": {
- "description": "Bad request. The request parameters may be invalid or in an incorrect format.",
+ "409": {
+ "description": "Trigger instance already enabled/disabled",
"content": {
"application/json": {
"schema": {
@@ -13652,8 +13538,8 @@
}
}
},
- "401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "410": {
+ "description": "Trigger instance already gone",
"content": {
"application/json": {
"schema": {
@@ -13662,8 +13548,73 @@
}
}
},
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to update this MCP server.",
+ "500": {
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "501": {
+ "description": "Not implemented",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/triggers_types/list/enum": {
+ "get": {
+ "summary": "List trigger type enums",
+ "description": "Retrieves a list of all available trigger type enum values that can be used across the API from latest versions of the toolkit only",
+ "tags": [
+ "Triggers"
+ ],
+ "operationId": "getTriggersTypesListEnum",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved trigger enum list",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "JSON string containing all trigger enum values"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -13673,7 +13624,7 @@
}
},
"404": {
- "description": "MCP server not found. No server with the specified ID exists or it has been deleted.",
+ "description": "Not found",
"content": {
"application/json": {
"schema": {
@@ -13683,7 +13634,7 @@
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error",
"content": {
"application/json": {
"schema": {
@@ -13694,14 +13645,16 @@
}
},
"x-api-version": "3.1"
- },
- "delete": {
- "summary": "Delete an MCP server",
- "description": "Performs a soft delete on a Model Control Protocol (MCP) server, making it unavailable for future use. This operation is reversible in the database but cannot be undone through the API. Any applications or services connected to this server will lose access after deletion.",
+ }
+ },
+ "/api/v3.1/triggers_types/{slug}": {
+ "get": {
+ "summary": "Get trigger type by slug",
+ "description": "Retrieve detailed information about a specific trigger type using its slug identifier",
"tags": [
- "MCP"
+ "Triggers"
],
- "operationId": "deleteMcpById",
+ "operationId": "getTriggersTypesBySlug",
"security": [
{
"ApiKeyAuth": []
@@ -13714,45 +13667,176 @@
{
"schema": {
"type": "string",
- "description": "Unique identifier of the MCP server to retrieve, update, or delete",
- "example": "550e8400-e29b-41d4-a716-446655440000"
+ "description": "The unique slug identifier for the trigger type. Case-insensitive (internally normalized to uppercase).",
+ "example": "SLACK_RECEIVE_MESSAGE"
},
"required": true,
- "description": "The ID of the MCP server",
- "name": "id",
+ "description": "The unique slug identifier for the trigger type. Case-insensitive (internally normalized to uppercase).",
+ "name": "slug",
"in": "path"
+ },
+ {
+ "schema": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Object representation of parsed bracket notation"
+ }
+ ]
+ },
+ "required": false,
+ "description": "Toolkit version specification. Use \"latest\" for latest versions or bracket notation for specific versions per toolkit.",
+ "in": "query",
+ "name": "toolkit_versions",
+ "examples": {
+ "latest_version": {
+ "summary": "Latest version for all toolkits",
+ "value": "latest"
+ },
+ "bracket_notation": {
+ "summary": "Specific versions using bracket notation",
+ "value": "Use: toolkit_versions[gmail]=20250930_00&toolkit_versions[slack]=20250929_00"
+ },
+ "null_value": {
+ "summary": "No version specified (uses latest)",
+ "value": null
+ }
+ }
}
],
"responses": {
"200": {
- "description": "Successfully deleted MCP server. The server has been soft-deleted and is no longer available for use.",
+ "description": "Successfully retrieved trigger type",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "id": {
+ "slug": {
"type": "string",
- "description": "Unique identifier of the MCP server to retrieve, update, or delete",
- "example": "550e8400-e29b-41d4-a716-446655440000"
+ "description": "Unique identifier for the trigger type",
+ "example": "SLACK_RECEIVE_MESSAGE"
},
- "deleted": {
- "type": "boolean",
- "description": "Indicates whether the MCP server was successfully deleted",
- "example": true
- }
- },
- "required": [
- "id",
- "deleted"
- ],
- "description": "Response indicating the success of the delete operation"
+ "name": {
+ "type": "string",
+ "description": "Human-readable name of the trigger",
+ "example": "New Message in Slack Channel"
+ },
+ "description": {
+ "type": "string",
+ "description": "Detailed description of what the trigger does",
+ "example": "Triggers when a new message is posted to a Slack channel"
+ },
+ "instructions": {
+ "type": "string",
+ "description": "Step-by-step instructions on how to set up and use this trigger"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "webhook",
+ "poll"
+ ],
+ "description": "The trigger mechanism - either webhook (event-based) or poll (scheduled check)",
+ "example": "webhook"
+ },
+ "toolkit": {
+ "type": "object",
+ "properties": {
+ "slug": {
+ "type": "string",
+ "description": "Unique identifier for the parent toolkit",
+ "example": "slack"
+ },
+ "name": {
+ "type": "string",
+ "description": "Deprecated: Use slug instead",
+ "example": "Slack"
+ },
+ "logo": {
+ "type": "string",
+ "description": "Logo of the toolkit",
+ "example": "https://example.com/logo.png"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "logo"
+ ],
+ "description": "Information about the toolkit that provides this trigger"
+ },
+ "config": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Configuration schema required to set up this trigger",
+ "example": {
+ "channel_id": {
+ "type": "string",
+ "required": true
+ },
+ "message_type": {
+ "type": "enum",
+ "options": [
+ "all",
+ "direct",
+ "channel"
+ ]
+ }
+ }
+ },
+ "payload": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Schema of the data payload this trigger will deliver when it fires",
+ "example": {
+ "message": {
+ "type": "string"
+ },
+ "sender": {
+ "type": "object",
+ "properties": {
+ "id": "string",
+ "name": "string"
+ }
+ },
+ "timestamp": {
+ "type": "number"
+ }
+ }
+ },
+ "version": {
+ "type": "string",
+ "description": "Version of the trigger type",
+ "example": "20250930_00"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "description",
+ "instructions",
+ "type",
+ "toolkit",
+ "config",
+ "payload",
+ "version"
+ ]
}
}
}
},
"400": {
- "description": "Bad request. The server ID parameter may be invalid or in an incorrect format.",
+ "description": "Bad request",
"content": {
"application/json": {
"schema": {
@@ -13762,17 +13846,7 @@
}
},
"401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to delete this MCP server.",
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -13782,18 +13856,17 @@
}
},
"404": {
- "description": "MCP server not found. No server with the specified ID exists or it has already been deleted.",
+ "description": "Not found",
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {}
+ "$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error",
"content": {
"application/json": {
"schema": {
@@ -13806,14 +13879,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/mcp/app/{appKey}": {
+ "/api/v3.1/triggers_types": {
"get": {
- "summary": "List MCP servers for a specific app",
- "description": "Retrieves a paginated list of Model Control Protocol (MCP) servers that are configured for a specific application or toolkit. This endpoint allows you to find all MCP server instances that have access to a particular application, such as GitHub, Slack, or Jira.",
+ "summary": "List trigger types",
+ "description": "Retrieve a list of available trigger types with optional filtering by toolkit. Results are paginated and can be filtered by toolkit.",
"tags": [
- "MCP"
+ "Triggers"
],
- "operationId": "getMcpAppByAppKey",
+ "operationId": "getTriggersTypes",
"security": [
{
"ApiKeyAuth": []
@@ -13825,106 +13898,82 @@
"parameters": [
{
"schema": {
- "type": "string",
- "description": "Toolkit or application slug identifier to filter MCP servers by",
- "example": "github"
- },
- "required": true,
- "description": "The key of the app to find MCP servers for",
- "name": "appKey",
- "in": "path"
- },
- {
- "schema": {
- "type": "string",
- "description": "Name substring to filter servers by",
- "example": "github"
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of toolkit slugs to filter triggers by",
+ "example": [
+ "slack",
+ "github"
+ ]
},
"required": false,
- "description": "Filter MCP servers by name (case-insensitive partial match)",
- "name": "name",
+ "description": "Array of toolkit slugs to filter triggers by",
+ "name": "toolkit_slugs",
"in": "query"
},
{
"schema": {
- "type": "string"
- },
- "required": false,
- "description": "Comma-separated list of toolkit slugs to filter servers by",
- "in": "query",
- "name": "toolkits"
- },
- {
- "schema": {
- "type": "string"
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Object representation of parsed bracket notation"
+ }
+ ]
},
"required": false,
- "description": "Comma-separated list of auth config IDs to filter servers by",
+ "description": "Toolkit version specification. Use \"latest\" for latest versions or bracket notation for specific versions per toolkit.",
"in": "query",
- "name": "auth_config_ids"
- },
- {
- "schema": {
- "type": "string",
- "enum": [
- "created_at",
- "updated_at"
- ],
- "default": "updated_at",
- "description": "Field to use for ordering the results",
- "example": "updated_at"
- },
- "required": false,
- "description": "Field to order results by",
- "name": "order_by",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "enum": [
- "asc",
- "desc"
- ],
- "default": "desc",
- "description": "Sort direction (ascending or descending)",
- "example": "desc"
- },
- "required": false,
- "description": "Direction of ordering",
- "name": "order_direction",
- "in": "query"
+ "name": "toolkit_versions",
+ "examples": {
+ "latest_version": {
+ "summary": "Latest version for all toolkits",
+ "value": "latest"
+ },
+ "bracket_notation": {
+ "summary": "Specific versions using bracket notation",
+ "value": "Use: toolkit_versions[gmail]=20250930_00&toolkit_versions[slack]=20250929_00"
+ },
+ "null_value": {
+ "summary": "No version specified (uses latest)",
+ "value": null
+ }
+ }
},
{
"schema": {
"type": "number",
- "nullable": true,
- "default": 1,
- "description": "Page number to retrieve",
- "example": 1
+ "nullable": true
},
"required": false,
- "description": "Page number for pagination (1-based)",
- "name": "page_no",
+ "description": "Number of items per page, max allowed is 1000",
+ "name": "limit",
"in": "query"
},
{
"schema": {
- "type": "number",
- "nullable": true,
- "default": 10,
- "description": "Number of servers to return per page",
- "example": 10
+ "type": "string"
},
"required": false,
- "description": "Number of items per page (default: 10)",
- "name": "limit",
+ "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
+ "name": "cursor",
"in": "query"
}
],
"responses": {
"200": {
- "description": "Successfully retrieved MCP servers for the specified application. Returns a paginated list of server configurations including connection details and command instructions.",
+ "description": "Successfully retrieved triggers",
"content": {
"application/json": {
"schema": {
@@ -13935,195 +13984,144 @@
"items": {
"type": "object",
"properties": {
- "id": {
+ "slug": {
"type": "string",
- "description": "UUID of the MCP server instance",
- "example": "550e8400-e29b-41d4-a716-446655440000"
+ "description": "Unique identifier for the trigger type",
+ "example": "SLACK_RECEIVE_MESSAGE"
},
"name": {
"type": "string",
- "description": "User-defined descriptive name for this MCP server",
- "example": "GitHub Integration Server"
- },
- "auth_config_ids": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "ID references to the auth configurations used by this server",
- "example": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ]
- },
- "allowed_tools": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Array of tool slugs that this MCP server is allowed to use",
- "example": [
- "GITHUB_CREATE_AN_ISSUE",
- "GITHUB_GET_A_REPOSITORY",
- "GITHUB_LIST_PULL_REQUESTS"
- ]
+ "description": "Human-readable name of the trigger",
+ "example": "New Message in Slack Channel"
},
- "mcp_url": {
+ "description": {
"type": "string",
- "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
- "deprecated": true,
- "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
+ "description": "Detailed description of what the trigger does",
+ "example": "Triggers when a new message is posted to a Slack channel"
},
- "toolkits": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Array of toolkit slugs that this MCP server is allowed to use",
- "example": [
- "github",
- "jira",
- "slack"
- ]
+ "instructions": {
+ "type": "string",
+ "description": "Step-by-step instructions on how to set up and use this trigger"
},
- "toolkit_icons": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- },
- "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
- "example": {
- "github": "https://assets.composio.dev/logos/github.png",
- "jira": "https://assets.composio.dev/logos/jira.png",
- "slack": "https://assets.composio.dev/logos/slack.png"
- }
+ "type": {
+ "type": "string",
+ "enum": [
+ "webhook",
+ "poll"
+ ],
+ "description": "The trigger mechanism - either webhook (event-based) or poll (scheduled check)",
+ "example": "webhook"
},
- "commands": {
+ "toolkit": {
"type": "object",
"properties": {
- "cursor": {
+ "slug": {
"type": "string",
- "description": "Command line instruction for Cursor client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ "description": "Unique identifier for the parent toolkit",
+ "example": "slack"
},
- "claude": {
+ "name": {
"type": "string",
- "description": "Command line instruction for Claude client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ "description": "Deprecated: Use slug instead",
+ "example": "Slack"
},
- "windsurf": {
+ "logo": {
"type": "string",
- "description": "Command line instruction for Windsurf client setup",
- "deprecated": true,
- "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ "description": "Logo of the toolkit",
+ "example": "https://example.com/logo.png"
}
},
"required": [
- "cursor",
- "claude",
- "windsurf"
+ "slug",
+ "name",
+ "logo"
],
- "description": "Set of command line instructions for connecting various clients to this MCP server",
- "deprecated": true
- },
- "updated_at": {
- "type": "string",
- "description": "Date and time when this server configuration was last modified",
- "example": "2023-06-15T14:30:00.000Z"
+ "description": "Information about the toolkit that provides this trigger"
},
- "created_at": {
- "type": "string",
- "description": "Date and time when this server was initially created",
- "example": "2023-06-10T09:15:00.000Z"
+ "config": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Configuration schema required to set up this trigger",
+ "example": {
+ "channel_id": {
+ "type": "string",
+ "required": true
+ },
+ "message_type": {
+ "type": "enum",
+ "options": [
+ "all",
+ "direct",
+ "channel"
+ ]
+ }
+ }
},
- "server_instance_count": {
- "type": "number",
- "description": "Total count of active user instances connected to this server",
- "example": 5
+ "payload": {
+ "type": "object",
+ "additionalProperties": {},
+ "description": "Schema of the data payload this trigger will deliver when it fires",
+ "example": {
+ "message": {
+ "type": "string"
+ },
+ "sender": {
+ "type": "object",
+ "properties": {
+ "id": "string",
+ "name": "string"
+ }
+ },
+ "timestamp": {
+ "type": "number"
+ }
+ }
},
- "managed_auth_via_composio": {
- "type": "boolean",
- "description": "Whether the MCP server is managed by Composio",
- "example": true
+ "version": {
+ "type": "string",
+ "description": "Version of the trigger type",
+ "example": "20250930_00"
}
},
"required": [
- "id",
+ "slug",
"name",
- "auth_config_ids",
- "allowed_tools",
- "mcp_url",
- "toolkits",
- "toolkit_icons",
- "commands",
- "updated_at",
- "created_at",
- "server_instance_count",
- "managed_auth_via_composio"
- ],
- "description": "MCP server configuration and connection details"
- },
- "description": "Array of MCP server configurations",
- "example": [
- {
- "id": "550e8400-e29b-41d4-a716-446655440000",
- "name": "GitHub Integration Server",
- "auth_config_ids": [
- "ac_1a2b3c4d5e6f",
- "ac_7g8h9i0j1k2l"
- ],
- "allowed_tools": [
- "GITHUB_CREATE_AN_ISSUE",
- "GITHUB_GET_A_REPOSITORY"
- ],
- "mcp_url": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john",
- "commands": {
- "cursor": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor",
- "claude": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude",
- "windsurf": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
- },
- "toolkits": [
- "github",
- "jira",
- "slack"
- ],
- "toolkit_icons": {
- "github": "https://assets.composio.dev/logos/github.png",
- "jira": "https://assets.composio.dev/logos/jira.png",
- "slack": "https://assets.composio.dev/logos/slack.png"
- },
- "updated_at": "2023-06-15T14:30:00.000Z",
- "created_at": "2023-06-10T09:15:00.000Z",
- "server_instance_count": 5,
- "managed_auth_via_composio": true
- }
- ]
+ "description",
+ "instructions",
+ "type",
+ "toolkit",
+ "config",
+ "payload",
+ "version"
+ ]
+ }
+ },
+ "next_cursor": {
+ "type": "string",
+ "nullable": true
},
"total_pages": {
- "type": "number",
- "description": "Total number of pages in the paginated response",
- "example": 5
+ "type": "number"
},
"current_page": {
- "type": "number",
- "description": "Current page number being returned",
- "example": 1
+ "type": "number"
+ },
+ "total_items": {
+ "type": "number"
}
},
"required": [
"items",
"total_pages",
- "current_page"
- ],
- "description": "Paginated response containing MCP servers"
+ "current_page",
+ "total_items"
+ ]
}
}
}
},
"400": {
- "description": "Bad request. The query parameters may be invalid or in an incorrect format.",
+ "description": "Bad request",
"content": {
"application/json": {
"schema": {
@@ -14133,17 +14131,7 @@
}
},
"401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "403": {
- "description": "Forbidden. The authenticated user does not have permission to view MCP servers for this application.",
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -14153,7 +14141,7 @@
}
},
"404": {
- "description": "Application not found. No application with the specified key exists.",
+ "description": "Not found",
"content": {
"application/json": {
"schema": {
@@ -14163,7 +14151,7 @@
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal server error",
"content": {
"application/json": {
"schema": {
@@ -14176,14 +14164,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/mcp/servers/{serverId}/instances": {
+ "/api/v3.1/mcp/servers": {
"get": {
- "summary": "List all instances for an MCP server",
- "description": "Retrieves a paginated list of user instances (user IDs) associated with a specific Model Control Protocol (MCP) server. This endpoint supports pagination to handle servers with many instances.",
+ "summary": "List MCP servers with optional filters and pagination",
+ "description": "Retrieves a paginated list of MCP servers associated with the authenticated project. Results can be filtered by name, toolkit, or authentication configuration ID. MCP servers are used to provide Model Control Protocol integration points for connecting AI assistants to your applications and services.",
"tags": [
"MCP"
],
- "operationId": "getMcpServersByServerIdInstances",
+ "operationId": "getMcpServers",
"security": [
{
"ApiKeyAuth": []
@@ -14196,50 +14184,31 @@
{
"schema": {
"type": "string",
- "description": "UUID of the MCP server to list instances for",
- "example": "550e8400-e29b-41d4-a716-446655440000"
- },
- "required": true,
- "description": "The ID of the MCP server",
- "name": "serverId",
- "in": "path"
- },
- {
- "schema": {
- "type": "number",
- "nullable": true,
- "default": 1,
- "description": "Page number to retrieve",
- "example": 1
+ "description": "Name substring to filter servers by",
+ "example": "github"
},
"required": false,
- "description": "Page number for pagination (1-based)",
- "name": "page_no",
+ "description": "Filter MCP servers by name (case-insensitive partial match)",
+ "name": "name",
"in": "query"
},
{
"schema": {
- "type": "number",
- "nullable": true,
- "default": 20,
- "description": "Number of instances to return per page",
- "example": 20
+ "type": "string"
},
"required": false,
- "description": "Number of items per page (default: 20)",
- "name": "limit",
- "in": "query"
+ "description": "Comma-separated list of toolkit slugs to filter servers by",
+ "in": "query",
+ "name": "toolkits"
},
{
"schema": {
- "type": "string",
- "description": "Filter instances by user ID or instance ID (partial match)",
- "example": "user_123"
+ "type": "string"
},
"required": false,
- "description": "Search instances by user ID/instance ID",
- "name": "search",
- "in": "query"
+ "description": "Comma-separated list of auth config IDs to filter servers by",
+ "in": "query",
+ "name": "auth_config_ids"
},
{
"schema": {
@@ -14272,81 +14241,217 @@
"description": "Direction of ordering",
"name": "order_direction",
"in": "query"
+ },
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true,
+ "default": 1,
+ "description": "Page number to retrieve",
+ "example": 1
+ },
+ "required": false,
+ "description": "Page number for pagination (1-based)",
+ "name": "page_no",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true,
+ "default": 10,
+ "description": "Number of servers to return per page",
+ "example": 10
+ },
+ "required": false,
+ "description": "Number of items per page (default: 10)",
+ "name": "limit",
+ "in": "query"
}
],
"responses": {
"200": {
- "description": "Successfully retrieved MCP server instances. Returns the list of user IDs associated with this server.",
+ "description": "Successfully retrieved MCP servers. Returns a paginated list of server configurations including connection details and command instructions.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "instances": {
+ "items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "UUID of the instance record",
+ "description": "UUID of the MCP server instance",
"example": "550e8400-e29b-41d4-a716-446655440000"
},
- "instance_id": {
+ "name": {
"type": "string",
- "description": "The instance identifier (same as the user_id)",
- "example": "user_123456"
+ "description": "User-defined descriptive name for this MCP server",
+ "example": "GitHub Integration Server"
},
- "mcp_server_id": {
- "type": "string",
- "description": "UUID of the parent MCP server",
- "example": "660e8400-e29b-41d4-a716-446655440001"
+ "auth_config_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "ID references to the auth configurations used by this server",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
},
- "created_at": {
+ "allowed_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of tool slugs that this MCP server is allowed to use",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "GITHUB_GET_A_REPOSITORY",
+ "GITHUB_LIST_PULL_REQUESTS"
+ ]
+ },
+ "mcp_url": {
"type": "string",
- "description": "Date and time when this instance was created",
- "example": "2023-06-10T09:15:00.000Z"
+ "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
+ "deprecated": true,
+ "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
+ },
+ "toolkits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of toolkit slugs that this MCP server is allowed to use",
+ "example": [
+ "github",
+ "jira",
+ "slack"
+ ]
+ },
+ "toolkit_icons": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
+ "example": {
+ "github": "https://assets.composio.dev/logos/github.png",
+ "jira": "https://assets.composio.dev/logos/jira.png",
+ "slack": "https://assets.composio.dev/logos/slack.png"
+ }
+ },
+ "commands": {
+ "type": "object",
+ "properties": {
+ "cursor": {
+ "type": "string",
+ "description": "Command line instruction for Cursor client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ },
+ "claude": {
+ "type": "string",
+ "description": "Command line instruction for Claude client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ },
+ "windsurf": {
+ "type": "string",
+ "description": "Command line instruction for Windsurf client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ }
+ },
+ "required": [
+ "cursor",
+ "claude",
+ "windsurf"
+ ],
+ "description": "Set of command line instructions for connecting various clients to this MCP server",
+ "deprecated": true
},
"updated_at": {
"type": "string",
- "description": "Date and time when this instance was last modified",
+ "description": "Date and time when this server configuration was last modified",
"example": "2023-06-15T14:30:00.000Z"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when this server was initially created",
+ "example": "2023-06-10T09:15:00.000Z"
+ },
+ "server_instance_count": {
+ "type": "number",
+ "description": "Total count of active user instances connected to this server",
+ "example": 5
+ },
+ "managed_auth_via_composio": {
+ "type": "boolean",
+ "description": "Whether the MCP server is managed by Composio",
+ "example": true
}
},
"required": [
"id",
- "instance_id",
- "mcp_server_id",
+ "name",
+ "auth_config_ids",
+ "allowed_tools",
+ "mcp_url",
+ "toolkits",
+ "toolkit_icons",
+ "commands",
+ "updated_at",
"created_at",
- "updated_at"
+ "server_instance_count",
+ "managed_auth_via_composio"
],
- "description": "MCP server instance details"
+ "description": "MCP server configuration and connection details"
},
- "description": "List of instance objects associated with this MCP server for the current page",
+ "description": "Array of MCP server configurations",
"example": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
- "instance_id": "user_123456",
- "mcp_server_id": "660e8400-e29b-41d4-a716-446655440001",
+ "name": "GitHub Integration Server",
+ "auth_config_ids": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ],
+ "allowed_tools": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "GITHUB_GET_A_REPOSITORY"
+ ],
+ "mcp_url": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john",
+ "commands": {
+ "cursor": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor",
+ "claude": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude",
+ "windsurf": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ },
+ "toolkits": [
+ "github",
+ "jira",
+ "slack"
+ ],
+ "toolkit_icons": {
+ "github": "https://assets.composio.dev/logos/github.png",
+ "jira": "https://assets.composio.dev/logos/jira.png",
+ "slack": "https://assets.composio.dev/logos/slack.png"
+ },
+ "updated_at": "2023-06-15T14:30:00.000Z",
"created_at": "2023-06-10T09:15:00.000Z",
- "updated_at": "2023-06-15T14:30:00.000Z"
+ "server_instance_count": 5,
+ "managed_auth_via_composio": true
}
]
},
- "server_id": {
- "type": "string",
- "description": "UUID of the MCP server",
- "example": "550e8400-e29b-41d4-a716-446655440000"
- },
- "server_name": {
- "type": "string",
- "description": "Name of the MCP server",
- "example": "Production GitHub Integration"
- },
"total_pages": {
"type": "number",
"description": "Total number of pages in the paginated response",
- "example": 3
+ "example": 5
},
"current_page": {
"type": "number",
@@ -14355,19 +14460,17 @@
}
},
"required": [
- "instances",
- "server_id",
- "server_name",
+ "items",
"total_pages",
"current_page"
],
- "description": "Paginated list of instances for an MCP server"
+ "description": "Paginated response containing MCP servers"
}
}
}
},
"400": {
- "description": "Bad request. The server ID parameter may be invalid.",
+ "description": "Bad request. The query parameters may be invalid or in an incorrect format.",
"content": {
"application/json": {
"schema": {
@@ -14386,8 +14489,8 @@
}
}
},
- "404": {
- "description": "MCP server not found. No server with the specified ID exists.",
+ "403": {
+ "description": "Forbidden. The authenticated user does not have permission to view MCP servers for this project.",
"content": {
"application/json": {
"schema": {
@@ -14410,12 +14513,12 @@
"x-api-version": "3.1"
},
"post": {
- "summary": "Create a new MCP server instance",
- "description": "Creates a new instance for a Model Control Protocol (MCP) server. This endpoint validates that the user has connected accounts for all auth configurations associated with the MCP server before creating the instance.",
+ "summary": "Create a new MCP server",
+ "description": "Creates a new Model Control Protocol (MCP) server instance for the authenticated project. An MCP server provides a connection point for AI assistants to access your applications and services. The server is configured with specific authentication and tool permissions that determine what actions the connected assistants can perform.",
"tags": [
"MCP"
],
- "operationId": "postMcpServersByServerIdInstances",
+ "operationId": "postMcpServers",
"security": [
{
"ApiKeyAuth": []
@@ -14424,41 +14527,94 @@
"UserApiKeyAuth": []
}
],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "description": "UUID of the MCP server to create an instance for",
- "example": "550e8400-e29b-41d4-a716-446655440000"
- },
- "required": true,
- "description": "The ID of the MCP server",
- "name": "serverId",
- "in": "path"
- }
- ],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "user_id": {
+ "name": {
"type": "string",
- "minLength": 1,
- "description": "The user ID (entity ID) that will be used as both the user identifier and instance ID",
- "example": "user_123456"
+ "minLength": 4,
+ "maxLength": 30,
+ "pattern": "^[a-zA-Z0-9- ]+$",
+ "description": "Human-readable name to identify this MCP server instance (4-30 characters, alphanumeric, spaces, and hyphens only)",
+ "example": "Production GitHub Integration"
+ },
+ "auth_config_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "ID references to existing authentication configurations",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
+ },
+ "no_auth_apps": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of NO_AUTH apps to enable for this MCP server",
+ "example": [
+ "exa",
+ "codeinterpreter",
+ "composio",
+ "composio_search"
+ ]
+ },
+ "allowed_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": [],
+ "description": "List of tool slugs that should be allowed for this server. If not provided, all available tools for the authentication configuration will be enabled.",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "GITHUB_GET_A_REPOSITORY",
+ "GITHUB_LIST_PULL_REQUESTS"
+ ]
+ },
+ "managed_auth_via_composio": {
+ "type": "boolean",
+ "description": "Whether the MCP server is managed by Composio"
}
},
"required": [
- "user_id"
+ "name",
+ "auth_config_ids"
],
- "description": "Parameters for creating a new MCP server instance"
+ "description": "Request parameters for creating a new MCP server with specific authentication configuration"
},
"examples": {
- "Create Instance": {
+ "Basic MCP Server": {
"value": {
- "user_id": "user_123456"
+ "name": "GitHub Integration Server",
+ "auth_config_ids": [
+ "ac_1a2b3c4d5e6f"
+ ]
+ }
+ },
+ "Server with Limited Tools": {
+ "value": {
+ "name": "GitHub Issues Only",
+ "auth_config_ids": [
+ "ac_1a2b3c4d5e6f"
+ ],
+ "allowed_tools": [
+ "GMAIL_ADD_LABEL_TO_EMAIL"
+ ]
+ }
+ },
+ "Server with Expiration": {
+ "value": {
+ "name": "Temporary Integration Server",
+ "auth_config_ids": [
+ "ac_1a2b3c4d5e6f"
+ ]
}
}
}
@@ -14467,7 +14623,7 @@
},
"responses": {
"201": {
- "description": "Successfully created MCP server instance. Returns the created instance details.",
+ "description": "MCP server created successfully. Returns the complete server configuration including connection details and command instructions.",
"content": {
"application/json": {
"schema": {
@@ -14475,44 +14631,139 @@
"properties": {
"id": {
"type": "string",
- "description": "UUID of the instance record",
+ "description": "UUID of the MCP server instance",
"example": "550e8400-e29b-41d4-a716-446655440000"
},
- "instance_id": {
+ "name": {
"type": "string",
- "description": "The instance identifier (same as the user_id)",
- "example": "user_123456"
+ "description": "User-defined descriptive name for this MCP server",
+ "example": "GitHub Integration Server"
},
- "mcp_server_id": {
- "type": "string",
- "description": "UUID of the parent MCP server",
- "example": "660e8400-e29b-41d4-a716-446655440001"
+ "auth_config_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "ID references to the auth configurations used by this server",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
},
- "created_at": {
+ "allowed_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of tool slugs that this MCP server is allowed to use",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "GITHUB_GET_A_REPOSITORY",
+ "GITHUB_LIST_PULL_REQUESTS"
+ ]
+ },
+ "mcp_url": {
"type": "string",
- "description": "Date and time when this instance was created",
- "example": "2023-06-10T09:15:00.000Z"
+ "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
+ "deprecated": true,
+ "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
+ },
+ "toolkits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of toolkit slugs that this MCP server is allowed to use",
+ "example": [
+ "github",
+ "jira",
+ "slack"
+ ]
+ },
+ "toolkit_icons": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
+ "example": {
+ "github": "https://assets.composio.dev/logos/github.png",
+ "jira": "https://assets.composio.dev/logos/jira.png",
+ "slack": "https://assets.composio.dev/logos/slack.png"
+ }
+ },
+ "commands": {
+ "type": "object",
+ "properties": {
+ "cursor": {
+ "type": "string",
+ "description": "Command line instruction for Cursor client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ },
+ "claude": {
+ "type": "string",
+ "description": "Command line instruction for Claude client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ },
+ "windsurf": {
+ "type": "string",
+ "description": "Command line instruction for Windsurf client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ }
+ },
+ "required": [
+ "cursor",
+ "claude",
+ "windsurf"
+ ],
+ "description": "Set of command line instructions for connecting various clients to this MCP server",
+ "deprecated": true
},
"updated_at": {
"type": "string",
- "description": "Date and time when this instance was last modified",
+ "description": "Date and time when this server configuration was last modified",
"example": "2023-06-15T14:30:00.000Z"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when this server was initially created",
+ "example": "2023-06-10T09:15:00.000Z"
+ },
+ "server_instance_count": {
+ "type": "number",
+ "description": "Total count of active user instances connected to this server",
+ "example": 5
+ },
+ "managed_auth_via_composio": {
+ "type": "boolean",
+ "description": "Whether the MCP server is managed by Composio",
+ "example": true
}
},
"required": [
"id",
- "instance_id",
- "mcp_server_id",
+ "name",
+ "auth_config_ids",
+ "allowed_tools",
+ "mcp_url",
+ "toolkits",
+ "toolkit_icons",
+ "commands",
+ "updated_at",
"created_at",
- "updated_at"
+ "server_instance_count",
+ "managed_auth_via_composio"
],
- "description": "MCP server instance details"
+ "description": "MCP server configuration and connection details"
}
}
}
},
"400": {
- "description": "Bad request. The request parameters may be invalid or the instance ID already exists.",
+ "description": "Bad request. The request body may be invalid, missing required parameters, or the auth_config_id may not exist.",
"content": {
"application/json": {
"schema": {
@@ -14532,7 +14783,7 @@
}
},
"403": {
- "description": "Forbidden. The user does not have connected accounts for all required auth configurations.",
+ "description": "Forbidden. The authenticated user does not have permission to create MCP servers for this project.",
"content": {
"application/json": {
"schema": {
@@ -14542,7 +14793,7 @@
}
},
"404": {
- "description": "MCP server not found. No server with the specified ID exists.",
+ "description": "Not Found. The specified auth_config_id does not exist or is not accessible to the authenticated user.",
"content": {
"application/json": {
"schema": {
@@ -14551,8 +14802,8 @@
}
}
},
- "409": {
- "description": "Conflict. An instance with this ID already exists for the server.",
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -14560,86 +14811,212 @@
}
}
}
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/mcp/servers/custom": {
+ "post": {
+ "summary": "Create a new custom MCP server with multiple apps",
+ "description": "Creates a new Model Control Protocol (MCP) server instance that can integrate with multiple applications or toolkits simultaneously. This endpoint allows you to create a server that can access tools from different applications, making it suitable for complex workflows that span multiple services.",
+ "tags": [
+ "MCP"
+ ],
+ "operationId": "postMcpServersCustom",
+ "security": [
+ {
+ "ApiKeyAuth": []
},
- "500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "minLength": 4,
+ "maxLength": 30,
+ "pattern": "^[a-zA-Z0-9- ]+$",
+ "description": "Human-readable name to identify this custom MCP server (4-30 characters, alphanumeric, spaces, and hyphens only)",
+ "example": "Multi App Integration Server"
+ },
+ "auth_config_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "ID references to existing authentication configurations",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
+ },
+ "toolkits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of application/toolkit identifiers to enable for this server",
+ "example": [
+ "github",
+ "jira",
+ "slack"
+ ]
+ },
+ "allowed_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Tool identifiers to enable that aren't part of standard toolkits",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "SLACK_SEND_MESSAGE"
+ ]
+ },
+ "custom_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "DEPRECATED: Use allowed_tools instead. Tool identifiers to enable that aren't part of standard toolkits",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "SLACK_SEND_MESSAGE"
+ ]
+ },
+ "managed_auth_via_composio": {
+ "type": "boolean",
+ "description": "Whether to manage authentication via Composio"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "description": "Parameters for creating a new custom MCP server with multiple applications"
+ },
+ "examples": {
+ "Basic Multi-App Server": {
+ "value": {
+ "name": "Development Integration Server",
+ "toolkits": [
+ "github",
+ "jira"
+ ]
+ }
+ },
+ "Advanced Multi-App Server": {
+ "value": {
+ "name": "Complete Workflow Integration",
+ "toolkits": [
+ "github",
+ "jira",
+ "slack"
+ ],
+ "custom_tools": [
+ "SLACK_SEND_MESSAGE"
+ ]
+ }
}
}
}
}
},
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/mcp/servers/{serverId}/instances/{instanceId}": {
- "delete": {
- "summary": "Delete an MCP server instance and associated connected accounts",
- "description": "Removes a user instance from the MCP server and deletes all connected accounts for that user that are associated with the auth configurations of this specific MCP server. Connected accounts for other auth configurations are not affected.",
- "tags": [
- "MCP"
- ],
- "operationId": "deleteMcpServersByServerIdInstancesByInstanceId",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "description": "UUID of the MCP server",
- "example": "550e8400-e29b-41d4-a716-446655440000"
- },
- "required": true,
- "description": "The ID of the MCP server",
- "name": "serverId",
- "in": "path"
- },
- {
- "schema": {
- "type": "string",
- "description": "The user ID to remove from this server",
- "example": "user_123456"
- },
- "required": true,
- "description": "The instance ID (user ID) to delete",
- "name": "instanceId",
- "in": "path"
- }
- ],
"responses": {
- "200": {
- "description": "Successfully deleted MCP server instance and associated connected accounts.",
+ "201": {
+ "description": "Custom MCP server created successfully. Returns the complete server configuration including connection details and command instructions for all specified applications.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "message": {
- "type": "string"
+ "id": {
+ "type": "string",
+ "description": "Unique identifier for the newly created custom MCP server",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
},
- "deleted_connected_accounts": {
- "type": "number"
+ "name": {
+ "type": "string",
+ "description": "Human-readable name of the custom MCP server",
+ "example": "Multi-App Integration Server"
+ },
+ "auth_config_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "ID references to the auth configurations used by this server",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
+ },
+ "allowed_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of tool identifiers that are enabled for this server",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "JIRA_GET_ISSUE",
+ "SLACK_SEND_MESSAGE",
+ "GMAIL_SEND_EMAIL"
+ ]
+ },
+ "mcp_url": {
+ "type": "string",
+ "description": "URL endpoint for establishing connection to this MCP server",
+ "example": "https://backend.composio.dev/v3/mcp/550e8410-e29b-41d4-a716-446655440000?user_id=john"
+ },
+ "commands": {
+ "type": "object",
+ "properties": {
+ "cursor": {
+ "type": "string",
+ "description": "Command line instruction for Cursor client setup",
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8410-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ },
+ "claude": {
+ "type": "string",
+ "description": "Command line instruction for Claude client setup",
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8410-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ },
+ "windsurf": {
+ "type": "string",
+ "description": "Command line instruction for Windsurf client setup",
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8410-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ }
+ },
+ "required": [
+ "cursor",
+ "claude",
+ "windsurf"
+ ],
+ "description": "Set of command line instructions for connecting various clients to this MCP server"
}
},
"required": [
- "message",
- "deleted_connected_accounts"
- ]
+ "id",
+ "name",
+ "auth_config_ids",
+ "allowed_tools",
+ "mcp_url",
+ "commands"
+ ],
+ "description": "Response for a successfully created custom MCP server with multiple applications"
}
}
}
},
"400": {
- "description": "Bad request. The request parameters may be invalid.",
+ "description": "Bad request. The request body may be invalid, missing required parameters, or contain invalid toolkit identifiers.",
"content": {
"application/json": {
"schema": {
@@ -14658,8 +15035,8 @@
}
}
},
- "404": {
- "description": "MCP server or instance not found.",
+ "403": {
+ "description": "Forbidden. The authenticated user does not have permission to create MCP servers for this project.",
"content": {
"application/json": {
"schema": {
@@ -14682,14 +15059,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/files/list": {
- "get": {
- "summary": "List files with optional app and action filters",
- "description": "Retrieves a list of files associated with the authenticated project. Results can be filtered by toolkit and tool slugs.",
+ "/api/v3.1/mcp/servers/generate": {
+ "post": {
+ "summary": "Generate MCP URL with custom parameters",
+ "description": "Generates a Model Control Protocol (MCP) URL for an existing server with custom query parameters. The URL includes user-specific parameters and configuration flags that control the behavior of the MCP connection.",
"tags": [
- "Files"
+ "MCP"
],
- "operationId": "getFilesList",
+ "operationId": "postMcpServersGenerate",
"security": [
{
"ApiKeyAuth": []
@@ -14698,116 +15075,131 @@
"UserApiKeyAuth": []
}
],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "description": "Filter files by app slug. Example: \"file-converter\""
- },
- "required": false,
- "description": "Filter files by app slug. Example: \"file-converter\"",
- "name": "toolkit_slug",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "Filter files by action slug. Example: \"convert-to-pdf\""
- },
- "required": false,
- "description": "Filter files by action slug. Example: \"convert-to-pdf\"",
- "name": "tool_slug",
- "in": "query"
- },
- {
- "schema": {
- "type": "number",
- "nullable": true
- },
- "required": false,
- "description": "Number of items per page, max allowed is 1000",
- "name": "limit",
- "in": "query"
- },
- {
- "schema": {
- "type": "string"
- },
- "required": false,
- "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
- "name": "cursor",
- "in": "query"
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "mcp_server_id": {
+ "type": "string",
+ "description": "Unique identifier of the MCP server to generate URL for",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "managed_auth_by_composio": {
+ "type": "boolean",
+ "default": false,
+ "description": "Flag indicating if Composio manages authentication",
+ "example": true
+ },
+ "user_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of user identifiers for whom the URL is generated",
+ "example": [
+ "user_123456",
+ "user_789012"
+ ]
+ },
+ "connected_account_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of connected account identifiers",
+ "example": [
+ "ca_1a2b3c4d5e6f",
+ "ca_7g8h9i0j1k2l",
+ "ca_3m4n5o6p7q8r"
+ ]
+ }
+ },
+ "required": [
+ "mcp_server_id"
+ ],
+ "description": "Request parameters for generating an MCP URL"
+ },
+ "examples": {
+ "Basic URL Generation": {
+ "value": {
+ "mcp_server_id": "550e8400-e29b-41d4-a716-446655440000",
+ "user_ids": [
+ "user_123456"
+ ],
+ "connected_account_ids": [
+ "ca_1a2b3c4d5e6f",
+ "ca_7g8h9i0j1k2l"
+ ]
+ }
+ },
+ "Managed Auth Configuration": {
+ "value": {
+ "mcp_server_id": "550e8400-e29b-41d4-a716-446655440000",
+ "user_ids": [
+ "user_123456",
+ "user_789012"
+ ],
+ "connected_account_ids": [
+ "ca_1a2b3c4d5e6f",
+ "ca_7g8h9i0j1k2l",
+ "ca_3m4n5o6p7q8r"
+ ]
+ }
+ }
+ }
+ }
}
- ],
+ },
"responses": {
"200": {
- "description": "Successfully retrieved files",
+ "description": "Successfully generated MCP URL. Returns the complete URL with all specified query parameters.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "items": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "toolkit_slug": {
- "type": "string",
- "description": "Slug of the app where this file belongs to. Example: \"file-converter\""
- },
- "tool_slug": {
- "type": "string",
- "description": "Slug of the action where this file belongs to. Example: \"convert-to-pdf\""
- },
- "filename": {
- "type": "string",
- "description": "Name of the original file. Example: \"document.docx\""
- },
- "mimetype": {
- "type": "string",
- "description": "Mime type of the original file. Example: \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\""
- },
- "md5": {
- "type": "string",
- "description": "MD5 hash of the file for integrity verification. Example: \"d41d8cd98f00b204e9800998ecf8427e\""
- }
- },
- "required": [
- "toolkit_slug",
- "tool_slug",
- "filename",
- "mimetype",
- "md5"
- ]
- }
- },
- "next_cursor": {
+ "mcp_url": {
"type": "string",
- "nullable": true
- },
- "total_pages": {
- "type": "number"
+ "description": "Base MCP URL without any query parameters",
+ "example": "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000"
},
- "current_page": {
- "type": "number"
+ "connected_account_urls": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of URLs generated for each connected account ID",
+ "example": [
+ "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_ids=ca_1a2b3c4d5e6f&user_id=user_123456,user_789012",
+ "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_ids=ca_7g8h9i0j1k2l&user_id=user_123456,user_789012"
+ ]
},
- "total_items": {
- "type": "number"
+ "user_ids_url": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of URLs generated for each user ID",
+ "example": [
+ "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_ids=ca_1a2b3c4d5e6f,ca_7g8h9i0j1k2l&user_id=user_123456",
+ "https://mcp.composio.dev/composio/server/550e8400-e29b-41d4-a716-446655440000?include_composio_helper_actions=true&connected_account_ids=ca_1a2b3c4d5e6f,ca_7g8h9i0j1k2l&user_id=user_789012"
+ ]
}
},
"required": [
- "items",
- "total_pages",
- "current_page",
- "total_items"
- ]
+ "mcp_url",
+ "connected_account_urls",
+ "user_ids_url"
+ ],
+ "description": "Response containing the generated MCP URLs"
}
}
}
},
"400": {
- "description": "Bad request",
+ "description": "Bad request. The request body may be invalid or missing required parameters.",
"content": {
"application/json": {
"schema": {
@@ -14817,7 +15209,17 @@
}
},
"401": {
- "description": "Unauthorized",
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden. The authenticated user does not have permission to access this MCP server.",
"content": {
"application/json": {
"schema": {
@@ -14827,7 +15229,7 @@
}
},
"404": {
- "description": "Not found",
+ "description": "MCP server not found. No server with the specified ID exists or it has been deleted.",
"content": {
"application/json": {
"schema": {
@@ -14837,7 +15239,7 @@
}
},
"500": {
- "description": "Internal server error",
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -14850,14 +15252,14 @@
"x-api-version": "3.1"
}
},
- "/api/v3.1/files/upload/request": {
- "post": {
- "summary": "Create presigned URL for request file upload to S3",
- "description": "Generates a presigned URL for uploading a file to S3. This endpoint handles deduplication by checking if a file with the same MD5 hash already exists.",
+ "/api/v3.1/mcp/{id}": {
+ "get": {
+ "summary": "Get MCP server details by ID",
+ "description": "Retrieves detailed configuration information for a specific Model Control Protocol (MCP) server. The returned data includes connection details, associated applications, enabled tools, and authentication configuration.",
"tags": [
- "Files"
+ "MCP"
],
- "operationId": "postFilesUploadRequest",
+ "operationId": "getMcpById",
"security": [
{
"ApiKeyAuth": []
@@ -14866,94 +15268,22 @@
"UserApiKeyAuth": []
}
],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "toolkit_slug": {
- "type": "string",
- "description": "Slug of the app where this file belongs to. Example: \"gmail\", \"slack\", \"github\""
- },
- "tool_slug": {
- "type": "string",
- "description": "Slug of the action where this file belongs to. Example: \"GMAIL_SEND_EMAIL\", \"SLACK_UPLOAD_FILE\""
- },
- "filename": {
- "type": "string",
- "description": "Name of the original file. Example: \"quarterly_report.pdf\""
- },
- "mimetype": {
- "type": "string",
- "description": "Mime type of the original file. Example: \"application/pdf\", \"image/png\""
- },
- "md5": {
- "type": "string",
- "description": "MD5 hash of the file for deduplication and integrity verification. Example: \"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6\""
- }
- },
- "required": [
- "toolkit_slug",
- "tool_slug",
- "filename",
- "mimetype",
- "md5"
- ]
- },
- "examples": {
- "Gmail Email Attachment": {
- "value": {
- "toolkit_slug": "gmail",
- "tool_slug": "GMAIL_SEND_EMAIL",
- "filename": "quarterly_report.pdf",
- "mimetype": "application/pdf",
- "md5": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
- }
- },
- "Slack File Upload": {
- "value": {
- "toolkit_slug": "slack",
- "tool_slug": "SLACK_SEND_MESSAGE",
- "filename": "meeting_notes.docx",
- "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
- "md5": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7"
- }
- },
- "GitHub Issue Screenshot": {
- "value": {
- "toolkit_slug": "github",
- "tool_slug": "GITHUB_CREATE_AN_ISSUE",
- "filename": "bug_screenshot.png",
- "mimetype": "image/png",
- "md5": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8"
- }
- },
- "Notion Page Image": {
- "value": {
- "toolkit_slug": "notion",
- "tool_slug": "NOTION_ADD_PAGE_CONTENT",
- "filename": "diagram.svg",
- "mimetype": "image/svg+xml",
- "md5": "d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9"
- }
- },
- "Jira Attachment": {
- "value": {
- "toolkit_slug": "jira",
- "tool_slug": "JIRA_ADD_ATTACHMENT",
- "filename": "error_logs.txt",
- "mimetype": "text/plain",
- "md5": "e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
- }
- }
- }
- }
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "Unique identifier of the MCP server to retrieve, update, or delete",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "required": true,
+ "description": "The ID of the MCP server",
+ "name": "id",
+ "in": "path"
}
- },
+ ],
"responses": {
"200": {
- "description": "Successfully created upload URL for request file",
+ "description": "Successfully retrieved MCP server. Returns the complete server configuration including connection details, authentication settings, and available tools.",
"content": {
"application/json": {
"schema": {
@@ -14961,60 +15291,144 @@
"properties": {
"id": {
"type": "string",
- "description": "ID of the request file. Example: \"req_file_9mZn4qR8sXwT\""
+ "description": "UUID of the MCP server instance",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "name": {
+ "type": "string",
+ "description": "User-defined descriptive name for this MCP server",
+ "example": "GitHub Integration Server"
+ },
+ "auth_config_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "ID references to the auth configurations used by this server",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
},
- "key": {
- "type": "string",
- "description": "Object storage upload location. Example: \"projects/prj_xyz789/requests/slack/SLACK_UPLOAD_FILE/document_9mZn4q.docx\""
+ "allowed_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of tool slugs that this MCP server is allowed to use",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "GITHUB_GET_A_REPOSITORY",
+ "GITHUB_LIST_PULL_REQUESTS"
+ ]
},
- "new_presigned_url": {
+ "mcp_url": {
"type": "string",
- "description": "Presigned URL for upload. Example: \"https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600...\""
+ "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
+ "deprecated": true,
+ "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
},
- "newPresignedUrl": {
- "type": "string",
- "description": "[DEPRECATED] Use new_presigned_url instead. Presigned URL for upload. Example: \"https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600...\"",
- "deprecated": true
+ "toolkits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of toolkit slugs that this MCP server is allowed to use",
+ "example": [
+ "github",
+ "jira",
+ "slack"
+ ]
},
- "type": {
- "type": "string",
- "enum": [
- "new"
- ],
- "description": "[DEPRECATED] Indicates this is a new file that needs to be uploaded",
- "deprecated": true
+ "toolkit_icons": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
+ "example": {
+ "github": "https://assets.composio.dev/logos/github.png",
+ "jira": "https://assets.composio.dev/logos/jira.png",
+ "slack": "https://assets.composio.dev/logos/slack.png"
+ }
},
- "metadata": {
+ "commands": {
"type": "object",
"properties": {
- "storage_backend": {
+ "cursor": {
"type": "string",
- "enum": [
- "s3",
- "azure_blob_storage"
- ],
- "description": "Storage backend used for the file. If this is azure, use `x-ms-blob-type` header to set the blob type to `BlockBlob` while uploading the file"
+ "description": "Command line instruction for Cursor client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ },
+ "claude": {
+ "type": "string",
+ "description": "Command line instruction for Claude client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ },
+ "windsurf": {
+ "type": "string",
+ "description": "Command line instruction for Windsurf client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
}
},
"required": [
- "storage_backend"
- ]
+ "cursor",
+ "claude",
+ "windsurf"
+ ],
+ "description": "Set of command line instructions for connecting various clients to this MCP server",
+ "deprecated": true
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "Date and time when this server configuration was last modified",
+ "example": "2023-06-15T14:30:00.000Z"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when this server was initially created",
+ "example": "2023-06-10T09:15:00.000Z"
+ },
+ "server_instance_count": {
+ "type": "number",
+ "description": "Total count of active user instances connected to this server",
+ "example": 5
+ },
+ "managed_auth_via_composio": {
+ "type": "boolean",
+ "description": "Whether the MCP server is managed by Composio",
+ "example": true
+ },
+ "deleted": {
+ "type": "boolean",
+ "description": "Whether the MCP server is deleted"
}
},
"required": [
"id",
- "key",
- "new_presigned_url",
- "newPresignedUrl",
- "type",
- "metadata"
- ]
+ "name",
+ "auth_config_ids",
+ "allowed_tools",
+ "mcp_url",
+ "toolkits",
+ "toolkit_icons",
+ "commands",
+ "updated_at",
+ "created_at",
+ "server_instance_count",
+ "managed_auth_via_composio",
+ "deleted"
+ ],
+ "description": "MCP server configuration and connection details"
}
}
}
},
"400": {
- "description": "Bad Request",
+ "description": "Bad request. The server ID parameter may be invalid or in an incorrect format.",
"content": {
"application/json": {
"schema": {
@@ -15024,7 +15438,7 @@
}
},
"401": {
- "description": "Unauthorized",
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
"content": {
"application/json": {
"schema": {
@@ -15034,7 +15448,7 @@
}
},
"403": {
- "description": "Forbidden",
+ "description": "Forbidden. The authenticated user does not have permission to view this MCP server.",
"content": {
"application/json": {
"schema": {
@@ -15044,27 +15458,7 @@
}
},
"404": {
- "description": "Not Found",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "410": {
- "description": "Gone",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
- }
- }
- }
- },
- "429": {
- "description": "Too Many Requests",
+ "description": "MCP server not found. No server with the specified ID exists or it has been deleted.",
"content": {
"application/json": {
"schema": {
@@ -15074,7 +15468,7 @@
}
},
"500": {
- "description": "Internal Server Error",
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -15082,100 +15476,301 @@
}
}
}
+ }
+ },
+ "x-api-version": "3.1"
+ },
+ "patch": {
+ "summary": "Update MCP server configuration",
+ "description": "Updates the configuration of an existing Model Control Protocol (MCP) server. You can modify the server name, associated applications, and enabled tools. Only the fields included in the request will be updated.",
+ "tags": [
+ "MCP"
+ ],
+ "operationId": "patchMcpById",
+ "security": [
+ {
+ "ApiKeyAuth": []
},
- "501": {
- "description": "Not Implemented",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/Error"
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "Unique identifier of the MCP server to retrieve, update, or delete",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "required": true,
+ "description": "The ID of the MCP server",
+ "name": "id",
+ "in": "path"
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "Human-readable name to identify this MCP server instance (4-30 characters, alphanumeric, spaces, and hyphens only)",
+ "example": "Production GitHub Integration"
+ },
+ "toolkits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of toolkit slugs this server should be configured to work with.",
+ "example": [
+ "gmail",
+ "notion"
+ ]
+ },
+ "allowed_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of action identifiers that should be enabled for this server",
+ "example": [
+ "GMAIL_ADD_LABEL_TO_EMAIL"
+ ]
+ },
+ "managed_auth_via_composio": {
+ "type": "boolean",
+ "description": "Whether the MCP server is managed by Composio",
+ "example": true
+ },
+ "auth_config_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of auth config IDs to use for this MCP server.",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
+ }
+ },
+ "description": "Parameters for updating an existing MCP server configuration"
+ },
+ "examples": {
+ "Update Server Name": {
+ "value": {
+ "name": "Updated GitHub Integration Server"
+ }
+ },
+ "Update Single Auth Config": {
+ "value": {
+ "auth_config_ids": [
+ "ac_1a2b3c4d5e6f"
+ ],
+ "toolkits": [
+ "gmail"
+ ],
+ "allowed_tools": [
+ "GMAIL_ADD_LABEL_TO_EMAIL"
+ ]
+ }
+ },
+ "Update Multiple Auth Configs": {
+ "value": {
+ "auth_config_ids": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ],
+ "toolkits": [
+ "gmail",
+ "notion"
+ ],
+ "allowed_tools": [
+ "GMAIL_ADD_LABEL_TO_EMAIL",
+ "NOTION_CREATE_NOTION_PAGE"
+ ]
+ }
+ },
+ "Update Toolkits Only": {
+ "value": {
+ "toolkits": [
+ "gmail",
+ "notion"
+ ]
+ }
+ },
+ "Full Update": {
+ "value": {
+ "name": "Production Multi-App MCP Server",
+ "auth_config_ids": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ],
+ "toolkits": [
+ "gmail",
+ "notion"
+ ],
+ "allowed_tools": [
+ "GMAIL_ADD_LABEL_TO_EMAIL",
+ "NOTION_CREATE_NOTION_PAGE"
+ ]
+ }
}
}
}
}
},
- "x-api-version": "3.1"
- }
- },
- "/api/v3.1/migration/get-nanoid": {
- "get": {
- "summary": "Get NanoId from UUID",
- "description": "Convert a legacy UUID to its corresponding NanoId for migration purposes. This endpoint facilitates the transition from UUID-based identifiers to the more compact NanoId format used in the v3 API.",
- "tags": [
- "Migration"
- ],
- "operationId": "getMigrationGetNanoid",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "parameters": [
- {
- "schema": {
- "type": "string",
- "format": "uuid",
- "example": "123e4567-e89b-12d3-a456-426614174000"
- },
- "required": true,
- "description": "The legacy UUID that needs to be converted to a NanoId",
- "name": "uuid",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "enum": [
- "CONNECTED_ACCOUNT",
- "AUTH_CONFIG",
- "TRIGGER_INSTANCE"
- ],
- "example": "CONNECTED_ACCOUNT"
- },
- "required": true,
- "description": "The type of resource that the UUID belongs to",
- "name": "type",
- "in": "query"
- },
- {
- "schema": {
- "type": "string",
- "description": "Your Composio API key used for authentication",
- "example": "sk_123456789abcdef"
- },
- "required": true,
- "name": "x-api-key",
- "in": "header"
- }
- ],
"responses": {
"200": {
- "description": "Successfully retrieved NanoId for the given UUID",
+ "description": "Successfully updated MCP server. Returns the complete updated server configuration including connection details, authentication settings, and available tools.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "nanoid": {
+ "id": {
"type": "string",
- "minLength": 10,
- "maxLength": 10,
- "description": "The NanoId corresponding to the provided UUID. This is the new identifier that should be used in place of the legacy UUID.",
- "example": "XqXrPalt3v"
+ "description": "UUID of the MCP server instance",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "name": {
+ "type": "string",
+ "description": "User-defined descriptive name for this MCP server",
+ "example": "GitHub Integration Server"
+ },
+ "auth_config_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "ID references to the auth configurations used by this server",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
+ },
+ "allowed_tools": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of tool slugs that this MCP server is allowed to use",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "GITHUB_GET_A_REPOSITORY",
+ "GITHUB_LIST_PULL_REQUESTS"
+ ]
+ },
+ "mcp_url": {
+ "type": "string",
+ "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
+ "deprecated": true,
+ "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
+ },
+ "toolkits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of toolkit slugs that this MCP server is allowed to use",
+ "example": [
+ "github",
+ "jira",
+ "slack"
+ ]
+ },
+ "toolkit_icons": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
+ "example": {
+ "github": "https://assets.composio.dev/logos/github.png",
+ "jira": "https://assets.composio.dev/logos/jira.png",
+ "slack": "https://assets.composio.dev/logos/slack.png"
+ }
+ },
+ "commands": {
+ "type": "object",
+ "properties": {
+ "cursor": {
+ "type": "string",
+ "description": "Command line instruction for Cursor client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ },
+ "claude": {
+ "type": "string",
+ "description": "Command line instruction for Claude client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ },
+ "windsurf": {
+ "type": "string",
+ "description": "Command line instruction for Windsurf client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ }
+ },
+ "required": [
+ "cursor",
+ "claude",
+ "windsurf"
+ ],
+ "description": "Set of command line instructions for connecting various clients to this MCP server",
+ "deprecated": true
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "Date and time when this server configuration was last modified",
+ "example": "2023-06-15T14:30:00.000Z"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when this server was initially created",
+ "example": "2023-06-10T09:15:00.000Z"
+ },
+ "server_instance_count": {
+ "type": "number",
+ "description": "Total count of active user instances connected to this server",
+ "example": 5
+ },
+ "managed_auth_via_composio": {
+ "type": "boolean",
+ "description": "Whether the MCP server is managed by Composio",
+ "example": true
+ },
+ "deleted": {
+ "type": "boolean",
+ "description": "Whether the MCP server is deleted"
}
},
"required": [
- "nanoid"
- ]
+ "id",
+ "name",
+ "auth_config_ids",
+ "allowed_tools",
+ "mcp_url",
+ "toolkits",
+ "toolkit_icons",
+ "commands",
+ "updated_at",
+ "created_at",
+ "server_instance_count",
+ "managed_auth_via_composio",
+ "deleted"
+ ],
+ "description": "MCP server configuration and connection details"
}
}
}
},
"400": {
- "description": "Bad Request - Invalid UUID or resource not found",
+ "description": "Bad request. The request parameters may be invalid or in an incorrect format.",
"content": {
"application/json": {
"schema": {
@@ -15185,7 +15780,7 @@
}
},
"401": {
- "description": "Unauthorized - Invalid or missing API key",
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
"content": {
"application/json": {
"schema": {
@@ -15194,8 +15789,8 @@
}
}
},
- "404": {
- "description": "Not Found - The UUID does not correspond to any resource of the specified type",
+ "403": {
+ "description": "Forbidden. The authenticated user does not have permission to update this MCP server.",
"content": {
"application/json": {
"schema": {
@@ -15204,8 +15799,8 @@
}
}
},
- "410": {
- "description": "Gone - The UUID does not correspond to any resource of the specified type",
+ "404": {
+ "description": "MCP server not found. No server with the specified ID exists or it has been deleted.",
"content": {
"application/json": {
"schema": {
@@ -15215,7 +15810,7 @@
}
},
"500": {
- "description": "Internal server error - An unexpected error occurred during processing",
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
"content": {
"application/json": {
"schema": {
@@ -15226,1188 +15821,1327 @@
}
},
"x-api-version": "3.1"
- }
- },
- "/api/v3.1/tool_router/session": {
- "post": {
- "summary": "Create a new tool router session",
- "description": "Creates a new session for the tool router feature. This endpoint initializes a new session with specified toolkits and their authentication configurations. The session provides an isolated environment for testing and managing tool routing logic with scoped MCP server access.",
+ },
+ "delete": {
+ "summary": "Delete an MCP server",
+ "description": "Performs a soft delete on a Model Control Protocol (MCP) server, making it unavailable for future use. This operation is reversible in the database but cannot be undone through the API. Any applications or services connected to this server will lose access after deletion.",
"tags": [
- "Tool Router"
- ],
- "operationId": "postToolRouterSession",
- "security": [
- {
- "ApiKeyAuth": []
- },
- {
- "UserApiKeyAuth": []
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "user_id": {
- "type": "string",
- "minLength": 1,
- "description": "The identifier of the user who is initiating the session, ideally a unique identifier from your database like a user ID or email address",
- "example": "user_123456789"
- },
- "toolkits": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "enable": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Only these specific toolkits will be enabled",
- "example": [
- "gmail",
- "slack",
- "github"
- ]
- }
- },
- "required": [
- "enable"
- ],
- "additionalProperties": false,
- "description": "Enable only specific toolkits (allowlist)"
- },
- {
- "type": "object",
- "properties": {
- "disable": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "These specific toolkits will be disabled",
- "example": [
- "gmail",
- "slack"
- ]
- }
- },
- "required": [
- "disable"
- ],
- "additionalProperties": false,
- "description": "Disable specific toolkits (denylist)"
- }
- ],
- "description": "Toolkit configuration - specify either enable toolkits (allowlist) or disable toolkits (denylist). Mutually exclusive."
- },
- "auth_configs": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "authConfigId"
- },
- "description": "The auth configs to use for the session. This will override the default behavior and use the given auth config when specific toolkits are being executed",
- "example": {
- "gmail": "ac_1a2b3c4d5e6f",
- "slack": "ac_7g8h9i0j1k2l"
- }
- },
- "connected_accounts": {
- "type": "object",
- "additionalProperties": {
- "type": "string",
- "format": "connectedAccountId"
- },
- "description": "The connected accounts to use for the session. This will override the default behaviour and use the given connected account when specific toolkits are being executed",
- "example": {
- "github": "ca_3m4n5o6p7q8r"
- }
- },
- "manage_connections": {
- "type": "object",
- "properties": {
- "enable": {
- "type": "boolean",
- "nullable": true,
- "default": true,
- "description": "Whether to enable the connection manager for automatic connection handling. If true, we will provide a tool your agent can use to initiate connections to toolkits if it doesnt exist. If set to false, then you have to manage connections manually.",
- "example": true
- },
- "callback_url": {
- "type": "string",
- "format": "uri",
- "description": "The URL to redirect to after a user completes authentication for a connected account. This allows you to handle the auth callback in your own application.",
- "example": "https://your-app.com/auth/callback"
- },
- "enable_wait_for_connections": {
- "type": "boolean",
- "nullable": true,
- "default": false,
- "description": "When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to poll connection status after sharing auth URLs. Default is false (disabled). May not work reliably with GPT models.",
- "example": false
- },
- "enable_connection_removal": {
- "type": "boolean",
- "nullable": true,
- "default": true,
- "description": "Enable the \"remove\" action in COMPOSIO_MANAGE_CONNECTIONS to allow deleting connected accounts. Default true."
- }
- },
- "default": {
- "enable": true,
- "enable_wait_for_connections": false,
- "enable_connection_removal": true
- },
- "additionalProperties": false,
- "description": "Configuration for connection management settings"
- },
- "tools": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "enable": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Only these specific tools will be available for this toolkit",
- "example": [
- "GMAIL_SEND_EMAIL",
- "GMAIL_FETCH_EMAILS"
- ]
- }
- },
- "required": [
- "enable"
- ],
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "disable": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "These specific tools will be disabled for this toolkit",
- "example": [
- "SLACK_ADD_EMOJI"
- ]
- }
- },
- "required": [
- "disable"
- ],
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "tags": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
- }
- },
- {
- "type": "object",
- "properties": {
- "enable": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
- },
- "description": "Tags that the tool must have at least one of"
- },
- "disable": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
- },
- "description": "Tags that the tool must NOT have any of"
- }
- }
- }
- ],
- "description": "MCP tags to filter tools. Array format is treated as enabled list. Object format supports both enabled and disabled lists.",
- "example": {
- "enable": [
- "openWorldHint"
- ],
- "disable": [
- "destructiveHint"
- ]
- }
- }
- },
- "required": [
- "tags"
- ],
- "additionalProperties": false
- }
- ]
+ "MCP"
+ ],
+ "operationId": "deleteMcpById",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "Unique identifier of the MCP server to retrieve, update, or delete",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "required": true,
+ "description": "The ID of the MCP server",
+ "name": "id",
+ "in": "path"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully deleted MCP server. The server has been soft-deleted and is no longer available for use.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Unique identifier of the MCP server to retrieve, update, or delete",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
},
- "description": "Tool-level configuration per toolkit - either specify enable tools (whitelist), disable tools (blacklist), or filter by MCP tags for each toolkit",
- "example": {
- "gmail": {
- "enable": [
- "GMAIL_SEND_EMAIL",
- "GMAIL_FETCH_EMAILS"
- ]
- },
- "slack": {
- "disable": [
- "SLACK_ADD_EMOJI"
- ]
- },
- "slack_bot": {
- "tags": {
- "enable": [
- "destructiveHint"
- ],
- "disable": [
- "openWorldHint"
- ]
- }
- }
+ "deleted": {
+ "type": "boolean",
+ "description": "Indicates whether the MCP server was successfully deleted",
+ "example": true
}
},
- "tags": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
- }
- },
- {
+ "required": [
+ "id",
+ "deleted"
+ ],
+ "description": "Response indicating the success of the delete operation"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request. The server ID parameter may be invalid or in an incorrect format.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden. The authenticated user does not have permission to delete this MCP server.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "MCP server not found. No server with the specified ID exists or it has already been deleted.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {}
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/mcp/app/{appKey}": {
+ "get": {
+ "summary": "List MCP servers for a specific app",
+ "description": "Retrieves a paginated list of Model Control Protocol (MCP) servers that are configured for a specific application or toolkit. This endpoint allows you to find all MCP server instances that have access to a particular application, such as GitHub, Slack, or Jira.",
+ "tags": [
+ "MCP"
+ ],
+ "operationId": "getMcpAppByAppKey",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "Toolkit or application slug identifier to filter MCP servers by",
+ "example": "github"
+ },
+ "required": true,
+ "description": "The key of the app to find MCP servers for",
+ "name": "appKey",
+ "in": "path"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "description": "Name substring to filter servers by",
+ "example": "github"
+ },
+ "required": false,
+ "description": "Filter MCP servers by name (case-insensitive partial match)",
+ "name": "name",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": false,
+ "description": "Comma-separated list of toolkit slugs to filter servers by",
+ "in": "query",
+ "name": "toolkits"
+ },
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": false,
+ "description": "Comma-separated list of auth config IDs to filter servers by",
+ "in": "query",
+ "name": "auth_config_ids"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created_at",
+ "updated_at"
+ ],
+ "default": "updated_at",
+ "description": "Field to use for ordering the results",
+ "example": "updated_at"
+ },
+ "required": false,
+ "description": "Field to order results by",
+ "name": "order_by",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc",
+ "description": "Sort direction (ascending or descending)",
+ "example": "desc"
+ },
+ "required": false,
+ "description": "Direction of ordering",
+ "name": "order_direction",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true,
+ "default": 1,
+ "description": "Page number to retrieve",
+ "example": 1
+ },
+ "required": false,
+ "description": "Page number for pagination (1-based)",
+ "name": "page_no",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true,
+ "default": 10,
+ "description": "Number of servers to return per page",
+ "example": 10
+ },
+ "required": false,
+ "description": "Number of items per page (default: 10)",
+ "name": "limit",
+ "in": "query"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved MCP servers for the specified application. Returns a paginated list of server configurations including connection details and command instructions.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "type": "array",
+ "items": {
"type": "object",
"properties": {
- "enable": {
+ "id": {
+ "type": "string",
+ "description": "UUID of the MCP server instance",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "name": {
+ "type": "string",
+ "description": "User-defined descriptive name for this MCP server",
+ "example": "GitHub Integration Server"
+ },
+ "auth_config_ids": {
"type": "array",
"items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
+ "type": "string"
},
- "description": "Tags that the tool must have at least one of"
+ "description": "ID references to the auth configurations used by this server",
+ "example": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ]
},
- "disable": {
+ "allowed_tools": {
"type": "array",
"items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
+ "type": "string"
},
- "description": "Tags that the tool must NOT have any of"
- }
- }
- }
- ],
- "description": "Global MCP tool annotation hints for filtering. Array format is treated as enabled list. Object format supports both enabled (tool must have at least one) and disabled (tool must NOT have any) lists. Toolkit-level tags override this. Toolkit enabled/disabled lists take precedence over tag filtering.",
- "example": {
- "enable": [
- "openWorldHint"
- ],
- "disable": [
- "destructiveHint"
- ]
- }
- },
- "workbench": {
- "type": "object",
- "properties": {
- "enable": {
- "type": "boolean",
- "default": true,
- "description": "Set to false to disable the workbench entirely. When disabled, no code execution tools are available in the session.",
- "example": true
- },
- "enable_proxy_execution": {
- "type": "boolean",
- "default": true,
- "description": "Whether proxy execution is enabled. When enabled, workbench can call URLs and APIs directly.",
- "example": true
- },
- "auto_offload_threshold": {
- "type": "number",
- "minimum": 0,
- "exclusiveMinimum": true,
- "description": "Character threshold for automatic offloading. When workbench response exceeds this threshold, it will be automatically offloaded. Default is picked automatically based on the response size.",
- "example": 20000
- }
- },
- "default": {
- "enable": true,
- "enable_proxy_execution": true
- },
- "additionalProperties": false,
- "description": "Configuration for workbench behavior"
- },
- "multi_account": {
- "type": "object",
- "properties": {
- "enable": {
- "type": "boolean",
- "description": "When true, enables multi-account mode for this session. When not set, falls back to org/project-level configuration.",
- "example": true
- },
- "max_accounts_per_toolkit": {
- "type": "integer",
- "minimum": 2,
- "maximum": 10,
- "description": "Maximum number of connected accounts allowed per toolkit. Must be between 2 and 10.",
- "example": 5
- },
- "require_explicit_selection": {
- "type": "boolean",
- "description": "When true, the agent must explicitly select which account to use. When false (default), the first/default account is used automatically.",
- "example": false
- }
- },
- "additionalProperties": false,
- "description": "Configure multi-account behavior. When enabled, users can connect multiple accounts per toolkit."
- },
- "experimental": {
- "type": "object",
- "properties": {
- "assistive_prompt_config": {
- "type": "object",
- "properties": {
- "user_timezone": {
+ "description": "Array of tool slugs that this MCP server is allowed to use",
+ "example": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "GITHUB_GET_A_REPOSITORY",
+ "GITHUB_LIST_PULL_REQUESTS"
+ ]
+ },
+ "mcp_url": {
"type": "string",
- "description": "IANA timezone identifier (e.g., 'America/New_York', 'Europe/London'). Used to customize the system prompt with timezone-aware instructions.",
- "example": "America/New_York"
- }
- },
- "additionalProperties": false,
- "description": "Customize assistive prompt generation (e.g., timezone)."
- },
- "custom_toolkits": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "minLength": 1,
- "pattern": "^[a-zA-Z0-9_-]+$",
- "description": "Unique slug for the toolkit. Must not conflict with existing Composio toolkit slugs. Alphanumeric, underscores, and hyphens only.",
- "example": "ecommerce"
- },
- "name": {
- "type": "string",
- "minLength": 1,
- "maxLength": 128,
- "description": "Display name shown to the LLM and in search results.",
- "example": "E-Commerce API"
- },
- "description": {
- "type": "string",
- "minLength": 1,
- "maxLength": 2048,
- "description": "Used for BM25 search matching and shown in toolkit connection statuses.",
- "example": "Internal e-commerce API for order management and fulfillment"
- },
- "tools": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "minLength": 1,
- "pattern": "^[a-zA-Z0-9_-]+$",
- "description": "Tool slug. Combined with toolkit slug to form LOCAL_<TOOLKIT>_<TOOL> (max 60 chars total).",
- "example": "GET_CUSTOMER_ORDERS"
- },
- "name": {
- "type": "string",
- "minLength": 1,
- "maxLength": 128,
- "description": "Human-readable display name",
- "example": "Get Customer Orders"
- },
- "description": {
- "type": "string",
- "minLength": 1,
- "maxLength": 5120,
- "description": "Used for BM25 search matching and shown to the LLM.",
- "example": "Fetch recent orders for a customer by their email address"
- },
- "input_schema": {
- "type": "object",
- "additionalProperties": {},
- "description": "Must have type: \"object\" and a properties field.",
- "example": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string",
- "description": "Customer email"
- }
- },
- "required": [
- "email"
- ]
- }
- },
- "output_schema": {
- "type": "object",
- "additionalProperties": {},
- "description": "Optional output schema for the tool response."
- }
- },
- "required": [
- "slug",
- "name",
- "description",
- "input_schema"
- ]
- },
- "minItems": 1,
- "maxItems": 100,
- "description": "Tools in this custom toolkit"
- }
+ "description": "[DEPRECATED] Please use the URL with user_id or connected_account_id query param",
+ "deprecated": true,
+ "example": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john"
},
- "required": [
- "slug",
- "name",
- "description",
- "tools"
- ]
- },
- "description": "Custom toolkits with grouped tools. Toolkit slugs must not conflict with existing Composio toolkits. All tools are no-auth."
- },
- "custom_tools": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "minLength": 1,
- "pattern": "^[a-zA-Z0-9_-]+$",
- "description": "Tool slug. Forms LOCAL_<TOOL> (standalone) or LOCAL_<TOOLKIT>_<TOOL> (extending). Max 60 chars total.",
- "example": "GET_IMPORTANT_EMAILS"
- },
- "name": {
- "type": "string",
- "minLength": 1,
- "maxLength": 128,
- "description": "Human-readable display name",
- "example": "Get Important Emails"
+ "toolkits": {
+ "type": "array",
+ "items": {
+ "type": "string"
},
- "description": {
- "type": "string",
- "minLength": 1,
- "maxLength": 5120,
- "description": "Used for BM25 search matching and shown to the LLM.",
- "example": "Fetch emails marked as important from the last 24 hours"
+ "description": "Array of toolkit slugs that this MCP server is allowed to use",
+ "example": [
+ "github",
+ "jira",
+ "slack"
+ ]
+ },
+ "toolkit_icons": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
},
- "input_schema": {
- "type": "object",
- "additionalProperties": {},
- "description": "Must have type: \"object\" and a properties field.",
- "example": {
- "type": "object",
- "properties": {
- "limit": {
- "type": "number",
- "description": "Max results to return"
- }
- }
+ "description": "Object mapping each toolkit slug to its icon/logo URL for display purposes",
+ "example": {
+ "github": "https://assets.composio.dev/logos/github.png",
+ "jira": "https://assets.composio.dev/logos/jira.png",
+ "slack": "https://assets.composio.dev/logos/slack.png"
+ }
+ },
+ "commands": {
+ "type": "object",
+ "properties": {
+ "cursor": {
+ "type": "string",
+ "description": "Command line instruction for Cursor client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor"
+ },
+ "claude": {
+ "type": "string",
+ "description": "Command line instruction for Claude client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude"
+ },
+ "windsurf": {
+ "type": "string",
+ "description": "Command line instruction for Windsurf client setup",
+ "deprecated": true,
+ "example": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
}
},
- "output_schema": {
- "type": "object",
- "additionalProperties": {},
- "description": "JSON Schema describing tool output (optional)"
- },
- "extends_toolkit": {
- "type": "string",
- "minLength": 1,
- "description": "If set, must be a valid Composio toolkit slug. The tool inherits that toolkit's auth/connection status. If omitted, the tool is standalone (no-auth).",
- "example": "gmail"
- }
+ "required": [
+ "cursor",
+ "claude",
+ "windsurf"
+ ],
+ "description": "Set of command line instructions for connecting various clients to this MCP server",
+ "deprecated": true
},
- "required": [
- "slug",
- "name",
- "description",
- "input_schema"
- ]
+ "updated_at": {
+ "type": "string",
+ "description": "Date and time when this server configuration was last modified",
+ "example": "2023-06-15T14:30:00.000Z"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when this server was initially created",
+ "example": "2023-06-10T09:15:00.000Z"
+ },
+ "server_instance_count": {
+ "type": "number",
+ "description": "Total count of active user instances connected to this server",
+ "example": 5
+ },
+ "managed_auth_via_composio": {
+ "type": "boolean",
+ "description": "Whether the MCP server is managed by Composio",
+ "example": true
+ }
},
- "description": "Custom tools to include in search. Standalone tools need no auth. Tools with extends_toolkit inherit the Composio toolkit's connection."
- }
- },
- "additionalProperties": false,
- "description": "Experimental features - not stable, may be modified or removed in future versions.",
- "x-experimental": true
- }
- },
- "required": [
- "user_id"
- ]
- },
- "examples": {
- "Session with all toolkits": {
- "value": {
- "user_id": "user_123456789"
- }
- },
- "Session with only specific toolkits": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "enable": [
- "gmail",
- "slack"
- ]
- }
- }
- },
- "Session with only specific toolkits disabled": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "disable": [
- "gmail",
- "slack"
- ]
- }
- }
- },
- "Session with connection manager enabled": {
- "value": {
- "user_id": "user_123456789",
- "manage_connections": {
- "enable": true
- }
- }
- },
- "Session with connection manager and specific toolkits": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "enable": [
- "gmail",
- "slack"
- ]
- },
- "manage_connections": {
- "enable": true
- }
- }
- },
- "Session with custom callback URL": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "enable": [
- "github",
- "slack"
- ]
- },
- "manage_connections": {
- "enable": true,
- "callback_url": "https://your-app.com/auth/callback"
- }
- }
- },
- "Session with workbench configuration": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "enable": [
- "gmail"
- ]
- },
- "workbench": {
- "enable_proxy_execution": true,
- "auto_offload_threshold": 10000
- }
- }
- },
- "Session with global tags filter": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "enable": [
- "gmail",
- "slack"
- ]
- },
- "tags": [
- "readOnlyHint",
- "idempotentHint"
- ]
- }
- },
- "Session with auth config overrides": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "enable": [
- "gmail",
- "slack"
- ]
- },
- "auth_configs": {
- "gmail": "ac_1a2b3c4d5e6f",
- "slack": "ac_7g8h9i0j1k2l"
- }
- }
- },
- "Session with connected account overrides": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "enable": [
- "gmail",
- "slack"
- ]
- },
- "connected_accounts": {
- "gmail": "ca_1a2b3c4d5e6f",
- "slack": "ca_7g8h9i0j1k2l"
- }
- }
- },
- "Session with comprehensive configuration": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "enable": [
- "gmail",
- "slack",
- "github"
+ "required": [
+ "id",
+ "name",
+ "auth_config_ids",
+ "allowed_tools",
+ "mcp_url",
+ "toolkits",
+ "toolkit_icons",
+ "commands",
+ "updated_at",
+ "created_at",
+ "server_instance_count",
+ "managed_auth_via_composio"
+ ],
+ "description": "MCP server configuration and connection details"
+ },
+ "description": "Array of MCP server configurations",
+ "example": [
+ {
+ "id": "550e8400-e29b-41d4-a716-446655440000",
+ "name": "GitHub Integration Server",
+ "auth_config_ids": [
+ "ac_1a2b3c4d5e6f",
+ "ac_7g8h9i0j1k2l"
+ ],
+ "allowed_tools": [
+ "GITHUB_CREATE_AN_ISSUE",
+ "GITHUB_GET_A_REPOSITORY"
+ ],
+ "mcp_url": "https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john",
+ "commands": {
+ "cursor": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client cursor",
+ "claude": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client claude",
+ "windsurf": "npx @composio/mcp@latest setup \"https://backend.composio.dev/v3/mcp/550e8400-e29b-41d4-a716-446655440000?user_id=john\" --client windsurf"
+ },
+ "toolkits": [
+ "github",
+ "jira",
+ "slack"
+ ],
+ "toolkit_icons": {
+ "github": "https://assets.composio.dev/logos/github.png",
+ "jira": "https://assets.composio.dev/logos/jira.png",
+ "slack": "https://assets.composio.dev/logos/slack.png"
+ },
+ "updated_at": "2023-06-15T14:30:00.000Z",
+ "created_at": "2023-06-10T09:15:00.000Z",
+ "server_instance_count": 5,
+ "managed_auth_via_composio": true
+ }
]
},
- "auth_configs": {
- "gmail": "ac_1a2b3c4d5e6f",
- "slack": "ac_7g8h9i0j1k2l"
- },
- "connected_accounts": {
- "github": "ca_3m4n5o6p7q8r"
- },
- "manage_connections": {
- "enable": true,
- "callback_url": "https://your-app.com/auth/callback"
- },
- "tools": {
- "gmail": {
- "enable": [
- "GMAIL_SEND_EMAIL",
- "GMAIL_FETCH_EMAILS"
- ]
- },
- "slack": {
- "disable": [
- "SLACK_ADD_EMOJI"
- ]
- },
- "slack_bot": {
- "tags": [
- "destructiveHint"
- ]
- }
+ "total_pages": {
+ "type": "number",
+ "description": "Total number of pages in the paginated response",
+ "example": 5
},
- "tags": [
- "destructiveHint",
- "idempotentHint"
- ],
- "workbench": {
- "enable_proxy_execution": true,
- "auto_offload_threshold": 10000
+ "current_page": {
+ "type": "number",
+ "description": "Current page number being returned",
+ "example": 1
}
- }
- },
- "Session with disabled toolkits and global tags": {
- "value": {
- "user_id": "user_123456789",
- "toolkits": {
- "disable": [
- "gmail"
- ]
- },
- "tags": [
- "readOnlyHint"
- ]
- }
+ },
+ "required": [
+ "items",
+ "total_pages",
+ "current_page"
+ ],
+ "description": "Paginated response containing MCP servers"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request. The query parameters may be invalid or in an incorrect format.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden. The authenticated user does not have permission to view MCP servers for this application.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Application not found. No application with the specified key exists.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
}
}
}
}
- },
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/mcp/servers/{serverId}/instances": {
+ "get": {
+ "summary": "List all instances for an MCP server",
+ "description": "Retrieves a paginated list of user instances (user IDs) associated with a specific Model Control Protocol (MCP) server. This endpoint supports pagination to handle servers with many instances.",
+ "tags": [
+ "MCP"
+ ],
+ "operationId": "getMcpServersByServerIdInstances",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "UUID of the MCP server to list instances for",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "required": true,
+ "description": "The ID of the MCP server",
+ "name": "serverId",
+ "in": "path"
+ },
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true,
+ "default": 1,
+ "description": "Page number to retrieve",
+ "example": 1
+ },
+ "required": false,
+ "description": "Page number for pagination (1-based)",
+ "name": "page_no",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true,
+ "default": 20,
+ "description": "Number of instances to return per page",
+ "example": 20
+ },
+ "required": false,
+ "description": "Number of items per page (default: 20)",
+ "name": "limit",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "description": "Filter instances by user ID or instance ID (partial match)",
+ "example": "user_123"
+ },
+ "required": false,
+ "description": "Search instances by user ID/instance ID",
+ "name": "search",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "enum": [
+ "created_at",
+ "updated_at"
+ ],
+ "default": "updated_at",
+ "description": "Field to use for ordering the results",
+ "example": "updated_at"
+ },
+ "required": false,
+ "description": "Field to order results by",
+ "name": "order_by",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "default": "desc",
+ "description": "Sort direction (ascending or descending)",
+ "example": "desc"
+ },
+ "required": false,
+ "description": "Direction of ordering",
+ "name": "order_direction",
+ "in": "query"
+ }
+ ],
"responses": {
- "201": {
- "description": "Session successfully created. Returns the session ID and MCP server URL for the created session.",
+ "200": {
+ "description": "Successfully retrieved MCP server instances. Returns the list of user IDs associated with this server.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
- "session_id": {
- "type": "string",
- "format": "toolRouterSessionId",
- "description": "The identifier of the session",
- "example": "trs_1a2b3c4d5e6f"
- },
- "mcp": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": [
- "http"
- ],
- "description": "The type of the MCP server. Can be http"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "description": "The URL of the MCP server",
- "example": "https://app.composio.dev/tool_router/v3/trs_1a2b3c4d5e6f/mcp"
- }
- },
- "required": [
- "type",
- "url"
- ]
- },
- "tool_router_tools": {
+ "instances": {
"type": "array",
"items": {
- "type": "string"
- },
- "description": "List of available tools in this session"
- },
- "config": {
- "type": "object",
- "properties": {
- "user_id": {
- "type": "string",
- "description": "User identifier for this session"
- },
- "toolkits": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "enabled"
- ],
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "disabled": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "disabled"
- ],
- "additionalProperties": false
- }
- ],
- "description": "Toolkit configuration - either enabled list or disabled list"
- },
- "auth_configs": {
- "type": "object",
- "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "id": {
"type": "string",
- "format": "authConfigId"
+ "description": "UUID of the instance record",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
},
- "description": "Auth config overrides per toolkit"
- },
- "connected_accounts": {
- "type": "object",
- "additionalProperties": {
+ "instance_id": {
"type": "string",
- "format": "connectedAccountId"
- },
- "description": "Connected account overrides per toolkit"
- },
- "manage_connections": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean",
- "default": true,
- "description": "Whether to enable the connection manager for automatic connection handling"
- },
- "callback_url": {
- "type": "string",
- "format": "uri",
- "description": "Custom callback URL for connected account auth flows"
- },
- "enable_wait_for_connections": {
- "type": "boolean",
- "default": false,
- "description": "Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status. Default false. May not work reliably with GPT models."
- },
- "enable_connection_removal": {
- "type": "boolean",
- "default": true,
- "description": "Enable the \"remove\" action in COMPOSIO_MANAGE_CONNECTIONS. Default true."
- }
- },
- "description": "Manage connections configuration"
- },
- "tools": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "enabled"
- ],
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "disabled": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "disabled"
- ],
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "tags": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
- },
- "description": "Tags that the tool must have at least one of"
- },
- "disabled": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
- },
- "description": "Tags that the tool must NOT have any of"
- }
- }
- }
- },
- "required": [
- "tags"
- ],
- "additionalProperties": false
- }
- ]
- },
- "description": "Tool-level configuration per toolkit"
- },
- "tags": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
- },
- "description": "Tags that the tool must have at least one of"
- },
- "disabled": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "readOnlyHint",
- "destructiveHint",
- "idempotentHint",
- "openWorldHint"
- ]
- },
- "description": "Tags that the tool must NOT have any of"
- }
+ "description": "The instance identifier (same as the user_id)",
+ "example": "user_123456"
},
- "description": "MCP tool annotation hints for filtering tools with enabled/disabled support. enabled: tags that the tool must have at least one of. disabled: tags that the tool must NOT have any of. Both conditions must be satisfied."
- },
- "workbench": {
- "type": "object",
- "properties": {
- "enable": {
- "type": "boolean",
- "description": "Whether the workbench (code execution sandbox) is enabled. When false, COMPOSIO_REMOTE_WORKBENCH and COMPOSIO_REMOTE_BASH_TOOL are not exposed."
- },
- "proxy_execution_enabled": {
- "type": "boolean",
- "description": "Whether proxy execution is enabled in the workbench"
- },
- "auto_offload_threshold": {
- "type": "number",
- "minimum": 0,
- "exclusiveMinimum": true,
- "description": "Character threshold after which tool execution response are saved to a file in workbench. Default is 20k."
- }
+ "mcp_server_id": {
+ "type": "string",
+ "description": "UUID of the parent MCP server",
+ "example": "660e8400-e29b-41d4-a716-446655440001"
},
- "default": {
- "enable": true,
- "proxy_execution_enabled": true
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when this instance was created",
+ "example": "2023-06-10T09:15:00.000Z"
},
- "description": "Workbench configuration"
+ "updated_at": {
+ "type": "string",
+ "description": "Date and time when this instance was last modified",
+ "example": "2023-06-15T14:30:00.000Z"
+ }
},
- "multi_account": {
- "type": "object",
- "properties": {
- "enable": {
- "type": "boolean",
- "description": "When true, enables multi-account mode for this session. When not set, falls back to org/project-level configuration."
- },
- "max_accounts_per_toolkit": {
- "type": "integer",
- "description": "Maximum number of connected accounts allowed per toolkit. Defaults to 5 when multi-account is enabled."
- },
- "require_explicit_selection": {
- "type": "boolean",
- "description": "When true, require explicit account selection when multiple accounts are connected. When false (default), use the first/default account."
- }
- },
- "description": "Multi-account configuration for this session."
- }
+ "required": [
+ "id",
+ "instance_id",
+ "mcp_server_id",
+ "created_at",
+ "updated_at"
+ ],
+ "description": "MCP server instance details"
},
- "required": [
- "user_id"
- ],
- "description": "The session configuration including user, toolkits, and overrides"
+ "description": "List of instance objects associated with this MCP server for the current page",
+ "example": [
+ {
+ "id": "550e8400-e29b-41d4-a716-446655440000",
+ "instance_id": "user_123456",
+ "mcp_server_id": "660e8400-e29b-41d4-a716-446655440001",
+ "created_at": "2023-06-10T09:15:00.000Z",
+ "updated_at": "2023-06-15T14:30:00.000Z"
+ }
+ ]
+ },
+ "server_id": {
+ "type": "string",
+ "description": "UUID of the MCP server",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "server_name": {
+ "type": "string",
+ "description": "Name of the MCP server",
+ "example": "Production GitHub Integration"
+ },
+ "total_pages": {
+ "type": "number",
+ "description": "Total number of pages in the paginated response",
+ "example": 3
+ },
+ "current_page": {
+ "type": "number",
+ "description": "Current page number being returned",
+ "example": 1
+ }
+ },
+ "required": [
+ "instances",
+ "server_id",
+ "server_name",
+ "total_pages",
+ "current_page"
+ ],
+ "description": "Paginated list of instances for an MCP server"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request. The server ID parameter may be invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "MCP server not found. No server with the specified ID exists.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ },
+ "post": {
+ "summary": "Create a new MCP server instance",
+ "description": "Creates a new instance for a Model Control Protocol (MCP) server. This endpoint validates that the user has connected accounts for all auth configurations associated with the MCP server before creating the instance.",
+ "tags": [
+ "MCP"
+ ],
+ "operationId": "postMcpServersByServerIdInstances",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "UUID of the MCP server to create an instance for",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "required": true,
+ "description": "The ID of the MCP server",
+ "name": "serverId",
+ "in": "path"
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string",
+ "minLength": 1,
+ "description": "The user ID (entity ID) that will be used as both the user identifier and instance ID",
+ "example": "user_123456"
+ }
+ },
+ "required": [
+ "user_id"
+ ],
+ "description": "Parameters for creating a new MCP server instance"
+ },
+ "examples": {
+ "Create Instance": {
+ "value": {
+ "user_id": "user_123456"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "Successfully created MCP server instance. Returns the created instance details.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "UUID of the instance record",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "instance_id": {
+ "type": "string",
+ "description": "The instance identifier (same as the user_id)",
+ "example": "user_123456"
+ },
+ "mcp_server_id": {
+ "type": "string",
+ "description": "UUID of the parent MCP server",
+ "example": "660e8400-e29b-41d4-a716-446655440001"
+ },
+ "created_at": {
+ "type": "string",
+ "description": "Date and time when this instance was created",
+ "example": "2023-06-10T09:15:00.000Z"
+ },
+ "updated_at": {
+ "type": "string",
+ "description": "Date and time when this instance was last modified",
+ "example": "2023-06-15T14:30:00.000Z"
+ }
+ },
+ "required": [
+ "id",
+ "instance_id",
+ "mcp_server_id",
+ "created_at",
+ "updated_at"
+ ],
+ "description": "MCP server instance details"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request. The request parameters may be invalid or the instance ID already exists.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "403": {
+ "description": "Forbidden. The user does not have connected accounts for all required auth configurations.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "MCP server not found. No server with the specified ID exists.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "409": {
+ "description": "Conflict. An instance with this ID already exists for the server.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/mcp/servers/{serverId}/instances/{instanceId}": {
+ "delete": {
+ "summary": "Delete an MCP server instance and associated connected accounts",
+ "description": "Removes a user instance from the MCP server and deletes all connected accounts for that user that are associated with the auth configurations of this specific MCP server. Connected accounts for other auth configurations are not affected.",
+ "tags": [
+ "MCP"
+ ],
+ "operationId": "deleteMcpServersByServerIdInstancesByInstanceId",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "UUID of the MCP server",
+ "example": "550e8400-e29b-41d4-a716-446655440000"
+ },
+ "required": true,
+ "description": "The ID of the MCP server",
+ "name": "serverId",
+ "in": "path"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "description": "The user ID to remove from this server",
+ "example": "user_123456"
+ },
+ "required": true,
+ "description": "The instance ID (user ID) to delete",
+ "name": "instanceId",
+ "in": "path"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully deleted MCP server instance and associated connected accounts.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
},
- "experimental": {
- "type": "object",
- "properties": {
- "assistive_prompt": {
- "type": "string",
- "description": "The assistive system prompt for the tool router session"
- },
- "custom_toolkits": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "minLength": 1,
- "pattern": "^[a-zA-Z0-9_-]+$"
- },
- "name": {
- "type": "string",
- "minLength": 1,
- "maxLength": 128
- },
- "description": {
- "type": "string",
- "minLength": 1,
- "maxLength": 2048
- },
- "tools": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "Prefixed tool slug (e.g. LOCAL_CRM_FIND_CUSTOMER)"
- },
- "name": {
- "type": "string",
- "minLength": 1,
- "maxLength": 128
- },
- "description": {
- "type": "string",
- "minLength": 1,
- "maxLength": 5120
- },
- "input_schema": {
- "type": "object",
- "additionalProperties": {}
- },
- "output_schema": {
- "type": "object",
- "additionalProperties": {}
- },
- "original_slug": {
- "type": "string",
- "description": "Original tool slug as provided by the user"
- }
- },
- "required": [
- "slug",
- "name",
- "description",
- "input_schema",
- "original_slug"
- ]
- }
- }
- },
- "required": [
- "slug",
- "name",
- "description",
- "tools"
- ]
+ "deleted_connected_accounts": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "message",
+ "deleted_connected_accounts"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request. The request parameters may be invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "MCP server or instance not found.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/files/list": {
+ "get": {
+ "summary": "List files with optional app and action filters",
+ "description": "Retrieves a list of files associated with the authenticated project. Results can be filtered by toolkit and tool slugs.",
+ "tags": [
+ "Files"
+ ],
+ "operationId": "getFilesList",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "description": "Filter files by app slug. Example: \"file-converter\""
+ },
+ "required": false,
+ "description": "Filter files by app slug. Example: \"file-converter\"",
+ "name": "toolkit_slug",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "description": "Filter files by action slug. Example: \"convert-to-pdf\""
+ },
+ "required": false,
+ "description": "Filter files by action slug. Example: \"convert-to-pdf\"",
+ "name": "tool_slug",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "number",
+ "nullable": true
+ },
+ "required": false,
+ "description": "Number of items per page, max allowed is 1000",
+ "name": "limit",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string"
+ },
+ "required": false,
+ "description": "Cursor for pagination. The cursor is a base64 encoded string of the page and limit. The page is the page number and the limit is the number of items per page. The cursor is used to paginate through the items. The cursor is not required for the first page.",
+ "name": "cursor",
+ "in": "query"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved files",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "toolkit_slug": {
+ "type": "string",
+ "description": "Slug of the app where this file belongs to. Example: \"file-converter\""
},
- "description": "User-defined custom toolkits with grouped tools (no-auth)"
- },
- "custom_tools": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "slug": {
- "type": "string",
- "description": "Prefixed tool slug (e.g. LOCAL_GMAIL_GET_IMPORTANT_EMAILS)"
- },
- "name": {
- "type": "string",
- "minLength": 1,
- "maxLength": 128
- },
- "description": {
- "type": "string",
- "minLength": 1,
- "maxLength": 5120
- },
- "input_schema": {
- "type": "object",
- "additionalProperties": {}
- },
- "output_schema": {
- "type": "object",
- "additionalProperties": {}
- },
- "extends_toolkit": {
- "type": "string",
- "minLength": 1
- },
- "original_slug": {
- "type": "string",
- "description": "Original tool slug as provided by the user"
- }
- },
- "required": [
- "slug",
- "name",
- "description",
- "input_schema",
- "original_slug"
- ]
+ "tool_slug": {
+ "type": "string",
+ "description": "Slug of the action where this file belongs to. Example: \"convert-to-pdf\""
},
- "description": "Custom tools — standalone or extending Composio toolkits"
+ "filename": {
+ "type": "string",
+ "description": "Name of the original file. Example: \"document.docx\""
+ },
+ "mimetype": {
+ "type": "string",
+ "description": "Mime type of the original file. Example: \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\""
+ },
+ "md5": {
+ "type": "string",
+ "description": "MD5 hash of the file for integrity verification. Example: \"d41d8cd98f00b204e9800998ecf8427e\""
+ }
+ },
+ "required": [
+ "toolkit_slug",
+ "tool_slug",
+ "filename",
+ "mimetype",
+ "md5"
+ ]
+ }
+ },
+ "next_cursor": {
+ "type": "string",
+ "nullable": true
+ },
+ "total_pages": {
+ "type": "number"
+ },
+ "current_page": {
+ "type": "number"
+ },
+ "total_items": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "items",
+ "total_pages",
+ "current_page",
+ "total_items"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/files/upload/request": {
+ "post": {
+ "summary": "Create presigned URL for request file upload to S3",
+ "description": "Generates a presigned URL for uploading a file to S3. This endpoint handles deduplication by checking if a file with the same MD5 hash already exists.",
+ "tags": [
+ "Files"
+ ],
+ "operationId": "postFilesUploadRequest",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "toolkit_slug": {
+ "type": "string",
+ "description": "Slug of the app where this file belongs to. Example: \"gmail\", \"slack\", \"github\""
+ },
+ "tool_slug": {
+ "type": "string",
+ "description": "Slug of the action where this file belongs to. Example: \"GMAIL_SEND_EMAIL\", \"SLACK_UPLOAD_FILE\""
+ },
+ "filename": {
+ "type": "string",
+ "description": "Name of the original file. Example: \"quarterly_report.pdf\""
+ },
+ "mimetype": {
+ "type": "string",
+ "description": "Mime type of the original file. Example: \"application/pdf\", \"image/png\""
+ },
+ "md5": {
+ "type": "string",
+ "description": "MD5 hash of the file for deduplication and integrity verification. Example: \"a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6\""
+ }
+ },
+ "required": [
+ "toolkit_slug",
+ "tool_slug",
+ "filename",
+ "mimetype",
+ "md5"
+ ]
+ },
+ "examples": {
+ "Gmail Email Attachment": {
+ "value": {
+ "toolkit_slug": "gmail",
+ "tool_slug": "GMAIL_SEND_EMAIL",
+ "filename": "quarterly_report.pdf",
+ "mimetype": "application/pdf",
+ "md5": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
+ }
+ },
+ "Slack File Upload": {
+ "value": {
+ "toolkit_slug": "slack",
+ "tool_slug": "SLACK_SEND_MESSAGE",
+ "filename": "meeting_notes.docx",
+ "mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
+ "md5": "b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7"
+ }
+ },
+ "GitHub Issue Screenshot": {
+ "value": {
+ "toolkit_slug": "github",
+ "tool_slug": "GITHUB_CREATE_AN_ISSUE",
+ "filename": "bug_screenshot.png",
+ "mimetype": "image/png",
+ "md5": "c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8"
+ }
+ },
+ "Notion Page Image": {
+ "value": {
+ "toolkit_slug": "notion",
+ "tool_slug": "NOTION_ADD_PAGE_CONTENT",
+ "filename": "diagram.svg",
+ "mimetype": "image/svg+xml",
+ "md5": "d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9"
+ }
+ },
+ "Jira Attachment": {
+ "value": {
+ "toolkit_slug": "jira",
+ "tool_slug": "JIRA_ADD_ATTACHMENT",
+ "filename": "error_logs.txt",
+ "mimetype": "text/plain",
+ "md5": "e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Successfully created upload URL for request file",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "ID of the request file. Example: \"req_file_9mZn4qR8sXwT\""
+ },
+ "key": {
+ "type": "string",
+ "description": "Object storage upload location. Example: \"projects/prj_xyz789/requests/slack/SLACK_UPLOAD_FILE/document_9mZn4q.docx\""
+ },
+ "new_presigned_url": {
+ "type": "string",
+ "description": "Presigned URL for upload. Example: \"https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600...\""
+ },
+ "newPresignedUrl": {
+ "type": "string",
+ "description": "[DEPRECATED] Use new_presigned_url instead. Presigned URL for upload. Example: \"https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600...\"",
+ "deprecated": true
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "new"
+ ],
+ "description": "[DEPRECATED] Indicates this is a new file that needs to be uploaded",
+ "deprecated": true
+ },
+ "metadata": {
+ "type": "object",
+ "properties": {
+ "storage_backend": {
+ "type": "string",
+ "enum": [
+ "s3",
+ "azure_blob_storage"
+ ],
+ "description": "Storage backend used for the file. If this is azure, use `x-ms-blob-type` header to set the blob type to `BlockBlob` while uploading the file"
}
},
- "description": "Experimental features including the generated system prompt. Only returned on session creation, not on GET.",
- "x-experimental": true
+ "required": [
+ "storage_backend"
+ ]
}
},
"required": [
- "session_id",
- "mcp",
- "tool_router_tools",
- "config"
+ "id",
+ "key",
+ "new_presigned_url",
+ "newPresignedUrl",
+ "type",
+ "metadata"
]
}
}
}
},
"400": {
- "description": "Bad request. This may occur if the user_id format is invalid, toolkit names are invalid, or auth_config_id IDs are malformed.",
+ "description": "Bad Request",
"content": {
"application/json": {
"schema": {
@@ -16417,7 +17151,7 @@
}
},
"401": {
- "description": "Unauthorized. Authentication is required or the provided credentials are invalid.",
+ "description": "Unauthorized",
"content": {
"application/json": {
"schema": {
@@ -16427,7 +17161,7 @@
}
},
"403": {
- "description": "Forbidden. The user is not authorized to create a tool router session.",
+ "description": "Forbidden",
"content": {
"application/json": {
"schema": {
@@ -16436,8 +17170,28 @@
}
}
},
- "408": {
- "description": "Request timeout. The session creation took too long to complete.",
+ "404": {
+ "description": "Not Found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "410": {
+ "description": "Gone",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "429": {
+ "description": "Too Many Requests",
"content": {
"application/json": {
"schema": {
@@ -16447,7 +17201,148 @@
}
},
"500": {
- "description": "Internal server error. An unexpected error occurred while processing the request.",
+ "description": "Internal Server Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "501": {
+ "description": "Not Implemented",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ }
+ },
+ "x-api-version": "3.1"
+ }
+ },
+ "/api/v3.1/migration/get-nanoid": {
+ "get": {
+ "summary": "Get NanoId from UUID",
+ "description": "Convert a legacy UUID to its corresponding NanoId for migration purposes. This endpoint facilitates the transition from UUID-based identifiers to the more compact NanoId format used in the v3 API.",
+ "tags": [
+ "Migration"
+ ],
+ "operationId": "getMigrationGetNanoid",
+ "security": [
+ {
+ "ApiKeyAuth": []
+ },
+ {
+ "UserApiKeyAuth": []
+ }
+ ],
+ "parameters": [
+ {
+ "schema": {
+ "type": "string",
+ "format": "uuid",
+ "example": "123e4567-e89b-12d3-a456-426614174000"
+ },
+ "required": true,
+ "description": "The legacy UUID that needs to be converted to a NanoId",
+ "name": "uuid",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "enum": [
+ "CONNECTED_ACCOUNT",
+ "AUTH_CONFIG",
+ "TRIGGER_INSTANCE"
+ ],
+ "example": "CONNECTED_ACCOUNT"
+ },
+ "required": true,
+ "description": "The type of resource that the UUID belongs to",
+ "name": "type",
+ "in": "query"
+ },
+ {
+ "schema": {
+ "type": "string",
+ "description": "Your Composio API key used for authentication",
+ "example": "sk_123456789abcdef"
+ },
+ "required": true,
+ "name": "x-api-key",
+ "in": "header"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successfully retrieved NanoId for the given UUID",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "nanoid": {
+ "type": "string",
+ "minLength": 10,
+ "maxLength": 10,
+ "description": "The NanoId corresponding to the provided UUID. This is the new identifier that should be used in place of the legacy UUID.",
+ "example": "XqXrPalt3v"
+ }
+ },
+ "required": [
+ "nanoid"
+ ]
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad Request - Invalid UUID or resource not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "Unauthorized - Invalid or missing API key",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not Found - The UUID does not correspond to any resource of the specified type",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "410": {
+ "description": "Gone - The UUID does not correspond to any resource of the specified type",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Error"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "Internal server error - An unexpected error occurred during processing",
"content": {
"application/json": {
"schema": {