Tools
Small internal apps over the site’s data.
- GET
/sites/{siteId}/tool-templatesList tool templates - GET
/sites/{siteId}/toolsList tools - POST
/sites/{siteId}/toolsCreate a tool - GET
/sites/{siteId}/tools/{toolId}Get a tool - PATCH
/sites/{siteId}/tools/{toolId}Change a tool - DEL
/sites/{siteId}/tools/{toolId}Delete a tool - POST
/sites/{siteId}/tools/{toolId}/queries/{queryId}/runRun a tool query
List tool templates
/sites/{siteId}/tool-templatesReady-made tools (a bookings board, an orders table…) to start from.
Path parameters
siteIdstringrequiredThe site’s id.
Response 200
itemsarrayrequired
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 itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/sites/site_123/tool-templates \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/tool-templates', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/sites/site_123/tool-templates",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{}
]
}List tools
/sites/{siteId}/toolsThe tools you may open: small internal apps (tables, forms, charts) over the site’s collections, contacts and connections.
Path parameters
siteIdstringrequiredThe site’s id.
Response 200
itemsarray of objectsrequired6 child fields
idstringrequirednamestringrequireddescriptionstringiconstringaccessstringOne of
owneradmineditorspecanyrequired
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).
- 404Not found, or not reachable with this key.
- 429Too many requests; wait for RateLimit-Reset seconds.
Try itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/sites/site_123/tools \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/tools', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/sites/site_123/tools",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "tool_123",
"name": "Ana",
"description": "Building the homepage",
"icon": "calendar-check",
"access": "owner",
"spec": {}
}
],
"cursor": null,
"total": 1
}Create a tool
/sites/{siteId}/toolsCreate a tool, blank or from a template (picks fill the template’s choices, such as which collection it shows). Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
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
namestringup to 80 characters
templateIdstringpicksmap of stringdescriptionstringup to 280 characters
iconstringup to 40 characters
Response 201
idstringrequirednamestringrequireddescriptionstringiconstringaccessstringOne of
owneradmineditorspecanyrequired
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.
- 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/sites/site_123/tools \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Ana",
"templateId": "template_123"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/tools', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
name: "Ana",
templateId: "template_123"
}),
});
const data = await res.json();import os, requests, uuid
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/tools",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Ana",
"templateId": "template_123",
},
)
data = res.json(){
"id": "tool_123",
"name": "Ana",
"description": "Building the homepage",
"icon": "calendar-check",
"access": "owner",
"spec": {}
}Get a tool
/sites/{siteId}/tools/{toolId}One tool with its spec: components, queries and layout.
Path parameters
siteIdstringrequiredThe site’s id.
toolIdstringrequired
Response 200
idstringrequirednamestringrequireddescriptionstringiconstringaccessstringOne of
owneradmineditorspecanyrequired
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 itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/sites/site_123/tools/tool_123 \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/tools/tool_123', {
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.unvop.com/v1/sites/site_123/tools/tool_123",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "tool_123",
"name": "Ana",
"description": "Building the homepage",
"icon": "calendar-check",
"access": "owner",
"spec": {}
}Change a tool
/sites/{siteId}/tools/{toolId}Change a tool’s name, icon, description, spec, who may use it (access) or whether it is pinned. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
toolIdstringrequired
Request body JSON
namestringup to 80 characters
iconstringup to 40 characters
descriptionstringup to 280 characters
specanyaccessstringOne of
owneradmineditorpinnedboolean
Response 200
idstringrequirednamestringrequireddescriptionstringiconstringaccessstringOne of
owneradmineditorspecanyrequired
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.
- 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 -X PATCH https://api.unvop.com/v1/sites/site_123/tools/tool_123 \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ana",
"icon": "calendar-check"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/tools/tool_123', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: "Ana",
icon: "calendar-check"
}),
});
const data = await res.json();import os, requests
res = requests.patch(
"https://api.unvop.com/v1/sites/site_123/tools/tool_123",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"name": "Ana",
"icon": "calendar-check",
},
)
data = res.json(){
"id": "tool_123",
"name": "Ana",
"description": "Building the homepage",
"icon": "calendar-check",
"access": "owner",
"spec": {}
}Delete a tool
/sites/{siteId}/tools/{toolId}Delete a tool. Its data stays where it is. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
toolIdstringrequired
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/sites/site_123/tools/tool_123 \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/tools/tool_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/sites/site_123/tools/tool_123",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"ok": true
}Run a tool query
/sites/{siteId}/tools/{toolId}/queries/{queryId}/runRun one of a tool’s queries with the component values it reads (scope), and get its rows or result.
Path parameters
siteIdstringrequiredThe site’s id.
toolIdstringrequiredqueryIdstringrequired
Request body JSON
scopeobjectComponent state the query reads, like a filter’s value.
Response 200
rowsarray
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.
- 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/sites/site_123/tools/tool_123/queries/bookings/run \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"scope": {}
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/tools/tool_123/queries/bookings/run', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
scope: {}
}),
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/tools/tool_123/queries/bookings/run",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"scope": {},
},
)
data = res.json(){
"rows": [
{}
]
}