> ## Documentation Index
> Fetch the complete documentation index at: https://pipedream.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Link

Connect Link provides a Pipedream-hosted link that lets you connect third-party accounts without any frontend implementation in your app.

## When to use Connect Link

If you aren’t able to execute JavaScript or open an iFrame in your frontend, or you want to send users a URL to connect accounts via email or SMS, use Connect Link. That URL opens a Pipedream-hosted page that guides the user through the account connection flow. The URL is scoped to the specific end user, and expires after 4 hours.

## How to generate a link

See [the Connect quickstart](/connect/managed-auth/quickstart/) for a full tutorial for getting Connect up and running.

Here’s a quick overview of how to generate a Connect Link URL:

1. First, [generate a token](/connect/managed-auth/quickstart/#generate-a-short-lived-token) for your users.
2. Extract the `connect_link_url` from the token response.
3. Before returning the URL to your user, add an `app` parameter to the end of the query string:

```
https://pipedream.com/_static/connect.html?token={token}&connectLink=true&app={appSlug}
```

4. Redirect your users to this URL, or send it to them via email, SMS, and more.

**To test this code, check out this workflow:** [https://pipedream.com/new?h=tch\_4RfjXN](https://pipedream.com/new?h=tch_4RfjXN)

## Success and error redirect URLs

To automatically redirect users somewhere after they complete the connection flow (or if an error occurs), define the `success_redirect_uri` and `error_redirect_uri` parameters during token creation. [See the API docs](/connect/api-reference/create-connect-token) for details.

In the absence of these URLs, Pipedream will redirect the user to a Pipedream-hosted success or error page at the end of the connection flow.
