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

# Import a connection

> Adds a connection for which you already have credentials.

## When to use

Use this API endpoint to import existing access tokens into Nango. It is mostly meant for one-off import scripts.

To trigger OAuth flows with Nango, use the [Nango frontend SDK](/reference/sdks/frontend).

## Request body

You can use this endpoint to import OAuth 2, OAuth 1, API Keys, and Basic auth credentials.

The required fields depend on the type of authentication of the *connections* you are trying to import.
