メインコンテンツへスキップ
GET
/
connected-accounts
/
accounts
TypeScript
import { MyAccountClient } from "github.com/auth0/myaccount-js";

async function main() {
    const client = new MyAccountClient({
        token: "<token>",
    });
    await client.connectedAccounts.list({
        connection: "connection",
        from: "from",
        take: 1,
    });
}
main();
{
  "accounts": [
    {
      "id": "<string>",
      "connection": "<string>",
      "access_type": "offline",
      "scopes": [
        "<string>"
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "expires_at": "2023-11-07T05:31:56Z"
    }
  ],
  "next": "<string>"
}

Release Lifecycle

Planned

Scopes

Scopes define permissions and access levels for API requests and authentication tokens.
read:me:connected_accounts

承認

Authorization
string
header
必須

Bearer and DPoP tokens are supported depending on the API configuration

クエリパラメータ

connection

Filter connected accounts by connection names

Maximum string length: 128
from
string

Cursor for pagination - start retrieving results from this point

take
integer
デフォルト:10

Number of results to return (1-20)

必須範囲: x >= 1

レスポンス

Successfully retrieved connected accounts

accounts
object[]
必須
Maximum array length: 20
next
string

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