Passer au contenu principal
GET
/
users
/
{id}
/
connected-accounts
Get a User's Connected Accounts
curl --request GET \
  --url https://{tenantDomain}/api/v2/users/{id}/connected-accounts \
  --header 'Authorization: Bearer <token>'
{
  "connected_accounts": [
    {
      "id": "<string>",
      "connection": "<string>",
      "connection_id": "<string>",
      "strategy": "<string>",
      "access_type": "offline",
      "created_at": "2023-11-07T05:31:56Z",
      "scopes": [
        "<string>"
      ],
      "expires_at": "2023-11-07T05:31:56Z"
    }
  ],
  "next": "<string>"
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis

ID of the user to list connected accounts for.

Paramètres de requête

from
string

Optional Id from which to start selection.

take
integer

Number of results to return. Defaults to 10 with a maximum of 20

Plage requise: 1 <= x <= 100

Réponse

Connected accounts successfully retrieved.

connected_accounts
object[]
requis
next
string

The token to retrieve the next page of connected accounts (if there is one)