capabilities.work

Tool Router Connect a Toolkit

A 3-step recipe with Composio. We can help you get access.

Recipe · 3 steps

Tool Router Connect a Toolkit

Create a session and generate an auth link for an unconnected toolkit.

  1. Create a tool router session for the user with the target toolkit enabled.
  2. List the session toolkits filtered to the target toolkit, including each toolkit's connection status, to decide whether a link is required.
  3. Create a link session for the toolkit so the user can authorize it from within the tool router session.
What you'll need to have ready
  • apiKey: Composio project API key sent in the x-api-key header.
  • userId: The end-user identifier the session and connection belong to.
  • toolkitSlug: The toolkit slug to connect within the session (e.g. "notion").
  • callbackUrl: Optional URL the user returns to after authorizing the toolkit.
For your developer

Arazzo workflow composio:tool-router-connect-toolkit, 3 operations: postToolRouterSession → getToolRouterSessionBySessionIdToolkits → postToolRouterSessionBySessionIdLink. Specs on APIs.io.