List connected accounts
Changed onRetrieves a paginated list of connected accounts for third-party integrations. Filter by organization, user, connector type, provider, or identifier. Returns OAuth tokens, API keys, and connection status for each account. Use pagination tokens to navigate through large result sets.
Request
- Base URLhttps://$SCALEKIT_ENVIRONMENT_URL
- AuthOAuth 2Client credentialsToken URLhttps://$SCALEKIT_ENVIRONMENT_URL/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Filter by organization ID. Returns only connected accounts associated with this organization.
Filter by user ID. Returns only connected accounts associated with this user.
Filter by connector type (e.g., 'notion', 'slack', 'google'). Alphanumeric characters, spaces, hyphens, underscores, and colons are allowed.
Filter by account identifier. The unique identifier for the connected account within the third-party service (e.g., email address, workspace ID).
Filter by OAuth provider. The authentication provider name such as 'google', 'microsoft', 'github', etc.
Maximum number of connected accounts to return, up to 99. Defaults to 10 when omitted or 0.
Pagination token from a previous response. Use the next_page_token value from ListConnectedAccountsResponse to fetch the next page.
Text search query to filter connected accounts by name, identifier, or other searchable fields. Case-insensitive.
Filter by one or more connection names (exact match). Returns connected accounts belonging to any of the specified connections. Max 20 names per request. Cannot be combined with the connector field.
Set to true to return only the shared credential of an org-wide connection, or false to return only users' own accounts. Omit it to return both.
Response
The connected accounts that match, with each account's status. Credentials are never included.
Example response
{
"connected_accounts": [
{
"connection_id": "conn_24834495392086178",
"connector": "notion",
"id": "ca_24834495392086178",
"identifier": "user@example.com",
"last_used_at": "2024-03-20T14:30:00Z",
"provider": "GMAIL",
"token_expires_at": "2024-12-31T23:59:59Z",
"updated_at": "2024-03-20T15:04:05Z"
}
],
"next_page_token": "eyJvZmZzZXQiOjIwfQ==",
"prev_page_token": "eyJvZmZzZXQiOjB9",
"total_size": 100
}Changes
- info
added the new optional
queryrequest parameteris_org_wide_credential - info
added the optional property
//to the response with the status
- info
- warning
added the new
NO_AUTHenum value to the//response property for the response status
- warning