Two Kinds of Key
Velatir has two key types, and they are not interchangeable. Both are created on the same settings page, which is why it is worth being precise about which one a task needs.If you are rolling Velatir out to people’s devices, you want an ingest key, not an API key. Start
from the quickstart instead.
Scopes
Scope decides where a key’s activity or authority lands. It is not a permission list.Ingest key
Ingest key
Choose Organisation or one workspace when you create the key.Organisation covers the whole organisation. Generate ingest key on the Setup page creates this kind of key, and it is the one to roll out to a fleet.Workspace sends that key’s activity into the one workspace you chose. Create it under Settings → API keys after the workspace exists. Use it to roll out to a single workspace, or to keep that workspace’s activity separate.Either scope can only submit telemetry. An ingest key cannot read traces or change configuration.
API key
API key
An API key is always Organisation. The scope cannot be narrowed to a workspace.There is also no finer permission scope. You cannot issue a read-only API key, or one limited to a single endpoint. Where that matters, create a separate key per system so you can revoke one without disturbing the others.What the key can do is administrator-equivalent access to the organisation API, apart from the actions reserved for a signed-in person, described below.
What You Can Do With an API Key
An API key reaches the organisation endpoints as an administrator. In practice that covers reading your traces, assessments, and agents, and managing instructions — the main reason customers automate against Velatir. Some things are deliberately closed to an API key:- Creating keys. Only a signed-in person can create a key, so a leaked key cannot mint itself a replacement or quietly widen its own foothold.
- Submitting activity. An API key is rejected by the ingest endpoints, and an ingest key is rejected by the organisation endpoints. Neither can stand in for the other.
Changes Are Attributed to the Key
Anything an API key changes is recorded against the name you gave the key, not against a person and not as an anonymous system actor. A key namedroadmap-sync produces an audit trail that reads clearly a
year later; one named test does not.
Give each integration its own key, named for the system that holds it.
Authentication
Create a key, send it with a request, and find your organisation id.
Instructions over the API
Create, update, and remove instructions programmatically.