Creating an API Key
1
Open Settings
Navigate to Settings in the Coval dashboard sidebar, then select the API Keys tab.
2
Click Create Key
Click the Create Key button in the top right corner.
3
Configure your key
Fill in the following fields:
4
Save your key
Click Create Key. Your API key will be displayed once.
Using Your API Key
Include the key in theX-API-Key header with every request:
Permissions
By default, keys are created with Full Access to all resources. You can restrict a key to specific scopes using the permissions picker. Available permission scopes:Managing Key Status
Each key has a lifecycle status that controls whether it can authenticate requests.Suspending a Key
To temporarily disable a key, click the actions menu (three dots) on the key row and select Suspend. Suspended keys can be reactivated at any time.Revoking a Key
To permanently disable a key, select Revoke from the actions menu. You must provide a reason. Revoked keys cannot be reactivated.Deleting a Key
To remove a key entirely, select Delete from the actions menu. This permanently removes the key record from your organization.Filtering Keys
Use the status tabs above the table to filter keys by their current status:- All — Show all keys
- Active — Only active keys
- Suspended — Only suspended keys
- Revoked — Only revoked keys
Best Practices
Use scoped permissions
Avoid full access keys in production. Scope each key to only the permissions it needs.
Rotate keys regularly
Create new keys and revoke old ones periodically, especially for production systems.
Use descriptive names
Name keys after their purpose (e.g., “GitHub Actions CI”, “Staging Environment”) so you can identify them later.
Revoke unused keys
Promptly revoke keys that are no longer in use to minimize your attack surface.
Next Steps
API Reference
Explore the full API documentation
CLI Installation
Install the Coval CLI and authenticate with your key
CLI API Keys Commands
Manage API keys programmatically from the command line
GitHub Actions
Use API keys in your CI/CD pipeline