Authorization header on each request. Keys are long-lived but can be rotated or revoked at any time.
Generate an API key
Open Account Settings
In the RCB Automation dashboard, click your avatar in the top-right corner and select Account Settings.
Create a new key
Click New API Key, give it a descriptive label (for example, “Production server” or “CI pipeline”), and select the permission scope. Click Generate.
Pass the API key
Include the key in theAuthorization header as a Bearer token on every request:
200 OK status with the requested data:
API key scopes
When generating a key, choose a scope that matches the access level your integration requires:| Scope | Permissions |
|---|---|
read-only | GET requests only — list and retrieve resources |
read-write | Full access — create, update, delete, and retrieve all resources |
Authentication errors
If your key is missing, malformed, or revoked, the API responds with401 Unauthorized:
403 Forbidden:
401 Unauthorized:
- The
Authorizationheader is missing entirely - The header value does not use the
Bearerprefix (note the trailing space) - The API key has been revoked from the dashboard
- The key was generated for a different RCB Automation account
Best practices
Follow these practices to keep your keys secure:- Use environment variables. Store keys in environment variables or a secrets manager (such as AWS Secrets Manager or HashiCorp Vault) rather than hardcoding them in source files.
- Rotate keys regularly. Generate a new key and revoke the old one on a schedule (for example, every 90 days) or immediately after any suspected exposure.
- Use one key per service. Assign a dedicated key to each application or environment (production, staging, CI). This makes it easy to revoke access for a single service without affecting others.
- Use the minimum required scope. Grant
read-onlyaccess unless the integration explicitly needs to create or modify data. - Audit active keys. Review your API Keys list in Account Settings periodically and revoke any keys that are no longer in use.