Authentication
Create a company API key, choose its access level, send it as x-api-key, and understand what it can reach.
A Vadio API key is a company credential. It belongs to one company and carries its own access level, and that level is the entire authorization model: no scopes, no per-route permissions, and the role of the person who created the key plays no part in what it can do.
Create a key
In the Vadio app, open Settings > API Keys and press Add new key. The whole page, the list included, needs the companySettings.manageApiKeys permission and an admin role (owners count): a key carries the company's full authority, so seeing one is as sensitive as creating one. A custom role that holds the permission without being an admin is refused with PERMISSION_DENIED. Creating a key sits on the Premium plan, trials included.
Keys start with api_. The full key is shown once, right after you create it: copy it then, because Vadio stores only a hash and can never show it again. The list afterwards shows only the first characters, enough to tell keys apart. Lose the key and you create a new one.
Pick an expiry when you create the key: 30 days, 90 days, 1 year, or never. The list shows each key's expiry date, and once it passes the key answers 401 with API_KEY_EXPIRED. A company holds at most 50 active keys at a time.
Send it
Every request carries the key in the x-api-key header and the company in the x-company-id header.
curl https://api.vadio.no/api/meeting \
-H "x-api-key: api_your_key_here" \
-H "x-company-id: YOUR_COMPANY_ID"No key, no call. The routes in this reference refuse an anonymous request with 401 before the handler runs.
Name the company
x-company-id is the 24 character id of the company the request acts on, the same value Settings > API Keys shows next to your keys and the companyId field on every key the API returns. Every route in this reference reads it; no path carries a company id.
For an API key there is exactly one valid value, the company the key was created in. Leave the header out and the key's own company is used. Send any other id and the call answers 403 with API_KEY_WRONG_COMPANY. A value that is not a 24 character hex id answers 400 with COMPANY_ID_INVALID.
Send it anyway, even though the key implies it: a client that always names the company fails loudly when a key is swapped for one from another company, instead of quietly reading the wrong data.
Access levels
Every key has one of two levels, picked when you create it and changeable later from the key list.
| Level | What it can call |
|---|---|
| Read | GET and HEAD requests, plus routes marked read-only |
| Read & write | Every method the route allows. This is the default |
The level is enforced by HTTP method. The one exception is a route that reads through a POST, such as a search taking a body: the reference marks it with x-readonly, and a Read key may call it. A Read key that sends a POST, PATCH, PUT or DELETE anywhere else gets 403 with the code API_KEY_READ_ONLY. Changing the level takes effect on the next request; the key value stays the same.
Pick Read for anything that only syncs data out of Vadio, such as a reporting job or a dashboard. A leaked Read key can expose data but cannot change it.
What a key can reach
The key reaches the company it was created in and nothing else. A request whose x-company-id names a different company answers 403 with API_KEY_WRONG_COMPANY, and a record owned by another company reads as missing.
Within its company, the level is the only limit. A key sees and changes everything in the company that the route reaches, including records no single person owns, and a change to the creator's role later never narrows it. Company-wide switches still apply: a route behind an add-on the company has not enabled refuses a key just as it refuses a person, and if the company's plan drops below Premium every key answers 403 with API_KEY_PLAN_REQUIRED until the plan is restored. Admins can still list and revoke keys in the meantime.
Two things follow, and both are worth planning around:
- Treat the key as a company password. Keep it server-side. A key shipped in a browser bundle hands every reader that key's access to the company.
- Mint one key per integration, at the lowest level it needs. Revoking one then never breaks another.
Vadio still records who created each key. Records a key creates are attributed to that person, and the key only works while they remain an active member of the company. That is the creator's only part: their role is never consulted.
Revoking
Delete a key from the list and it stops working on the next request, which comes back 401 with the code API_KEY_REVOKED.
Vadio also revokes keys on its own when the creator loses access. Deactivating or deleting the user revokes every key that user created, in every company. Removing the user from one company revokes the keys they created there. A request that still carries such a key gets 401, usually API_KEY_REVOKED, or API_KEY_CREATOR_REMOVED when the creator is already gone and the revoke has not landed yet. Either way the fix is a new key from someone who is still in the company.
A key created without an expiry keeps working until you revoke it, as long as its creator is an active member of the company. One with an expiry stops on that date with API_KEY_EXPIRED.
There is no rotate button. Create the replacement, move your integration onto it, then delete the old key.