> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixpanel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Authenticate Query API requests with a service account, project ID, and workspace ID for projects with data views

## Service Account

[Service Account Authentication Details](https://docs.mixpanel.com/reference/service-accounts.md)

> [!TIP]
>
> This is the preferred authentication method for Query API.

* Requests parameters must include a `project_id`.

**Projects with[Data Views](https://help.mixpanel.com/hc/en-us/articles/360043782572-Data-Views)**

* In addition to `project_id`, you should include the global data view's `workspace_id` as a request parameter.

**Projects with[Classified Data](https://help.mixpanel.com/hc/en-us/articles/360044295131-Data-Classification)**

* Your results may be filtered based on the Service Account's sensitivity settings.
