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.Log in to your Verbosec account
Visit verbosec.com and sign in with your credentials.
Go to Verbosec Cloud → API Keys
From your dashboard, navigate to Verbosec Cloud in the sidebar, then select API Keys from the sub-menu.
Click Generate New Key
Press the Generate New Key button, give the key a descriptive label (for example,
production-backend), and confirm.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
An ISO 8601 timestamp marking the start of the current billing period.
An ISO 8601 timestamp marking the end of the current billing period.
An object containing your consumption totals for the billing period.
Authentication errors
When authentication fails, the API returns one of the following error responses.401 Unauthorized — Missing or invalid key
401 Unauthorized — Missing or invalid key
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