Documentation

​
​

Development

User Acquisition

Monetization

Industry

Cloud Code

Scripting API

Services C# SDKs

Services JavaScript SDKs

Admin REST API

Client REST API

Scheduler Admin REST API

Observability REST API

Open Unity Dashboard

Cloud Code

LiveOps
​
​
Cloud Code
  • Overview
  • Get started
  • Server authority
  • Cloud Code C# modules
  • Cloud Code JavaScript scripts
  • Logging
    • Overview
    • Concepts
      • Authentication
      • Log schema
      • Filter logs
    • Tutorials
  • Use-case samples
  • Privacy and consent
  1. Cloud Code

Authentication

Authenticate Logging API requests using Service Account credentials and learn to configure access controls.
Read time 1 minute
Last updated 4 months 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.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Authenticate players

    • Authenticate trusted clients (Basic authentication)


Report a problem with this page