Collections
A site’s own lists (menu, rooms, team, events), their entries and where they come from.
- GET
/sites/{siteId}/collectionsList collections - POST
/sites/{siteId}/collectionsCreate a collection - GET
/sites/{siteId}/collections/{key}Get a collection - PUT
/sites/{siteId}/collections/{key}Change a collection - DEL
/sites/{siteId}/collections/{key}Delete a collection - GET
/sites/{siteId}/collections/{key}/entriesList entries - POST
/sites/{siteId}/collections/{key}/entriesAdd an entry - GET
/sites/{siteId}/collections/{key}/entries/{slug}Get an entry - PUT
/sites/{siteId}/collections/{key}/entries/{slug}Change an entry - DEL
/sites/{siteId}/collections/{key}/entries/{slug}Delete an entry - GET
/sites/{siteId}/collections/{key}/sourceGet a collection’s source - PUT
/sites/{siteId}/collections/{key}/sourceChange a collection’s source - POST
/sites/{siteId}/collections/{key}/source/previewPreview a source - POST
/sites/{siteId}/collections/{key}/source/syncSync now
List collections
/sites/{siteId}/collectionsThe site’s collections (menu, rooms, team, events…) with their fields and entry counts.
Path parameters
siteIdstringrequiredThe site’s id.
Response 200
itemsarray of objectsrequired7 child fields
idstringrequiredkeystringrequiredThe handle used in URLs, like "menu" or "dive-sites".
namestringrequiredsingularstringfieldsarrayrequiredsettingsobjectrequiredentryCountinteger
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/collections \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections', {
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/collections",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "col_123",
"key": "team",
"name": "Ana",
"singular": "Member",
"fields": [
{}
],
"settings": {},
"entryCount": 1
}
],
"cursor": null,
"total": 1
}Create a collection
/sites/{siteId}/collectionsAdd a collection, from a preset or with your own fields. 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
singularstringWhat one entry is called, like "Dish".
up to 80 characters
keystringThe handle in URLs. Made from the name when left out.
up to 60 characters
presetstringStart from a preset (menu, team, events, rooms…): its fields and settings.
up to 60 characters
fieldsarrayFields: { key, label, type, required?, options? }. Types include text, richText, number, price, image, date, select, boolean, url, email and reference.
up to 200 items
settingsobjectSorting, entry pages (basePath), labels.
Response 201
idstringrequiredkeystringrequiredThe handle used in URLs, like "menu" or "dive-sites".
namestringrequiredsingularstringfieldsarrayrequiredsettingsobjectrequiredentryCountinteger
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/collections \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Team",
"fields": [
{
"key": "role",
"label": "Role",
"type": "text"
}
]
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
name: "Team",
fields: [
{
key: "role",
label: "Role",
type: "text"
}
]
}),
});
const data = await res.json();import os, requests, uuid
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/collections",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Team",
"fields": [
{
"key": "role",
"label": "Role",
"type": "text",
},
],
},
)
data = res.json(){
"id": "col_123",
"key": "team",
"name": "Ana",
"singular": "Member",
"fields": [
{}
],
"settings": {},
"entryCount": 1
}Get a collection
/sites/{siteId}/collections/{key}One collection with its fields and settings.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
Response 200
idstringrequiredkeystringrequiredThe handle used in URLs, like "menu" or "dive-sites".
namestringrequiredsingularstringfieldsarrayrequiredsettingsobjectrequiredentryCountinteger
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/collections/team \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team', {
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/collections/team",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "key_123",
"key": "team",
"name": "Ana",
"singular": "Member",
"fields": [
{}
],
"settings": {},
"entryCount": 1
}Change a collection
/sites/{siteId}/collections/{key}Change a collection’s name, fields or settings. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
Request body JSON
namestringup to 80 characters
singularstringWhat one entry is called, like "Dish".
up to 80 characters
keystringThe handle in URLs. Made from the name when left out.
up to 60 characters
fieldsarrayFields: { key, label, type, required?, options? }. Types include text, richText, number, price, image, date, select, boolean, url, email and reference.
up to 200 items
settingsobjectSorting, entry pages (basePath), labels.
Response 200
idstringrequiredkeystringrequiredThe handle used in URLs, like "menu" or "dive-sites".
namestringrequiredsingularstringfieldsarrayrequiredsettingsobjectrequiredentryCountinteger
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 PUT https://api.unvop.com/v1/sites/site_123/collections/team \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ana",
"singular": "Member"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: "Ana",
singular: "Member"
}),
});
const data = await res.json();import os, requests
res = requests.put(
"https://api.unvop.com/v1/sites/site_123/collections/team",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"name": "Ana",
"singular": "Member",
},
)
data = res.json(){
"id": "key_123",
"key": "team",
"name": "Ana",
"singular": "Member",
"fields": [
{}
],
"settings": {},
"entryCount": 1
}Delete a collection
/sites/{siteId}/collections/{key}Delete a collection and all its entries. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
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/collections/team \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team', {
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/collections/team",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"ok": true
}List entries
/sites/{siteId}/collections/{key}/entriesA collection’s entries in their order. Filter by status or search with q.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
Query parameters
limitintegerHow many to return (default 50).
min 1 · max 200
cursorstringThe cursor from the previous page.
statusstringOne of
draftpublishedqstringSearch the slug and values.
offsetintegerKept for older clients; prefer cursor.
min 0
Response 200
itemsarray of objectsrequired7 child fields
idstringrequiredslugstringrequiredstatusstringrequiredOne of
draftpublisheddataobjectrequiredValues keyed by field key.
positionnumbercreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn 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).
- 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 itRead-only. Sends a real request with your key.
curl https://api.unvop.com/v1/sites/site_123/collections/team/entries \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/entries', {
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/collections/team/entries",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "ent_123",
"slug": "ana",
"status": "draft",
"data": {
"title": "Ana",
"role": "Guide"
},
"position": 0,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}
],
"cursor": null,
"total": 1
}Add an entry
/sites/{siteId}/collections/{key}/entriesAdd an entry. Values are checked against the collection’s fields; errors come back in details.fields keyed data.<field>. Workflows listening for new entries run.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
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
slugstringMade from the title when left out.
up to 200 characters
dataobjectValues keyed by field key.
statusstringPublished entries go live at once.
One of
draftpublished
Response 201
idstringrequiredslugstringrequiredstatusstringrequiredOne of
draftpublisheddataobjectrequiredValues keyed by field key.
positionnumbercreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn 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).
- 404Not found, or not reachable with this key.
- 409It conflicts with the current state.
- 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/collections/team/entries \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"data": {
"title": "Ana",
"role": "Guide"
},
"status": "published"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/entries', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
data: {
title: "Ana",
role: "Guide"
},
status: "published"
}),
});
const data = await res.json();import os, requests, uuid
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/collections/team/entries",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"data": {
"title": "Ana",
"role": "Guide",
},
"status": "published",
},
)
data = res.json(){
"id": "ent_123",
"slug": "ana",
"status": "draft",
"data": {
"title": "Ana",
"role": "Guide"
},
"position": 0,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}Get an entry
/sites/{siteId}/collections/{key}/entries/{slug}One entry, by its slug (or id).
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequiredslugstringrequired
Response 200
idstringrequiredslugstringrequiredstatusstringrequiredOne of
draftpublisheddataobjectrequiredValues keyed by field key.
positionnumbercreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn 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).
- 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/collections/team/entries/ana \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/entries/ana', {
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/collections/team/entries/ana",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "ent_123",
"slug": "ana",
"status": "draft",
"data": {
"title": "Ana",
"role": "Guide"
},
"position": 0,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}Change an entry
/sites/{siteId}/collections/{key}/entries/{slug}Change an entry’s values, slug or status. Values you send replace the stored ones for those fields.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequiredslugstringrequired
Request body JSON
slugstringMade from the title when left out.
up to 200 characters
dataobjectValues keyed by field key.
statusstringPublished entries go live at once.
One of
draftpublished
Response 200
idstringrequiredslugstringrequiredstatusstringrequiredOne of
draftpublisheddataobjectrequiredValues keyed by field key.
positionnumbercreatedAtstringrequiredAn ISO 8601 timestamp.
updatedAtstringrequiredAn 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).
- 404Not found, or not reachable with this key.
- 409It conflicts with the current state.
- 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 PUT https://api.unvop.com/v1/sites/site_123/collections/team/entries/ana \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"slug": "ana",
"data": {
"title": "Ana",
"role": "Guide"
}
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/entries/ana', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
slug: "ana",
data: {
title: "Ana",
role: "Guide"
}
}),
});
const data = await res.json();import os, requests
res = requests.put(
"https://api.unvop.com/v1/sites/site_123/collections/team/entries/ana",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"slug": "ana",
"data": {
"title": "Ana",
"role": "Guide",
},
},
)
data = res.json(){
"id": "ent_123",
"slug": "ana",
"status": "draft",
"data": {
"title": "Ana",
"role": "Guide"
},
"position": 0,
"createdAt": "2026-11-20T08:00:00.000Z",
"updatedAt": "2026-11-20T08:00:00.000Z"
}Delete an entry
/sites/{siteId}/collections/{key}/entries/{slug}Delete an entry. It leaves the live site at once.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequiredslugstringrequired
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.
- 409It conflicts with the current state.
- 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/collections/team/entries/ana \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/entries/ana', {
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/collections/team/entries/ana",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"ok": true
}Get a collection’s source
/sites/{siteId}/collections/{key}/sourceWhere the entries come from: typed in (manual), synced from a connection every 15 minutes (sync), or fetched while the page renders (live). Also whether the collection is published at /api/data/{key}.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
Response 200
sourceobjectrequired2 child fields
modestringrequiredOne of
manualsyncliveconnectionIdstringnullable
apiobjectrequired2 child fields
enabledbooleanrequiredaccessstringrequiredOne of
publickey
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/collections/team/source \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/source', {
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/collections/team/source",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"source": {
"mode": "manual",
"connectionId": "conn_123"
},
"api": {
"enabled": true,
"access": "public"
}
}Change a collection’s source
/sites/{siteId}/collections/{key}/sourcePoint a collection at a connection (sync or live), map the answer’s fields to the collection’s, or set it back to manual. A collection that starts syncing is pulled at once. Also turns its public data API on or off. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
Request body JSON
sourceobject8 child fields
modestringOne of
manualsyncliveconnectionIdstringnullablepathstringAdded to the connection’s base URL.
itemsPathstringWhere the list is in the answer, as a dot path ("" for the top level).
mappingmap of stringField key to a dot path in each item.
idPathstringeveryMinutesintegerttlMinutesinteger
apiobject2 child fields
enabledbooleanaccessstringOne of
publickey
Response 200
sourceobjectrequired2 child fields
modestringrequiredOne of
manualsyncliveconnectionIdstringnullable
apiobjectrequired2 child fields
enabledbooleanrequiredaccessstringrequiredOne of
publickey
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 PUT https://api.unvop.com/v1/sites/site_123/collections/team/source \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": {
"mode": "manual",
"connectionId": "conn_123",
"path": "/menu",
"mapping": {},
"everyMinutes": 1,
"ttlMinutes": 1
},
"api": {
"enabled": true,
"access": "public"
}
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/source', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
source: {
mode: "manual",
connectionId: "conn_123",
path: "/menu",
mapping: {},
everyMinutes: 1,
ttlMinutes: 1
},
api: {
enabled: true,
access: "public"
}
}),
});
const data = await res.json();import os, requests
res = requests.put(
"https://api.unvop.com/v1/sites/site_123/collections/team/source",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"source": {
"mode": "manual",
"connectionId": "conn_123",
"path": "/menu",
"mapping": {},
"everyMinutes": 1,
"ttlMinutes": 1,
},
"api": {
"enabled": True,
"access": "public",
},
},
)
data = res.json(){
"source": {
"mode": "manual",
"connectionId": "conn_123"
},
"api": {
"enabled": true,
"access": "public"
}
}Preview a source
/sites/{siteId}/collections/{key}/source/previewAsk a connection for data at a path and see the lists in the answer, the first item’s values and a suggested field mapping, without saving anything.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
Request body JSON
connectionIdstringrequiredpathstringitemsPathstring
Response 200
probeobjectrequiredWhat a connection answered.
4 child fields
okbooleanrequiredstatusnumbersampleanyerrorstring
candidatesarrayrequireditemsPathstringrequirednullablecountnumberrequiredmappingmap of stringrequired
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/collections/team/source/preview \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"connectionId": "conn_123"
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/source/preview', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
connectionId: "conn_123"
}),
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/collections/team/source/preview",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"connectionId": "conn_123",
},
)
data = res.json(){
"probe": {
"ok": true,
"status": 200,
"sample": {},
"error": null
},
"candidates": [
{}
],
"itemsPath": "…",
"count": 3,
"mapping": {}
}Sync now
/sites/{siteId}/collections/{key}/source/syncPull a synced collection from its connection now instead of waiting for the next 15-minute sync.
Path parameters
siteIdstringrequiredThe site’s id.
keystringrequired
Response 200
sourceobjectrequired2 child fields
modestringrequiredOne of
manualsyncliveconnectionIdstringnullable
apiobjectrequired2 child fields
enabledbooleanrequiredaccessstringrequiredOne of
publickey
syncanyrequired
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/collections/team/source/sync \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/collections/team/source/sync', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.unvop.com/v1/sites/site_123/collections/team/source/sync",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"source": {
"mode": "manual",
"connectionId": "conn_123"
},
"api": {
"enabled": true,
"access": "public"
},
"sync": {}
}