Get a connection
Returns a connection with its settings, looked up by its name or its ID. Use it to check the scopes the connection requests, or to copy its redirect_uri into the app you registered with the provider. Secrets come back masked.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
connection_identifierstringrequiredgmail-work, or its ID, such as conn_70219645518265104. Both are in the List connections response.scalekit_client.actions.get_connection
Gets a connection by name or ID. Pass the connection's name, or its ID with connection_id.
scalekit_client.actions.get_connection( connection_name: Optional[str] = None, connection_id: Optional[str] = None,) -> AgentKitConnectionParameters
connection_nameOptional[str]gmail-work.connection_idOptional[str]conn_70219645518265104, instead of its name. Both are in the List connections response.Returns AgentKitConnection.
From scalekit-sdk-python 2.22.0.
scalekit.actions.getConnection
Gets a connection by name or ID. Pass the connection's name or ID.
scalekit.actions.getConnection( connection: string | ConnectionRef,): Promise<AgentKitConnection>Parameters
connectionstring | ConnectionRefrequiredgmail-work, or its ID, such as conn_70219645518265104, as a string, or { connectionName } or { connectionId }. Both are in the List connections response.Returns Promise<AgentKitConnection>.
From @scalekit-sdk/node 2.21.0.
Response 200
connectionobjectShow 11 child attributes
auth_modestring (enum)USER: each user authorizes their own account. ORG_WIDE: one admin-authorized account is shared.USERORG_WIDEconnection_mcp_urlstringconnection_namestringgmail-work. Your code passes this name as connection_name when it creates connected accounts and runs tools.create_timestringgoogle_dwd_configobjectGOOGLE_DWD connections.Show 5 child attributes
required_scopesarray of stringscopes that users can't deselect when scope_selection_allowed is true. Each must also be in scopes.scope_selection_allowedbooleantrue to let users choose which of the scopes to grant when they connect.scopesarray of stringhttps://www.googleapis.com/auth/gmail.readonly. A list you send replaces the current one. Authorize the same scopes for the service account's client ID in the Google Workspace Admin console, under Security > Access and data control > API controls > Manage domain wide delegation.service_account_jsonstringtoken_uristringhttps://oauth2.googleapis.com/token.idstringoauth_configobjectShow 18 child attributes
access_typestringaccess_type value sent to the provider, such as offline.authorize_uristringclient_idstring123456789012-abc123def456.apps.googleusercontent.com for a Google app. Get it from the provider's developer console when you create the app (for Gmail: Google Cloud console, APIs & Services > Credentials, an OAuth client ID of type web application), and add this connection's redirect_uri to the app as an authorized redirect URI. Each connector's page under Connectors has the steps for that provider.client_secretstring********abcd. Leave it out to keep the stored secret.extra_authorize_paramsobject{"hd": "example.com"}, which asks Google to suggest accounts from that domain. Check the provider's OAuth documentation for the parameters it accepts. Send {} to clear them.optional_scopesobjectuser_scope. Set field_name to that parameter's name and scopes to its values.pkce_enabledbooleanpromptstringprompt value sent to the provider, which controls whether the user signs in or consents again, such as consent. Send an empty string to send no prompt.redirect_uristringrequired_optional_scopesarray of stringoptional_scopes.scopes that users can't deselect when scope_selection_allowed is true. Each must also be in optional_scopes.scopes.required_scopesarray of stringscopes that users can't deselect when scope_selection_allowed is true, such as the read scope your tools always need. Each must also be in scopes, or the request fails with 400.scope_selection_allowedbooleantrue to let users choose which of the scopes to grant when they connect. Scopes in required_scopes stay selected.scopesarray of stringhttps://www.googleapis.com/auth/gmail.readonly for Gmail. A list you send replaces the whole current list, so include the scopes you want to keep. To build it, start from the current scopes in Get a connection, then pick from the scopes the connector offers: call List connectors with identifier set to the connector, such as GMAIL, and read auth_patterns[].oauth_config.available_scopes[].scope. You can also add a scope that isn't listed there, using the exact scope string from the provider's own documentation, such as Google's Gmail API scopes.token_access_typestringtoken_access_type value sent to the provider, for providers that use it, such as Dropbox with offline.token_endpoint_auth_methodstring (enum)DEFAULT lets Scalekit choose.NONEBASIC_AUTHREQUEST_BODYDEFAULTtoken_uristringuse_scalekit_credsbooleantrue to use Scalekit's own OAuth app instead of yours, for connectors that offer one; otherwise the request fails with 400. Sending your own client_id or client_secret sets it to false unless you also send it.user_info_uristringproviderstringGMAIL.provider_configurationsobjectShow 7 child attributes
googleads_developer_tokenstringmicrosoft_tenant_idstringprovider_domainstringmcp-eu.mixpanel.com for Mixpanel's EU region, for connectors that need one. Set it when you create the connection; it can't be changed later and isn't returned.slack_connection_typestring (enum)BOT to act as your Slack app's bot user, or USER to act as the user who connects.BOTUSERsmart_fhir_audstringaud parameter when users sign in.smart_fhir_domainstringtrello_app_namestringtypestring (enum)OAUTH. It comes from the connector and decides which settings object applies (oauth_config or google_dwd_config).OIDCSAMLPASSWORDOAUTHPASSWORDLESSBASICBEARERAPI_KEYWEBAUTHNOAUTH_M2MTRELLO_OAUTH1GOOGLE_DWDTRUSTED_IDPSMART_FHIRNO_AUTHupdate_timestringErrors
Every error has the same body: code, message and details. See Errors and rate limits.
401Authentication required - missing or invalid access token404Not found - no connection with this name or ID. Error code RESOURCE_NOT_FOUND.