Connected accounts
Connected accounts for agent workflows
Manage connected accounts for agent tool access (AgentKit-style connections from the Python SaaSKit surface).
Prefer the AgentKit SDK docs when building agent product flows; use these methods when integrating from the Python SaaS client.
list_connected_accounts
Section titled “list_connected_accounts”#asynclist_connected_accounts
Runs list_connected_accounts and returns the result.
Organization ID.
Scalekit user ID (usr_...).
Connector slug.
End-user identifier.
Identity provider.
Results per page.
Pagination token.
Connector slug filter.
Paginated connected accounts.
response = scalekit_client.connected_accounts.list_connected_accounts( organization_id='org_123456', user_id='usr_123456', page_size=50)
for account in response[0].connected_accounts: print(f'Account: {account.id}')get_connected_account_by_identifier
Section titled “get_connected_account_by_identifier”#asyncget_connected_account_by_identifier
Method to get connected account by identifier
Connector identifier
Identifier for the connector
Optional. Organization ID
Optional. User ID
Optional. ID of the connected account
Get Connected Account By Identifier Response
response = scalekit_client.connected_accounts.get_connected_account_by_identifier( 'slack', 'workspace_id', organization_id='org_123456', user_id='usr_123456')create_connected_account
Section titled “create_connected_account”#asynccreate_connected_account
Method to create a connected account
Connector identifier
Identifier for the connector
Connected account details
Optional. Organization ID
Optional. User ID
Create Connected Account Response
from scalekit.v1.connected_accounts.connected_accounts_pb2 import CreateConnectedAccount
account = CreateConnectedAccount()
response = scalekit_client.connected_accounts.create_connected_account( 'slack', 'workspace_id', account, organization_id='org_123456', user_id='usr_123456')update_connected_account
Section titled “update_connected_account”#asyncupdate_connected_account
Method to update a connected account
Connector identifier
Identifier for the connector
Updated connected account details
Optional. Organization ID
Optional. User ID
Optional. ID of the connected account to update
Update Connected Account Response
from scalekit.v1.connected_accounts.connected_accounts_pb2 import UpdateConnectedAccount
account = UpdateConnectedAccount()
response = scalekit_client.connected_accounts.update_connected_account( 'slack', 'workspace_id', account, organization_id='org_123456', user_id='usr_123456')delete_connected_account
Section titled “delete_connected_account”#asyncdelete_connected_account
Method to delete a connected account
Connector identifier
Identifier for the connector
Optional. Organization ID
Optional. User ID
Optional. ID of the connected account to delete
Delete Connected Account Response
scalekit_client.connected_accounts.delete_connected_account( 'slack', 'workspace_id', organization_id='org_123456', user_id='usr_123456')get_magic_link_for_connected_account
Section titled “get_magic_link_for_connected_account”#asyncget_magic_link_for_connected_account
Runs get_magic_link_for_connected_account and returns the result.
Connector.
Identifier.
Organization ID.
Scalekit user ID (usr_...).
Connected account ID.
Opaque state string.
Post-auth verify URL.
Authorization magic link.
response = scalekit_client.connected_accounts.get_magic_link_for_connected_account( 'slack', 'workspace_id', organization_id='org_123456', user_id='usr_123456')
print(f'Magic Link: {response[0].magic_link}')get_connected_account_details_by_identifier
Section titled “get_connected_account_details_by_identifier”#asyncget_connected_account_details_by_identifier
Method to get connected account details (without auth credentials) by identifier
Connector identifier
Identifier for the connector
Optional. Organization ID
Optional. User ID
Optional. ID of the connected account
The response payload for this operation.
verify_connected_account_user
Section titled “verify_connected_account_user”#asyncverify_connected_account_user
Method to verify a connected account user after OAuth callback
Auth request ID as base64url-encoded opaque token from the
Current logged in user’s connected account identifier
Verify Connected Account User Response