# Authentication

> Authenticate Triggers Admin API requests using Service Account credentials.

Both Scheduling and Triggers Admin APIs only accept authenticated requests. Only [Service Account Authentication](https://services.docs.unity.com/docs/service-account-auth/) can authenticate these services.

## Authenticate players

The Scheduler and Trigger APIs currently do not support player authentication.

## Authenticating trusted clients (Basic authentication)

You can use the Scheduler and Trigger APIs with [Service Account Authentication](https://services.docs.unity.com/docs/service-account-auth/).

To access the [Triggers Admin API](https://services.docs.unity.com/triggers-admin/v1/) and the [Scheduler Admin API](https://services.docs.unity.com/scheduler-admin/v1/), use [Basic authentication](https://services.docs.unity.com/docs/service-account-auth/#using-service-account-credentials).
You can use the Service Account credentials directly by base64 encoding the `<KEY_ID>:<SECRET_KEY>`.

Grant the appropriate permissions to Service Account before use.

Refer to the table below for available roles for Triggers.

| Access rights              | Role                                                                                                                      |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| Read triggers              | [Triggers Configuration Viewer](https://services.docs.unity.com/docs/service-account-auth#triggers-configurations-viewer) |
| Read/Write/Delete triggers | [Triggers Configuration Editor](https://services.docs.unity.com/docs/service-account-auth#triggers-configuration-editor)  |

Refer to the table below for available roles for the Scheduler.

| Access rights               | Role                                                                                                                        |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Read schedules              | [Scheduler Configuration Viewer](https://services.docs.unity.com/docs/service-account-auth#scheduler-configurations-viewer) |
| Read/Write/Delete schedules | [Scheduler Configuration Editor](https://services.docs.unity.com/docs/service-account-auth#scheduler-configuration-editor)  |

Check [Service Account Authentication](https://services.docs.unity.com/docs/service-account-auth/) for more information.
