Authentication
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.
- Navigate to the Unity Dashboard.
- Select Administration > Service Accounts.
- Select the New button and enter a name and description for the Service Account.
- Select Create.
Add Product roles and create a key:
- Select Manage product roles.
- From the LiveOps dropdown, select Observability Viewer.
- Select Save.
- Select Add Key.
- Encode the Key ID and Secret key using base64 encoding. The format is
<KEY_ID>:<SECRET_KEY>
- Use the encoded value as the value for the
Authorization
header in your request.
Check Service Account Authentication for more information.