icon-zia.svg
Secure Internet and SaaS Access (ZIA)

Managing Cloud Service API Key

After your API subscription is enabled, your organization's cloud service API key is initially provisioned by Zscaler, enabled, and displayed within the Cloud Service API Key page along with the base URL. An organization can only have one API key for the cloud service API. To learn more, see Getting Started.

From this page, you can:

  • Your organization can only have one API key. You must delete the existing key before adding a new one.

    To add a new cloud service API key:

    1. Go to Administration > Cloud Service API Security > Cloud Service API Key.
    2. On the Cloud Service API Key tab, make sure that you have deleted the existing key. After the key is removed, the Add Cloud Service API Key option becomes available.
    3. Click Add Cloud Service API Key.
    4. You can immediately start using the new API key displayed on the tab.
    Close
  • This action cannot be undone.

    To edit the cloud service API key:

    1. Go to Administration > Cloud Service API Security > Cloud Service API Key.
    2. On the Cloud Service API Key tab, click the Edit icon.

      The Edit Cloud Service API Key window appears.

    3. In the Edit Cloud Service API Key window, enter the New API Key. The new key must meet the following requirements:

      • The new key must be alphanumeric (i.e., A-Z, a-z, 0-9) and exactly 12 characters in length.
      • The new key cannot be the same as the current API Key.

    4. Click Confirm.

      After confirmation, the old API key is immediately invalidated.

    Close
  • This action cannot be undone.

    To regenerate the cloud service API key:

    1. Go to Administration > Cloud Service API Security > Cloud Service API Key.
    2. On the Cloud Service API Key tab, click the Regenerate icon.
    3. In the confirmation window that appears, click Ok.

      After confirmation, a randomized key string is immediately generated and the old string is invalidated.

    Close
  • This action cannot be undone.

    To delete the cloud service API key:

    1. Go to Administration > Cloud Service API Security > Cloud Service API Key.
    2. On the Cloud Service API Key tab, click the Delete icon.
    3. In the confirmation window that appears, click Ok.

      After confirmation, the key is immediately removed and invalidated.

    Close

Your cloud service API key can be disabled by Zscaler or your service provider. The key might be disabled if your organization exceeds the threshold number of API calls allowed or the code developed for your organization violates Zscaler's terms and conditions. If this occurs, the ability to add, regenerate, or delete the key is removed and a Disabled status appears. You must contact Zscaler Support or your service provider to re-enable the key.

If your API subscription expires you still have access to the Cloud Service API Key page, but you cannot make any modifications (i.e., you lose access to the POST and PUT actions within the API). Also, your existing API key is still valid but disabled. If this occurs, contact Zscaler Support. The API key is re-enabled after your subscription is renewed.

Related Articles
About Cloud Service API KeyManaging Cloud Service API KeyAbout Sandbox API TokenManaging Sandbox API Token Securing ZIA APIs with OAuth 2.0About OAuth 2.0 Authorization ServersManaging OAuth 2.0 Authorization ServersOAuth 2.0 Configuration Guide for OktaOAuth 2.0 Configuration Guide for Microsoft Entra ID