Skip to main content
GET
/
connections
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.connections.list({
        from: "from",
        take: 1,
        name: "name",
        fields: "fields",
        includeFields: true,
    });
}
main();
[
  {
    "name": "My connection",
    "display_name": "<string>",
    "options": {},
    "id": "con_0000000000000001",
    "strategy": "auth0",
    "realms": [
      "<string>"
    ],
    "is_domain_connection": true,
    "show_as_button": true,
    "metadata": {},
    "authentication": {
      "active": true
    },
    "connected_accounts": {
      "active": true,
      "cross_app_access": true
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

per_page
integer

The amount of entries per page. Defaults to 100 if not provided

Required range: 1 <= x <= 100
page
integer

The page number. Zero based

Required range: x >= 0
include_totals
boolean

true if a query summary must be included in the result, false otherwise. Not returned when using checkpoint pagination. Default false.

from
string

Optional Id from which to start selection.

take
integer

Number of results per page. Defaults to 50.

Required range: 1 <= x <= 100
strategy
enum<string>[]

Provide strategies to only retrieve connections with such strategies

Available options:
ad,
adfs,
amazon,
apple,
dropbox,
bitbucket,
aol,
auth0-oidc,
auth0,
baidu,
bitly,
box,
custom,
daccount,
dwolla,
email,
evernote-sandbox,
evernote,
exact,
facebook,
fitbit,
flickr,
github,
google-apps,
google-oauth2,
instagram,
ip,
line,
linkedin,
miicard,
oauth1,
oauth2,
office365,
oidc,
okta,
paypal,
paypal-sandbox,
pingfederate,
planningcenter,
renren,
salesforce-community,
salesforce-sandbox,
salesforce,
samlp,
sharepoint,
shopify,
shop,
sms,
soundcloud,
thecity-sandbox,
thecity,
thirtysevensignals,
twitter,
untappd,
vkontakte,
waad,
weibo,
windowslive,
wordpress,
yahoo,
yammer,
yandex,
auth0-adldap
name
string

Provide the name of the connection to retrieve

fields
string

A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields

Pattern: ^((name)|(display_name)|(strategy)|(options)|(id)|(provisioning_ticket_url)|(metadata)|(show_as_button)|(clients)|(authentication)|(connected_accounts)|(cross_app_access_requesting_app)|(cross_app_access_resource_app)|(enabled_clients))(,((name)|(display_name)|(strategy)|(options)|(id)|(provisioning_ticket_url)|(metadata)|(show_as_button)|(clients)|(authentication)|(connected_accounts)|(cross_app_access_requesting_app)|(cross_app_access_resource_app)|(enabled_clients)))*$
include_fields
boolean

true if the fields specified are to be included in the result, false otherwise (defaults to true)

Response

The connections were retrieved.

name
string
default:My connection

The name of the connection

display_name
string

Connection name used in login screen

options
object

In order to return options in the response, the read:connections_options scope must be present

id
string
default:con_0000000000000001

The connection's identifier

strategy
string
default:auth0

The type of the connection, related to the identity provider

realms
string<connection-realm>[]

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

The realm where this connection belongs

is_domain_connection
boolean

True if the connection is domain level

show_as_button
boolean

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD.

metadata
object

Metadata associated with the connection in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed.

authentication
object

Configure the purpose of a connection to be used for authentication during login.

connected_accounts
object

Configure the purpose of a connection to be used for connected accounts and Token Vault.