Developers Dashboard

Outside APIs, sheets and feeds the site reads from.

List connections

GET/sites/{siteId}/connections

Connections to outside APIs, Google Sheets, Airtable and feeds, with how many collections use each and the last test. Secret values are never returned; secretsSet names the ones that are set.

Path parameters

  • siteIdstringrequired

    The site’s id.

Response 200

  • itemsarray of objectsrequired
    6 child fields
    • idstringrequired
    • namestringrequired
    • kindstringrequired

      One of rest google-sheet airtable rss

    • baseUrlstringrequired
    • headersmap of stringrequired
    • secretsSetarray of stringsrequired

      The names of secrets that have a value. Secret values are never returned.

  • 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/connections \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "items": [
    {
      "id": "conn_123",
      "name": "Ana",
      "kind": "rest",
      "baseUrl": "https://harbour-bakery.unvop.dev",
      "headers": {},
      "secretsSet": []
    }
  ],
  "cursor": null,
  "total": 1
}

Create a connection

POST/sites/{siteId}/connections
Scopeconnections:writeIdempotent with a key

Connect an outside API, sheet or feed. Secrets are stored encrypted and are write-only. 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

  • namestringrequired

    up to 80 characters

  • kindstringrequired

    One of rest google-sheet airtable rss

  • baseUrlstringrequired

    up to 2,000 characters

  • headersmap of string

    Plain headers sent with every request.

  • secretsmap of string

    Secret headers (or apiKey), encrypted at rest and never returned. Send an empty string to remove one; leave one out to keep it.

Response 201

  • idstringrequired
  • namestringrequired
  • kindstringrequired

    One of rest google-sheet airtable rss

  • baseUrlstringrequired
  • headersmap of stringrequired
  • secretsSetarray of stringsrequired

    The names of secrets that have a value. Secret values are never returned.

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/connections \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "name": "Bookings API",
    "kind": "rest",
    "baseUrl": "https://api.example.com/v2",
    "secrets": {
      "Authorization": "Bearer sk_live_…"
    }
  }'
Response 201
{
  "id": "conn_123",
  "name": "Ana",
  "kind": "rest",
  "baseUrl": "https://harbour-bakery.unvop.dev",
  "headers": {},
  "secretsSet": []
}

Get a connection

GET/sites/{siteId}/connections/{connectionId}

One connection, with the collections that use it and its last test. Secret values are never returned.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • connectionIdstringrequired

Response 200

  • idstringrequired
  • namestringrequired
  • kindstringrequired

    One of rest google-sheet airtable rss

  • baseUrlstringrequired
  • headersmap of stringrequired
  • secretsSetarray of stringsrequired

    The names of secrets that have a value. Secret values are never returned.

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/connections/conn_123 \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "id": "conn_123",
  "name": "Ana",
  "kind": "rest",
  "baseUrl": "https://harbour-bakery.unvop.dev",
  "headers": {},
  "secretsSet": []
}

Change a connection

PATCH/sites/{siteId}/connections/{connectionId}

Change a connection. Secrets you send replace those names; secrets you leave out are kept. Owners and admins only.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • connectionIdstringrequired

Request body JSON

  • namestring

    up to 80 characters

  • kindstring

    One of rest google-sheet airtable rss

  • baseUrlstring

    up to 2,000 characters

  • headersmap of string

    Plain headers sent with every request.

  • secretsmap of string

    Secret headers (or apiKey), encrypted at rest and never returned. Send an empty string to remove one; leave one out to keep it.

Response 200

  • idstringrequired
  • namestringrequired
  • kindstringrequired

    One of rest google-sheet airtable rss

  • baseUrlstringrequired
  • headersmap of stringrequired
  • secretsSetarray of stringsrequired

    The names of secrets that have a value. Secret values are never returned.

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/connections/conn_123 \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Ana",
    "kind": "rest"
  }'
Response 200
{
  "id": "conn_123",
  "name": "Ana",
  "kind": "rest",
  "baseUrl": "https://harbour-bakery.unvop.dev",
  "headers": {},
  "secretsSet": []
}

Delete a connection

DEL/sites/{siteId}/connections/{connectionId}

Delete a connection. Collections that synced from it keep their entries and become manual. Owners and admins only.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • connectionIdstringrequired

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/connections/conn_123 \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "ok": true
}

Test a connection

POST/sites/{siteId}/connections/{connectionId}/test

Call the connection’s base URL and report what came back. The result is kept as its last test.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • connectionIdstringrequired

Response 200

  • okbooleanrequired
  • statusnumber
  • sampleany
  • errorstring

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 POST https://api.unvop.com/v1/sites/site_123/connections/conn_123/test \
  -H "Authorization: Bearer $UNVOP_KEY"
Response 200
{
  "ok": true,
  "status": 200,
  "sample": {},
  "error": null
}

Call a connection

POST/sites/{siteId}/connections/{connectionId}/request

Send one request through a connection (its base URL plus path, with its headers and secrets) and see a sample of the answer. Private and local addresses are refused.

Path parameters

  • siteIdstringrequired

    The site’s id.

  • connectionIdstringrequired

Request body JSON

  • pathstring

    up to 1,000 characters

  • methodstring

    One of GET POST PUT PATCH DELETE HEAD

  • bodyany

Response 200

  • okbooleanrequired
  • statusnumber
  • sampleany
  • errorstring

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/connections/conn_123/request \
  -H "Authorization: Bearer $UNVOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "path": "/menu",
    "method": "GET"
  }'
Response 200
{
  "ok": true,
  "status": 200,
  "sample": {},
  "error": null
}