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

# Share a connect link

> Generate a short-lived connect link and share it with your end user.

Use a connect link when you want to trigger authorization without opening Connect UI immediately in your app (for example: email-based onboarding, support-assisted setup, or cross-device flows).

## Option 1: Generate a link from your backend

Create a connect session and return the `connect_link` to your frontend or internal tools:

> [tab] Node
>
> ```ts theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: process.env['<NANGO-API-KEY>'] });
>
> api.post('/connectLink', async (req, res) => {
>   const { data } = await nango.createConnectSession({
>     tags: {
>       end_user_id: '<END-USER-ID>',
>       end_user_email: '<END-USER-EMAIL>',
>       organization_id: '<ORGANIZATION-ID>'
>     },
>     allowed_integrations: ['<INTEGRATION-ID>']
>   });
>
>   res.status(200).send({
>     connectLink: data.connect_link,
>     expiresAt: data.expires_at
>   });
> });
> ```

> [tab] cURL
>
> ```bash theme={null}
> curl --request POST \
>   --url https://api.nango.dev/connect/sessions \
>   --header 'Authorization: Bearer <NANGO-API-KEY>' \
>   --header 'Content-Type: application/json' \
>   --data '{
>     "tags": {
>       "end_user_id": "<END-USER-ID>",
>       "end_user_email": "<END-USER-EMAIL>",
>       "organization_id": "<ORGANIZATION-ID>"
>     },
>     "allowed_integrations": [
>       "<INTEGRATION-ID>"
>     ]
>   }'
> ```

The returned `connect_link` expires after 30 minutes.

## Option 2: Generate a link from the dashboard

In the Nango dashboard, open the Connections page and use the **Share connect link** button. This generates a link that you can share directly with the end user.

## Notes

* For the API details, see [Create a connect session](https://nango.dev/docs/reference/backend/http-api/connect/sessions/create.md).

## Related guides

* [Auth guide](https://nango.dev/docs/guides/auth/auth-guide.md) - embed the standard Connect UI flow.
* [Connection tags, configuration, and metadata](https://nango.dev/docs/guides/auth/connection-tags-configuration-metadata.md) - reconcile completed links with users and orgs.
* [Create a connect session API](https://nango.dev/docs/reference/backend/http-api/connect/sessions/create.md) - API details for generated links.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.