# Return koality authentication token

This function returns the long-lived application token used to authenticate with koality's authentication servers.

Endpoint: GET /SiteQuality/get_app_token
Version: 11.136.0.14
Security: BasicAuth

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "get_app_token"

  - `module` (string)
    The name of the module called.
    Example: "SiteQuality"

  - `result` (object)

  - `result.data` (object)
    An object that contains user authentication attributes.

  - `result.data.app_token` (string)
    The long-lived token for this account. The koality servers require this token to authenticate. If this token is lost, the user must create a new account.
    Example: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages that the API generated.

  - `result.metadata` (object)

  - `result.status` (integer)
    * 1 — Success.
* 0 — Failed. Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings that the API generated. Warnings describe non-critical failures or issues the system noted while running an API function.


