GET
/
connection
/
{connectionId}

The response content depends on the API authentication type (e.g: OAuth 2, OAuth 1, API key, etc.).

If you do not want to deal with collecting & injecting credentials in requests for multiple authentication types, use the Proxy(step-by-step guide).

Every time you fetch the connection with this API endpoint, Nango will check if the access token has expired. If it has, it will refresh it.

We recommend you always fetch the token just before you use it to make sure it is fresh!

Path Parameters

connectionId
string
required

The connection ID used to create the connection.

Query Parameters

provider_config_key
string
required

The integration ID used to create the connection (aka Unique Key).

force_refresh
boolean

If true, Nango will attempt to refresh the access access token regardless of its expiration status (false by default).

refresh_token
boolean

If true, return the refresh token as part of the response (false by default).

Response

200 - application/json
id
integer
required
connection_id
string
required
provider_config_key
string
required
provider
string
required
errors
object[]
required
end_user
object
required
metadata
object
required
connection_config
object
required
created_at
string
required
updated_at
string
required
last_fetched_at
string
required
credentials
object
required