Key types
RevBridge has two kinds of keys. Use the right one for where your code runs.
Secret keys authenticate the server-side Events API described on this page. Publishable keys authenticate the Web SDK in the browser: they carry a single
ingest:write permission and are rejected outside the ingest endpoint, so exposing one only lets a page send events — never read data or send messages.
Generating API keys
1
Open Settings
Navigate to Settings → API Keys in the RevBridge AI dashboard.
2
Create a new key
Click Create API Key, give it a descriptive name (e.g.,
production-backend, staging-etl), and confirm.3
Copy the key
The full API key is shown only once. Copy it immediately and store it in your secrets manager or environment variables.
Required headers
Every API request must include theAuthorization header:
Example requests
cURL
cURL
JavaScript (fetch)
JavaScript (fetch)
Python (requests)
Python (requests)
Security best practices
- Never expose secret keys in frontend code. Secret
rbk_/rbak_keys carry full account access and must only be used from server-side applications, where they can’t be inspected. For browser or mobile code, use a publishablerbpk_key via the Web SDK instead. - Use environment variables. Store keys in your secrets manager or
.envfiles — never hardcode them in source code. - Rotate keys periodically. Create a new key, update your systems, then revoke the old one. RevBridge supports multiple active keys to enable zero-downtime rotation.
- Use separate keys per environment. Create distinct keys for development, staging, and production so you can revoke one without affecting others.
- Restrict access. Only team members who need API access should have visibility into key values.
