Authorization header. Without a valid key, the API rejects the request with a 401 Unauthorized response. Your API key is tied to your account and carries the permissions associated with your plan, so handle it with care.
Getting your API key
Follow these steps to generate a new API key from your Verbosec Cloud dashboard.1
Log in to your Verbosec account
Visit verbosec.com and sign in with your credentials.
2
Go to Verbosec Cloud → API Keys
From your dashboard, navigate to Verbosec Cloud in the sidebar, then select API Keys from the sub-menu.
3
Click Generate New Key
Press the Generate New Key button, give the key a descriptive label (for example,
production-backend), and confirm.4
Copy and securely store your key
Your new API key is displayed only once. Copy it immediately and store it in a secure location such as a password manager or a secrets manager. You cannot retrieve it again after closing the dialog.
Passing the API key
Include your API key on every request inside theAuthorization header using the Bearer scheme.
authenticated-request.sh
Code examples
The examples below show how to make an authenticatedGET /usage request in three common environments.
Retrieve API usage
Once authenticated, you can retrieve your current usage statistics at any time by calling theGET /usage endpoint. This returns a summary of your API consumption for the current billing period across all Verbosec products.
Endpoint
Example request
get-usage.sh
Example response
usage-response.json
Response fields
string
An ISO 8601 timestamp marking the start of the current billing period.
string
An ISO 8601 timestamp marking the end of the current billing period.
object
An object containing your consumption totals for the billing period.
Authentication errors
When authentication fails, the API returns one of the following error responses.403 Forbidden — Insufficient permissions
403 Forbidden — Insufficient permissions
Returned when your API key is valid but your plan does not include access to the requested resource.
403-response.json