Skip to main content

Creating a key

A workspace administrator creates keys in Vensight under Settings → Developers. Give the key a name that says what will use it — Warehouse loader, GRC sync — because that name is all you will have to tell four keys apart later.
The key is shown once. Vensight stores only a hash of it, so it genuinely cannot be read back — not by you, not by support. If you lose it, revoke it and create another.

Sending it

X-Api-Key: vsk_live_… is accepted as an alternative, for loaders and connectors that cannot set an Authorization header.
Send one or the other, and get it right. If an Authorization header is present but malformed — Bearer misspelled, the word missing, or extra text after the key — the request is refused rather than falling back to X-Api-Key. That is deliberate, so a typo surfaces as a typo instead of a confusing refusal from a different cause; but it does mean a stray Authorization header added by a proxy will mask a perfectly good X-Api-Key.
A key in the query string is never accepted. Query strings are recorded by proxies, load balancers and access logs — including Vensight’s own — and a credential that reaches a log has to be rotated.

What a key can do

Revoking

Revoke a key in the same place you created it. It stops working immediately, and the record of what it did is kept — revoking does not erase the access log.

When a key is refused

Both carry WWW-Authenticate: Bearer realm="Vensight API". If you have just rotated a key and are seeing invalid_credential, the old one is almost certainly still in your environment — the two failures are indistinguishable by design. The complete list of codes the API returns, and which are worth retrying, is on Errors.