Keys and authentication
API keys, their kinds and scopes, how roles still apply, and how OAuth connections for AI assistants fit in.
There are two ways to act on Unvop from outside the dashboard: API keys, for your own code and headless clients, and OAuth, for AI assistants connecting to the MCP server. Both become the same thing inside Unvop: a principal with a set of scopes and the sites it may reach, checked on every call.
Send a key
Put the key in the Authorization header on every request:
Authorization: Bearer unvop_live_ab12cd34_…Keys look like unvop_live_<prefix>_<secret>. Only a SHA-256 hash of each key is stored, and the key itself is shown once, when it is made. The prefix is public, so the dashboard can show which key is which. A missing, malformed or revoked key gets 401 unauthorized.
Kinds of key
| Kind | Made by | Reaches | Acts as |
|---|---|---|---|
| Account | anyone, in Settings, Developers | the account's sites: all of them, or the ones picked | the account, with its role on each site. Can create sites and start builds. |
| Site | a site's owner or admin | one site | an admin of that site. Can't create sites or start builds. |
| Platform | platform administrators | every site | an owner. Can create, delete and build sites, and manage keys. |
Most integrations want an account key. Use a site key when the code should only ever touch one site, such as a script that keeps a menu in sync, and for the site's own public endpoints (the published data API and webhooks with key access), which accept site keys and platform keys but not account keys.
Scopes
Each key carries scopes. A call without the scope it needs gets 403 insufficient_scope, and details.scope names the one that was missing. GET /me says which scopes and sites a key has, and every operation in the reference shows its scope.
| Scope | Allows | Site keys | Account keys |
|---|---|---|---|
sites:write | Create new sites and delete sites. | No | Yes |
content:read | Read sites, pages, blocks, collections, media, forms, design and settings. | Yes | Yes |
content:write | Create, edit, publish and delete pages, blocks, collections, entries and forms. | Yes | Yes |
contacts:read | Read contacts, the pipeline, activity and form submissions. | Yes | Yes |
contacts:write | Add, edit and delete contacts, add notes and delete submissions. | Yes | Yes |
media:write | Upload, describe and delete images, videos and files. | Yes | Yes |
design:write | Change brand tokens and the site stylesheet. | Yes | Yes |
payments:read | Read payments taken through the site. | Yes | Yes |
analytics:read | Read visits, pages, sources, devices, countries, leads, conversions, revenue totals, Google search data, workflow run counts and site health. No one’s personal details. | Yes | Yes |
workflows:read | Read workflows, their templates, the node catalog and runs. | Yes | Yes |
workflows:write | Create, edit, publish, test, run and delete workflows. | Yes | Yes |
tools:read | Read tools and their templates. | Yes | Yes |
tools:write | Create, edit and delete tools, and run their queries. | Yes | Yes |
connections:read | Read connections to outside APIs and collection sources. Secret values are never returned. | Yes | Yes |
connections:write | Create, edit, test and delete connections, and change collection sources. | Yes | Yes |
settings:write | Change site settings and turn plugins on, off and configure them. | Yes | Yes |
generate | Start AI site builds from a prompt and follow them. | No | Yes |
keys:write | List, create and revoke platform API keys. | No | No |
content:write also grants media:write, so keys made before media:write existed keep uploading. Site keys can hold every scope except sites:write, generate and keys:write; account keys every scope except keys:write. A new site key gets content:read, content:write and contacts:read unless you choose others.
Roles still apply
Scopes say what a key may do; the account's role on a site still applies, exactly as in the dashboard. A few things are for site owners and admins only, and the reference marks them: creating, changing and deleting collections, changing collection sources, changing settings, configuring plugins, and in workflows, tools and connections whatever the dashboard keeps for owners and admins (publishing, turning on or off, deleting). An editor's account key gets 403 forbidden there, whatever its scopes.
Manage keys
Settings, Developers in the dashboard is the home for keys. Create an account key (name it, choose its scopes, choose all your sites or some), create a site key for a site you own or administer, and revoke any key you made. A revoked key fails from the next request. The same screen lists the AI assistants connected to your account and lets you disconnect them.
With a platform key that holds keys:write you can manage keys over the API too: [GET /keys](/api/keys#list-keys), [POST /keys](/api/keys#create-key) and [DELETE /keys/{keyId}](/api/keys#revoke-key).
OAuth for AI assistants
AI assistants don't need a key. They connect to https://platform.unvop.com/mcp with OAuth 2.1: the person signs in to Unvop, chooses which sites and what the app may do, and the app gets a token that acts as their account with exactly that. OAuth explains the flow, the token lifetimes and the consent screen.
Keeping keys safe
- Never put a key in a browser. Keys belong on your server, in CI secrets or in a password manager. The published data API and public webhooks exist so pages don't need one.
- Give each integration its own key with only the scopes it needs, so you can revoke one without breaking the others.
- Secrets are write-only. Connection and plugin secrets are encrypted at rest and never returned; answers list only the names of the ones that are set (
secretsSet). - Every call is recorded. Each request (key or grant, method, path, status) is kept in the API audit log, and keys show when they were last used.