Overview
API keys provide programmatic access to CaseBender. Open Settings → Account → API Keys to manage keys available to your account and current organization. The page provides:- Search and status or tier filters
- Masked key identifiers
- Status, tier, last-used time, and request count
- Usage statistics
- Lifecycle actions such as rotation, suspension, revocation, and deletion
Prerequisites
- Your role must allow write operations and API-key management.
- Available scopes are filtered according to your role.
- Creating, revoking, or deleting a key can require step-up authentication.
- Your organization can impose additional authentication and access policies.
Create an API key
1
Open API Keys
Go to Settings → Account → API Keys.
2
Start creation
Select Create API Key.
3
Describe the key
Enter a clear Name and optional description identifying the workload, owner, and purpose.
4
Select a tier
Choose the tier appropriate for the workload’s expected request volume. Available tiers range from Basic through Unlimited.
5
Set an expiration
Optionally enter the number of days until expiration. Prefer short, policy-aligned lifetimes for production credentials.
6
Select scopes
Choose at least one scope. Use Select all only when the workload legitimately requires every scope available to your role.
7
Create and authenticate
Select Create Key and complete step-up authentication when prompted.
8
Save the credential
Copy the complete key from Save Your API Key into an approved secrets manager before selecting Done.
Choose scopes
Scopes use a resource-and-action pattern, such ascases:read or organizations:*. Scope categories can include cases, alerts, tasks, users, teams, organizations, settings, and API-key management.
Follow least privilege:
- Use read-only scopes for reporting and search workloads.
- Grant write scopes only when the integration performs mutations.
- Avoid wildcard and administrative scopes for single-purpose integrations.
- Create separate keys for unrelated services or environments.
- Review scope requirements whenever an integration changes.
Choose a tier
The tier records the intended service class for a key. The available tiers are:- Basic
- Standard
- Professional
- Enterprise
- Unlimited
Authenticate API requests
Use the complete key with one of the supported single-key headers.Recommended: Bearer token
Alternative: X-Api-Key
Store the key in an environment variable or secret injection mechanism. Do not paste a real key directly into shell history or source code.
Understand key statuses
- Active keys can authenticate requests, subject to scope and policy checks.
- Suspended keys are temporarily disabled and can be reactivated.
- Revoked keys are permanently invalid.
- Expired keys have passed their configured expiration.
View usage statistics
Open a key’s action menu and select View Stats to review:- Total requests
- Successful requests
- Failed requests
- Average response time
- Top endpoints
Rotate a key
Rotation replaces the current secret with a new one.1
Prepare the consumer
Confirm that you can update the consuming service immediately and have a rollback plan.
2
Rotate
Open the key’s action menu and select Rotate Key.
3
Save the new key
Copy the newly displayed credential into your secrets manager.
4
Update and verify
Update the consuming workload, restart or redeploy it as required, and make a scoped test request.
Suspend or reactivate a key
Use Suspend to stop a key temporarily during an investigation or planned maintenance. Use Reactivate only after confirming that the credential and its consumer are trusted. Suspension is preferable to deletion when you need a reversible containment action.Revoke a key
Use Revoke when a credential is compromised, no longer trusted, or permanently retired. Revocation can require step-up authentication and cannot be reversed. After revocation:- Remove the secret from all consumers.
- Review usage statistics and security telemetry.
- Investigate unexpected requests.
- Create a separate replacement key only if the workload remains authorized.
Delete a key
Deletion removes the key record and its direct management visibility. It can require step-up authentication.Security recommendations
- Assign a named human owner and workload owner.
- Use separate keys for production, staging, and development.
- Set an expiration aligned with your credential policy.
- Rotate immediately after suspected exposure.
- Monitor failed requests and unexpected endpoints.
- Revoke unused keys instead of leaving them active.
- Never send keys through email or collaboration tools.
Troubleshooting
Create Key is rejected
Enter a name, select at least one scope, confirm that your role has write access, and complete any step-up authentication challenge.An API request returns 401
Confirm that the complete active key is supplied as a Bearer token orX-Api-Key, and verify that it has not expired, been suspended, or been revoked.
An API request returns 403
The key authenticated successfully but lacks the required scope or data access. Add only the minimum required scope through an authorized key-management workflow.Requests are rate limited
Reduce request frequency, honor retry guidance from the response, or ask an administrator whether the workload requires another tier.The complete key is no longer visible
Plaintext keys cannot be retrieved. Rotate the key or create a replacement and update the consumer.API reference
- List API keys
- Create an API key
- List available scopes
- Get an API key
- Rotate an API key
- View API key statistics
- Delete an API key