capabilities.work

Refresh a Connected Account

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

Recipe · 3 steps

Refresh a Connected Account

Refresh a non-active connected account and wait for it to recover.

  1. Read the connected account to determine whether its authentication is still active or needs refreshing.
  2. Trigger an authentication refresh for the connected account, returning a redirect URL if re-authorization is required.
  3. Poll the connected account until its status returns to ACTIVE after the refresh has been triggered.
What you'll need to have ready
  • apiKey: Composio project API key sent in the x-api-key header.
  • connectedAccountId: The id of the connected account to inspect and refresh.
  • redirectUrl: Optional URL the user returns to if the refresh requires re-authorization.
For your developer

Arazzo workflow composio:refresh-connected-account, 3 operations: getConnectedAccountsByNanoid → postConnectedAccountsByNanoidRefresh → getConnectedAccountsByNanoid. Specs on APIs.io.