- Generate a secure, short-lived token scoped to the end user, or
- Use the Connect Link feature to generate a URL that guides the user through the account connection flow without any frontend work on your side.
Connect tokens currently have a 4-hour expiry, and can only be used once.
Creating a token
See docs on the/tokens
endpoint to create new tokens.
Webhooks
When you generate a token, you can specify awebhook_uri
where Pipedream will deliver updates on the account connection flow. This is useful if you want to update your UI based on the status of the account connection flow, get a log of errors, and more.
See the webhooks docs for more information.
Tokens are scoped to end users and environments
When you create a new Connect token, you pass anexternal_user_id
and an environment
. See the docs on environments for more information on passing environment in the SDK and API.
Tokens are scoped to this user and environment. When the user successfully connects an account with that token, it will be saved for that external_user_id
in the specified environment.