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
- Sign in to CX as a team admin.
- Go to Settings → Advanced.
- In the API Keys section, select Add Key.
- Enter an API Key Name that identifies where the key will be used.
- Select the User the key is for.
- Copy the Secret Key.
- Select I acknowledge that I have copied the secret key and understand that it will not be displayed again, then select Save.
Use the key
Send the secret in thex-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.