Developers Dashboard

Small internal apps over the site’s data.

List tool templates

GET/sites/{siteId}/tool-templates

Ready-made tools (a bookings board, an orders table…) to start from.

Path parameters

  • siteIdstringrequired

    The 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"
Response 200
{
  "items": [
    {}
  ]
}

List tools

GET/sites/{siteId}/tools

The tools you may open: small internal apps (tables, forms, charts) over the site’s collections, contacts and connections.

Path parameters

  • siteIdstringrequired

    The site’s id.

Response 200

  • itemsarray of objectsrequired
    6 child fields
    • idstringrequired
    • namestringrequired
    • descriptionstring
    • iconstring
    • accessstring

      One of owner admin editor

    • specanyrequired
  • cursorstringnullable

    Pass as ?cursor= to get the next page. Null when there are no more.

  • totalinteger

    How 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"
Response 200
{
  "items": [
    {
      "id": "tool_123",
      "name": "Ana",
      "description": "Building the homepage",
      "icon": "calendar-check",
      "access": "owner",
      "spec": {}
    }
  ],
  "cursor": null,
  "total": 1
}

Create a tool

POST/sites/{siteId}/tools
Scopetools:writeIdempotent with a key

Create 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

  • siteIdstringrequired

    The site’s id.

Headers

  • Idempotency-Keystring

    Send the same key to repeat this request safely; the first answer is replayed for 24 hours.

    up to 200 characters

Request body JSON

  • namestring

    up to 80 characters

  • templateIdstring
  • picksmap of string
  • descriptionstring

    up to 280 characters

  • iconstring

    up to 40 characters

Response 201

  • idstringrequired
  • namestringrequired
  • descriptionstring
  • iconstring
  • accessstring

    One of owner admin editor

  • specanyrequired

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"
  }'
Response 201
{
  "id": "tool_123",
  "name": "Ana",
  "description": "Building the homepage",
  "icon": "calendar-check",
  "access": "owner",
  "spec": {}
}

Get a tool

GET/sites/{siteId}/tools/{toolId}

One tool with its spec: components, queries and layout.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • toolIdstringrequired

Response 200

  • idstringrequired
  • namestringrequired
  • descriptionstring
  • iconstring
  • accessstring

    One of owner admin editor

  • specanyrequired

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"
Response 200
{
  "id": "tool_123",
  "name": "Ana",
  "description": "Building the homepage",
  "icon": "calendar-check",
  "access": "owner",
  "spec": {}
}

Change a tool

PATCH/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

  • siteIdstringrequired

    The site’s id.

  • toolIdstringrequired

Request body JSON

  • namestring

    up to 80 characters

  • iconstring

    up to 40 characters

  • descriptionstring

    up to 280 characters

  • specany
  • accessstring

    One of owner admin editor

  • pinnedboolean

Response 200

  • idstringrequired
  • namestringrequired
  • descriptionstring
  • iconstring
  • accessstring

    One of owner admin editor

  • specanyrequired

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"
  }'
Response 200
{
  "id": "tool_123",
  "name": "Ana",
  "description": "Building the homepage",
  "icon": "calendar-check",
  "access": "owner",
  "spec": {}
}

Delete a tool

DEL/sites/{siteId}/tools/{toolId}

Delete a tool. Its data stays where it is. Owners and admins only.

Path parameters

  • siteIdstringrequired

    The 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"
Response 200
{
  "ok": true
}

Run a tool query

POST/sites/{siteId}/tools/{toolId}/queries/{queryId}/run

Run one of a tool’s queries with the component values it reads (scope), and get its rows or result.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • toolIdstringrequired
  • queryIdstringrequired

Request body JSON

  • scopeobject

    Component 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": {}
  }'
Response 200
{
  "rows": [
    {}
  ]
}