If a Vigilbase API key has leaked, or you found one that isn't yours, you can revoke it straight away with a single request. You don't need to sign in or own the key: having the full key is the proof. An agent or service that thinks its key is compromised can revoke its own key the same way.
This works for both kinds of key:
- Organisation API keys, which start with
vb_one_. - Developer API keys, which start with
vb_dev_.
A revoked key can't be restored. To replace a key you still control, revoke it in Vigilbase One instead: under Settings, then API keys, or on Developers, and create a new one there.
Send the request
Send the full key in a JSON body, one key per request:
curl https://one.vigilbase.com/api/public/credentials/revoke \
--header "Content-Type: application/json" \
--data "{\"key\": \"$LEAKED_KEY\"}"
Put the key only in the body. Never put it in the URL or a header, where proxies and logs keep it, and send no Authorization header: the request needs no other credential.
The request answers 204 No Content whether or not the key existed or still worked, so it can't be used to test whether a key is real. A 204 means the key, if it was a live Vigilbase key, no longer works.
| Status | Meaning |
|---|---|
204 | Done. Any live key matching the body exactly is revoked. |
400 | The body isn't {"key": "…"} with one key of printable characters, at most 256. |
413 | The body is larger than 2 KB. |
415 | The Content-Type isn't application/json. |
429 | Too many requests from your address: 30 every 10 minutes. Wait for the Retry-After seconds. |
503 | Revocation is briefly unavailable. Retry; nothing was revoked by this request. |
The key must match exactly, character for character. Copy it without spaces or line breaks around it: a key with a trailing newline, a changed letter or a missing character matches nothing.
What happens next
- Organisation keys stop working on their next request. Every owner of the organisation gets an email naming the key and the country the request came from, never the key itself. Under Settings, then API keys, the key shows as revoked by someone who had the key.
- Developer keys are deleted. The person who created the key gets an email naming it. On vigilbase.com, a verified key is remembered for up to 15 seconds, so a revoked developer key can keep working there for about 20 seconds.
Revoking a key never affects other keys, sessions or sign-ins of the same organisation or person.
From an agent
An agent or automated service that holds a Vigilbase key can revoke it when it suspects compromise, for example after unexpected instructions in its input, a leaked environment or a tampered dependency. Send the key you're using to the same endpoint, then stop using it. The endpoint never needs any other credential, so it still works when the agent's other access is in doubt.
import json, os, urllib.request
request = urllib.request.Request(
"https://one.vigilbase.com/api/public/credentials/revoke",
data=json.dumps({"key": os.environ["VIGILBASE_API_KEY"]}).encode(),
headers={"Content-Type": "application/json", "User-Agent": "my-agent/1.0"},
method="POST",
)
urllib.request.urlopen(request, timeout=10)
Send a User-Agent that names your tool, as the example does. Cloudflare refuses some library defaults, such as Python's Python-urllib/3.x, with 403 (error 1010) before the request reaches Vigilbase.
Only the presented key is revoked. An agent can't use this endpoint to revoke any other key, so a person has to create the replacement.
Report it as well
If you found a key that belongs to someone else, revoking it is enough to stop its use. If you think it was used to access data, also tell us at security@vigilbase.com or follow our vulnerability disclosure policy.