Skip to main content

login_with_api_key

login_with_api_key()

  • Parameters

    • access_token -- A valid API key retrieved from Layer UI.
    • url (Union[yarl.URL, str**]) -- Not used.
    • api_key (str) --
  • Raises

    • AuthException -- If the API key is invalid.
    • UserConfigurationError -- If Layer user is not configured correctly.
  • Return type

    None

Log in with an API key.

layer.login_with_api_key(API_KEY)