API Keys and Rotation
WispHive enforces API key authentication on exposed API endpoints over HTTPS. These credentials are designed for server-to-server use only.
Generation model
- Management API keys protect provisioning endpoints such as
POST /api/v1/oauth/integrations/*and are sent inX-API-Key. - AAA callback keys protect
POST /cp/rdt/{callback_slug}/{callback_token}and are sent usingX-API-KeyorX-WispHive-Token. - Clients generate or rotate keys from the WispHive dashboard under Settings → Authentication → API Keys.
- Full key secrets are shown only when created or rotated; persist them in your own secret manager.
- Teams that do not want to code against API docs can configure integrations directly from the dashboard UI.
- API key management is dashboard-only; there are no public API endpoints for key generation, rotation, or revocation.
Request signing
For management provisioning endpoints:
- Send
X-API-Key: <management-api-key>on every request.
For AAA handoff callbacks:
- Send the callback key as
X-API-Key(preferred) orX-WispHive-Tokenrequest header. wisphive_tokenin JSON body is supported for compatibility.- Send an
Idempotency-Keyheader on every POST. - Reuse the same
Idempotency-Keyonly when retrying the exact same payload.
Rotation policy
Recommended practice:
- Generate a new key in the dashboard.
- Deploy it to your backend.
- Validate a callback in a staging flow.
- Revoke the previous key.
Security requirements
- Treat
wisphive_tokenas a production secret. - Never embed it in browser JavaScript.
- Never log it.
- Store it only in server-side configuration or a secret manager.