Documentation

Authentication

Authenticate Logging API requests using Service Account credentials and learn to configure access controls.
Read time 1 minuteLast updated 2 days ago

The Logging API only accepts authenticated requests. The service can only be authenticated using Service Account Authentication.

Authenticate players

The Logging API currently does not support player authentication.

Authenticate trusted clients (Basic authentication)

You can use the Logging API with Service Account Authentication. To access the Logging API, use Basic authentication.
  1. In the Unity Dashboard, open the Account menu and select Manage organization.
  2. In the Administration menu, select Service accounts.
To create a service account, follow these steps:
  1. In the Unity Dashboard, select your username.
  2. Select Manage organization.
  3. In the Administration menu, select Service accounts.
  4. Select New
  5. Enter a name and description for the service account.
  6. Select Create.
Add Product roles and create a key:
  1. Select Manage product roles.
  2. In the Project roles section, select Manage project roles.
  3. Select your project.
  4. In the LiveOps dropdown, select Observability Viewer.
  5. Select Save.
  6. Select Add Key.
  7. Encode the Key ID and Secret key using base64 encoding. The format is
    <KEY_ID>:<SECRET_KEY>
  8. Use the encoded value as the value for the
    Authorization
    header in your request.
Check Service Account Authentication for more information.