Authentication
StateSet ResponseCX provides REST and GraphQL APIs. All requests must be authenticated with an API key.Quick Start
API keys
- Test keys (
sk_test_) for sandbox development - Live keys (
sk_live_) for production
Using your key
Troubleshooting
401 Unauthorized: missing/invalid key or wrong environment.403 Forbidden: key lacks required permissions.
Rotating a key
Issue a separate key per consumer, so revoking one does not break the others:- Create the replacement key in the dashboard.
- Deploy it to the one consumer that used the old key.
- Revoke the old key and watch for
401s — anything that breaks was sharing it.
Failed authentication
Related
- Overview — base URL and conventions
- Agents — the resource most requests target
- Public API