List connected accounts
Retrieves 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.
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 per page. Must be between 0 and 100. Default is typically 10.
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.
Response
Successfully retrieved the list of connected accounts with their authentication details and status
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": "google",
"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
}