Get a connected account
Returns a connected account's status, connection and settings, looked up by its ID or by connector and identifier. It never includes the account's credentials. To call the app yourself with them, use Get a connected account's credentials.
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_details
Gets a connected account without its credentials. Identify the account with connection_name and identifier, or with connected_account_id. To get its credentials, use get_connected_account.
scalekit_client.actions.get_connected_account_details( connection_name: Optional[str] = None, identifier: Optional[str] = None, connected_account_id: Optional[str] = None,) -> GetConnectedAccountDetailsResponseParameters
connection_nameOptional[str]identifierOptional[str]connected_account_idOptional[str]connection_name and identifier are ignored.Returns GetConnectedAccountDetailsResponse: The account metadata without auth credentials
From scalekit-sdk-python 2.19.1.
Call this endpoint over REST, as the example shows.
Response 200
connected_accountobjectShow 12 child attributes
api_configobjectauthorization_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