curl --request GET \
--url https://api.nango.dev/connection \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nango.dev/connection"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nango.dev/connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nango.dev/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nango.dev/connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nango.dev/connection")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nango.dev/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connections": [
{
"id": 1,
"connection_id": "test-1",
"provider": "slack",
"provider_config_key": "slack-nango-community",
"created": "2023-06-03T14:53:22.051Z",
"metadata": null,
"tags": {
"end_user_id": "your-internal-id",
"end_user_email": "user@example.com",
"organization_id": "user-organization-id"
},
"errors": [{ "type": "auth", "log_id": "VrnbtykXJFckCm3HP93t"}]
},
{
"id": 2,
"connection_id": "test-2",
"provider": "slack",
"provider_config_key": "slack-nango-community",
"created": "2023-06-03T15:00:14.945Z",
"metadata": {
"bot_id": "some-uuid"
},
"tags": {
"end_user_id": "your-internal-id",
"end_user_email": "user@example.com",
"organization_id": "user-organization-id"
},
"errors": []
}
]
}
List connections (deprecated)
Returns a list of connections without credentials. This endpoint is deprecated, use the /connections endpoint instead.
curl --request GET \
--url https://api.nango.dev/connection \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nango.dev/connection"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nango.dev/connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nango.dev/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nango.dev/connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nango.dev/connection")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nango.dev/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connections": [
{
"id": 1,
"connection_id": "test-1",
"provider": "slack",
"provider_config_key": "slack-nango-community",
"created": "2023-06-03T14:53:22.051Z",
"metadata": null,
"tags": {
"end_user_id": "your-internal-id",
"end_user_email": "user@example.com",
"organization_id": "user-organization-id"
},
"errors": [{ "type": "auth", "log_id": "VrnbtykXJFckCm3HP93t"}]
},
{
"id": 2,
"connection_id": "test-2",
"provider": "slack",
"provider_config_key": "slack-nango-community",
"created": "2023-06-03T15:00:14.945Z",
"metadata": {
"bot_id": "some-uuid"
},
"tags": {
"end_user_id": "your-internal-id",
"end_user_email": "user@example.com",
"organization_id": "user-organization-id"
},
"errors": []
}
]
}
environment:connections:list or environment:connections:list_credentials. Learn more about API key scopes.{
"connections": [
{
"id": 1,
"connection_id": "test-1",
"provider": "slack",
"provider_config_key": "slack-nango-community",
"created": "2023-06-03T14:53:22.051Z",
"metadata": null,
"tags": {
"end_user_id": "your-internal-id",
"end_user_email": "user@example.com",
"organization_id": "user-organization-id"
},
"errors": [{ "type": "auth", "log_id": "VrnbtykXJFckCm3HP93t"}]
},
{
"id": 2,
"connection_id": "test-2",
"provider": "slack",
"provider_config_key": "slack-nango-community",
"created": "2023-06-03T15:00:14.945Z",
"metadata": {
"bot_id": "some-uuid"
},
"tags": {
"end_user_id": "your-internal-id",
"end_user_email": "user@example.com",
"organization_id": "user-organization-id"
},
"errors": []
}
]
}
Authorizations
An Environment API key from your Nango environment, or an Account API key for account-level endpoints.
Query Parameters
Will exactly match a given connectionId. Can return multiple connections with the same ID across integrations
Will partially match connection IDs or end user profiles.
Deprecated. Prefer filtering connections by tag (e.g. tags[end_user_id]=...).
Deprecated. Prefer filtering connections by tag (e.g. tags[organization_id]=...).
Filter the list of connections based on connection tags. All provided tags must match. Connection tags (key/value strings). Keys are normalized to lowercase.
Show child attributes
Show child attributes
Limit the number of connections returned
Page number for paginated results
Response
Successfully returned a list of connections
Show child attributes
Show child attributes
Was this page helpful?