Skip to main content

Overview

CX API keys are created in the CX dashboard. Each key belongs to one user, so requests made with it act as that user.

Create a key

  1. Sign in to CX as a team admin.
  2. Go to Settings → Advanced.
  3. In the API Keys section, select Add Key.
  4. Enter an API Key Name that identifies where the key will be used.
  5. Select the User the key is for.
  6. Copy the Secret Key.
  7. Select I acknowledge that I have copied the secret key and understand that it will not be displayed again, then select Save.
The secret is shown once, when you create the key. If you lose it, create a new key.

Use the key

Send the secret in the x-api-key header. The API is served from https://api.cx.stax.ai.

Store the key

  • Keep the secret in a secrets manager or a server-side environment variable.
  • Keep it out of frontend apps, mobile apps, source control, and client-side logs.
  • Use a separate key for each environment or integration.

Remove a key

To revoke a key, open Settings → Advanced, find it in the API Keys list, and choose Remove Key.

Next steps

Endpoints and schemas are in the API Reference tab.