curl --request POST \
--url https://api.nango.dev/connect/sessions \
--header 'Content-Type: application/json' \
--data '{
"end_user": {
"id": "<string>",
"email": "<string>",
"display_name": "<string>"
},
"organization": {
"id": "<string>",
"display_name": "<string>"
},
"allowed_integrations": [
"<string>"
],
"integrations_config_defaults": {}
}'
{
"data": {
"token": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
Creates a short-live connect session for a given end user.
The returned token can be used for instance to create connections for this end user.
Uniquely identifies the end user.
Uniquely identifies the organization the end user belongs to
organization.display_name
Filters which integrations the end user can interact with
integrations_config_defaults
integrations_config_defaults.{key}
the unique name of an integration
integrations_config_defaults.{key}.user_scopes
User scopes (for Slack only)
integrations_config_defaults.{key}.authorization_params
Query params passed to the OAuth flow (for OAuth2 only)
integrations_config_defaults.{key}.connection_config
integrations_config_defaults.{key}.connection_config.oauth_scopes_override
Successfully created a connect session
The connect session token