# Authentication

> Authenticate Logging API requests using Service Account credentials and learn to configure access controls.

The Logging API only accepts authenticated requests. The service can only be authenticated using [Service Account Authentication](https://services.docs.unity.com/docs/service-account-auth/).

## 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](https://services.docs.unity.com/docs/service-account-auth/).

To access the [Logging API](https://services.docs.unity.com/observability/v1/), use [Basic authentication](https://services.docs.unity.com/docs/service-account-auth/#using-service-account-credentials).

1. In the [Unity Dashboard](https://cloud.unity.com), 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](https://cloud.unity.com), 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](https://services.docs.unity.com/docs/service-account-auth/) for more information.
