Keys
Platform API keys.
List API keys
/keysEvery API key that hasn’t been revoked: platform, account and site keys. Needs a platform key.
Response 200
itemsarray of objectsrequired9 child fields
idstringrequirednamestringrequiredprefixstringrequiredThe public part shown in the dashboard.
kindstringrequiredOne of
siteplatformaccountscopesarray of stringsrequiredsiteIdstringrequirednullablesiteIdsarray of stringsrequirednullablecreatedAtstringrequiredAn ISO 8601 timestamp.
lastUsedAtstringrequirednullableAn ISO 8601 timestamp.
cursorstringnullablePass as ?cursor= to get the next page. Null when there are no more.
totalintegerHow many there are in all, when the list knows.
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/keys \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/keys', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/keys",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "key_123",
"name": "Ana",
"prefix": "ab12cd34",
"kind": "site",
"scopes": [
"content:read"
],
"siteId": "site_123",
"siteIds": [
"site_123"
],
"createdAt": "2026-11-20T08:00:00.000Z",
"lastUsedAt": "2026-11-20T08:00:00.000Z"
}
],
"cursor": null,
"total": 1
}Create an API key
/keysMake a key. The key itself is returned once, in key; store it safely. Needs a platform key.
Headers
Idempotency-KeystringSend the same key to repeat this request safely; the first answer is replayed for 24 hours.
up to 200 characters
Request body JSON
namestringrequiredat least 1 characters · up to 120 characters
kindstringrequiredplatform: every site. site: one site (siteId). account: acts as the account that made the key.
One of
platformsiteaccountsiteIdstringsiteIdsarray of stringsAccount keys: limit to these sites.
up to 200 items
scopesarray of stringsOne of
sites:writecontent:readcontent:writecontacts:readgeneratecontacts:writemedia:writedesign:writepayments:readworkflows:readworkflows:writetools:readtools:writeconnections:readconnections:writesettings:writekeys:writeanalytics:read
Response 201
keystringrequireditemobjectrequiredAn API key, without its secret.
9 child fields
idstringrequirednamestringrequiredprefixstringrequiredThe public part shown in the dashboard.
kindstringrequiredOne of
siteplatformaccountscopesarray of stringsrequiredsiteIdstringrequirednullablesiteIdsarray of stringsrequirednullablecreatedAtstringrequiredAn ISO 8601 timestamp.
lastUsedAtstringrequirednullableAn ISO 8601 timestamp.
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 422The body is invalid; details say which values.
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itSends a real request. Asks before it changes anything.
curl https://api.unvop.com/v1/keys \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Ana",
"kind": "platform"
}'const res = await fetch('https://api.unvop.com/v1/keys', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
name: "Ana",
kind: "platform"
}),
});
const data = await res.json();import os, requests, uuid
res = requests.post(
"https://api.unvop.com/v1/keys",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Ana",
"kind": "platform",
},
)
data = res.json(){
"key": "team",
"item": {
"id": "pg_123",
"name": "Ana",
"prefix": "ab12cd34",
"kind": "site",
"scopes": [
"content:read"
],
"siteId": "site_123",
"siteIds": [
"site_123"
],
"createdAt": "2026-11-20T08:00:00.000Z",
"lastUsedAt": "2026-11-20T08:00:00.000Z"
}
}Revoke an API key
/keys/{keyId}Revoke a key. Requests with it fail from now on. Needs a platform key.
Path parameters
keyIdstringrequired
Response 200
oktruerequired
Errors
- 401No key, or the key isn’t valid.
- 403The key lacks the scope (insufficient_scope) or the role this needs, or the site’s plan lacks the feature (feature_not_in_plan).
- 404Not found, or not reachable with this key.
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itSends a real request. Asks before it changes anything.
curl -X DELETE https://api.unvop.com/v1/keys/key_123 \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/keys/key_123', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.delete(
"https://api.unvop.com/v1/keys/key_123",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"ok": true
}