List connected accounts
Lists the connected accounts in the environment, filtered by connection, identifier, provider or organization, with each account's status. The list doesn't include credentials; use Get a connected account's credentials for one account. Use next_page_token to get the next page.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Query parameters
connection_namesarray of stringconnector field.connectorstringidentifierstringis_org_wide_credentialbooleantrue to return only the shared credential of an org-wide connection, or false to return only users' own accounts. Omit it to return both.organization_idstringpage_sizeintegerpage_tokenstringproviderstringGMAIL or SLACK. Exact match, in capitals as the account's provider shows it.querystringuser_idstringscalekit_client.actions.list_connected_accounts
List connected accounts with optional filtering.
scalekit_client.actions.list_connected_accounts( connection_name: Optional[str] = None, identifier: Optional[str] = None, provider: Optional[str] = None, connection_names: Optional[List[str]] = None,) -> ListConnectedAccountsResponseParameters
connection_nameOptional[str]identifierOptional[str]providerOptional[str]GMAIL or SLACK. Exact match, in capitals as the account's provider shows it.connection_namesOptional[List[str]]["gmail", "github-connect"]. Combine with identifier for one user.Returns ListConnectedAccountsResponse: The matching connected accounts.
From scalekit-sdk-python 2.19.1.
scalekit.actions.listConnectedAccounts
List connected accounts with optional filters.
scalekit.actions.listConnectedAccounts( params?: { connectionName?: string; identifier?: string; provider?: string; organizationId?: string; userId?: string; pageSize?: number; pageToken?: string; query?: string; connectionNames?: string[]; },): Promise<ListConnectedAccountsResponse>Parameters
connectionNamestringidentifierstringproviderstringGMAIL or SLACK. Exact match, in capitals as the account's provider shows it.organizationIdstringuserIdstringpageSizenumberpageTokenstringquerystringconnectionNamesstring[]connector field.Returns Promise<ListConnectedAccountsResponse>.
From @scalekit-sdk/node 2.18.0.
Response 200
connected_accountsarray of objectShow 11 child attributes
authorization_typestring (enum)OAUTHAPI_KEYBASIC_AUTHBEARER_TOKENCUSTOMBASICOAUTH_M2MTRELLO_OAUTH1GOOGLE_DWDTRUSTED_IDPSMART_FHIRNO_AUTHconnection_idstringconnectorstringidstringidentifierstringis_org_wide_credentialbooleanfalse for a user's own account.last_used_atstringproviderstringGMAIL or SLACK.statusstring (enum)ACTIVEEXPIREDPENDING_AUTHPENDING_VERIFICATIONDISCONNECTEDtoken_expires_atstringupdated_atstringnext_page_tokenstringprev_page_tokenstringtotal_sizeintegerErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - occurs when query parameters are malformed or validation fails401Authentication required - missing or invalid access token