Get a connected account's credentials
Returns a connected account with its credentials, the user's OAuth tokens or the API key or other values they entered, so you can call the app yourself. If the OAuth access token has expired, Scalekit refreshes it first. Scalekit returns credentials only when credential access is turned on for your environment; to turn it on, contact Scalekit support. Until then, the response is the same as Get a connected account, with no authorization_details.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Query parameters
connectorstringidstringidentifierstringorganization_idstringidentifier, such as a Scalekit organization ID. Ignored when identifier is set.user_idstringorganization_id, keys the account to one user in that organization. Ignored when identifier is set.scalekit_client.actions.get_connected_account
Get connected account authorization details by identifier
scalekit_client.actions.get_connected_account( connection_name: Optional[str] = None, identifier: Optional[str] = None, connected_account_id: Optional[str] = None,) -> GetConnectedAccountAuthResponseParameters
connection_nameOptional[str]identifierOptional[str]connected_account_idOptional[str]Returns GetConnectedAccountAuthResponse: The connected account details
From scalekit-sdk-python 2.19.1.
Also called by scalekit_client.actions.get_or_create_connected_account.
scalekit.actions.getConnectedAccount
Get connected account authorization details. Requires either connectedAccountId or both connectionName + identifier.
scalekit.actions.getConnectedAccount( params: { connectionName?: string; identifier?: string; connectedAccountId?: string; organizationId?: string; userId?: string; },): Promise<GetConnectedAccountByIdentifierResponse>Parameters
connectionNamestringidentifierstringconnectedAccountIdstringorganizationIdstringidentifier, such as a Scalekit organization ID. Ignored when identifier is set.userIdstringorganization_id, keys the account to one user in that organization. Ignored when identifier is set.Returns Promise<GetConnectedAccountByIdentifierResponse>.
From @scalekit-sdk/node 2.18.0.
Also called by scalekit.actions.getOrCreateConnectedAccount.
Response 200
connected_accountobjectShow 13 child attributes
api_configobjectauthorization_detailsobjectShow 4 child attributes
google_dwdobjectoauth_tokenobjectstatic_authobjecttrusted_idpobjectdb_user. Responses include access_key_id and expiry, never the secret key or session token.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_atstringErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - missing required query parameters401Authentication required - missing or invalid access token404Connected account not found - no account matches the specified criteria