Generate a Hosted Auth Link
A 3-step recipe with Composio. We can help you get access.
Recipe · 3 steps
Generate a Hosted Auth Link
with Composio
Mint a hosted authorization link for a user from an existing auth config.
- List auth configs filtered to the toolkit so an existing configuration can be reused for the hosted link.
- Create a hosted link session against the chosen auth config, returning a redirect URL the user opens to authorize and the connected account id that will be created.
- Poll the connected account created by the link session until the user has finished authorizing and the status becomes ACTIVE.
What you'll need to have ready
- apiKey: Composio project API key sent in the x-api-key header.
- toolkitSlug: The toolkit slug whose auth config should be used (e.g. "slack").
- userId: The end-user identifier the connection belongs to.
- callbackUrl: Optional URL the user is redirected to after authorizing.
For your developer
Arazzo workflow composio:hosted-auth-link, 3 operations: getAuthConfigs → postConnectedAccountsLink → getConnectedAccountsByNanoid. Specs on APIs.io.