POST
/
connection
curl --request POST \
  --url https://api.nango.dev/connection \
  --header 'Content-Type: application/json' \
  --data '{
  "connection_id": "<string>",
  "provider_config_key": "<string>",
  "access_token": "<string>",
  "refresh_token": "<string>",
  "expires_at": "2023-12-25",
  "expires_in": 123,
  "no_expiration": true,
  "oauth_client_id_override": "<string>",
  "oauth_client_secret_override": "<string>",
  "oauth_token": "<string>",
  "oauth_token_secret": "<string>",
  "metadata": {},
  "connection_config": {},
  "username": "<string>",
  "password": "<string>",
  "api_key": "<string>"
}'
This response does not have an example.

When to use

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

To trigger OAuth flows with Nango, use the Nango frontend SDK.

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.

Body

application/json

Response

200

Successfully created an integrations