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

# Zscaler ZDX (Legacy API Key)

> Connect Zscaler Digital Experience to Serval with a legacy ZDX API key. Tenants on ZIdentity should connect ZDX through the Zscaler OneAPI integration instead.

## About Zscaler ZDX (Legacy API Key)

Zscaler Digital Experience (ZDX) monitors end-user experience from the device outward: application scores, device health, network paths, and alerts.

> [!WARNING]
>
> This integration authenticates with a **legacy ZDX API key** (Key ID and Key Secret from the ZDX
> Admin Portal). Zscaler now serves ZDX through OneAPI, and tenants that never created a legacy key
> cannot create one today. If your Zscaler tenant uses ZIdentity API clients, connect ZDX through the
> [Zscaler](https://docs.serval.com/sections/integrations/zscaler.md) integration instead: grant the API client the ZDX
> resource and the ZDX workflows run on that connection. Existing connections made with this
> integration keep working and need no migration.

A legacy ZDX API key cannot call ZIA, ZPA, or Client Connector endpoints, and a ZIdentity API client cannot authenticate to this integration. Use the Zscaler integration for both when your tenant is on ZIdentity.

**Authentication:** ZDX API key. Serval stores your Key ID and Key Secret, then exchanges them for short-lived tokens during workflow runs. The Key Secret itself is never sent to Zscaler — only a hash derived from it.

**Data sync:** on demand only. Serval does not run a background sync for ZDX; workflows call the ZDX API live.

## What the Zscaler ZDX (Legacy API Key) integration enables

| Capability | Description |
| - | - |
| Look up users and devices | Find a user's active devices by name or email, with hardware, network, and software details. |
| Read application scores | List monitored applications with ZDX scores, score trends, and metric trends such as Page Fetch Time or latency. |
| Inspect device health | Read a device's CPU, memory, disk, network, and Wi-Fi health metrics, plus configuration change events. |
| Review probes | List web and Cloud Path probes per device and application, including hop-by-hop path data. |
| Triage alerts | List ongoing and historical alerts and the devices each alert affects. |
| Run deep traces | Start, poll, and stop deep trace sessions on a device, and read captured top processes. |
| Analyze scores | Start and read ZDX score analyses for an application on a device. |
| Audit software inventory | List software across the tenant and the users and devices that have a specific package installed. |

## Get your credentials

You need a legacy ZDX API key that already exists on your tenant, or a tenant where the API Keys page still offers key creation. ZDX API access requires a ZDX Advanced or Advanced Plus subscription.

**1. Open API Keys in the ZDX Admin Portal**

In the ZDX Admin Portal, go to Administration and open API Keys.

**2. Create an API key for Serval**

Create a new API key. Copy the Key ID and the Key Secret — store the Key Secret before leaving
the screen.

**3. Record your ZDX cloud**

Record the cloud name from your ZDX tenant URL: `zdxcloud`, `zdxbeta`, or for government
tenants `zdxgov` (FedRAMP Moderate) or `zdxten` (FedRAMP High). Most tenants are on
`zdxcloud`.

## Connect in Serval

**1. Open the Zscaler ZDX (Legacy API Key) connect form**

In Serval, open the Zscaler ZDX (Legacy API Key) integration and start a new connection.

**2. Enter the instance name**

Use a name like `Production` or `Corporate`.

**3. Enter the API key**

Paste the ZDX Key ID and Key Secret.

**4. Enter the cloud**

Leave this blank for `zdxcloud`. Enter `zdxbeta`, `zdxgov`, or `zdxten` only when your tenant
is on that cloud.

## Verifying the connection

The Zscaler ZDX (Legacy API Key) integration ships health checks that validate authentication and list applications, devices, and ongoing alerts. If a check fails, verify the Key ID, Key Secret, and cloud name, and confirm your subscription includes ZDX API access.

## Time ranges and pagination

Most ZDX read endpoints default to the last 2 hours when no `from`/`to` range is given; timestamps are Unix epoch seconds. Historical alerts are limited to a 14-day range. List endpoints return a `next_offset` cursor — pass it back as `offset` until it is null.

> [!NOTE]
>
> Deep traces and score analyses create activity on the target device and count against ZDX
> processing quotas, so workflows that start them should stop or delete sessions they no longer
> need.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.