Plugins
Email, Stripe, SEO, analytics, booking, spam protection and more.
List plugins
/sites/{siteId}/pluginsEvery plugin (email, Stripe, SEO, analytics, booking, spam protection, reviews…) with its settings fields and its state on the site. Secret values are never returned.
Path parameters
siteIdstringrequiredThe site’s id.
Response 200
itemsarray of objectsrequired6 child fields
idstringrequirednamestringrequireddescriptionstringrequiredcategorystringrequiredsettingsarrayrequiredThe plugin’s settings fields. Fields with secret: true are write-only.
stateobjectrequired4 child fields
idstringrequiredenabledbooleanrequiredconfigobjectrequiredsecretsSetarray of stringsrequired
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/plugins \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/plugins', {
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/plugins",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"items": [
{
"id": "email",
"name": "Ana",
"description": "Building the homepage",
"category": "…",
"settings": [
{}
],
"state": {
"id": "id_123",
"enabled": true,
"config": {},
"secretsSet": []
}
}
],
"cursor": null,
"total": 1
}Get a plugin
/sites/{siteId}/plugins/{pluginId}One plugin with its settings fields and state.
Path parameters
siteIdstringrequiredThe site’s id.
pluginIdstringrequired
Response 200
idstringrequirednamestringrequireddescriptionstringrequiredcategorystringrequiredsettingsarrayrequiredThe plugin’s settings fields. Fields with secret: true are write-only.
stateobjectrequired4 child fields
idstringrequiredenabledbooleanrequiredconfigobjectrequiredsecretsSetarray of stringsrequired
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/plugins/email \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/plugins/email', {
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/plugins/email",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"id": "email",
"name": "Ana",
"description": "Building the homepage",
"category": "…",
"settings": [
{}
],
"state": {
"id": "id_123",
"enabled": true,
"config": {},
"secretsSet": []
}
}Turn on or configure a plugin
/sites/{siteId}/plugins/{pluginId}Turn a plugin on or off and change its settings. Secret fields (API keys, tokens) go in secrets: they are encrypted, write-only and never returned. Core plugins can’t be turned off. Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
pluginIdstringrequired
Request body JSON
enabledbooleanconfigobjectsecretsmap of string
Response 200
idstringrequiredenabledbooleanrequiredconfigobjectrequiredsecretsSetarray of stringsrequired
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/plugins/email \
-H "Authorization: Bearer $UNVOP_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"config": {
"fromEmail": "hello@example.com"
}
}'const res = await fetch('https://api.unvop.com/v1/sites/site_123/plugins/email', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.UNVOP_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
enabled: true,
config: {
fromEmail: "hello@example.com"
}
}),
});
const data = await res.json();import os, requests
res = requests.put(
"https://api.unvop.com/v1/sites/site_123/plugins/email",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
json={
"enabled": True,
"config": {
"fromEmail": "hello@example.com",
},
},
)
data = res.json(){
"id": "email",
"enabled": true,
"config": {},
"secretsSet": []
}Test a plugin
/sites/{siteId}/plugins/{pluginId}/testCheck a plugin’s connection (for example, send a test email). Owners and admins only.
Path parameters
siteIdstringrequiredThe site’s id.
pluginIdstringrequired
Response 200
okbooleanrequiredmessagestring
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/plugins/email/test \
-H "Authorization: Bearer $UNVOP_KEY"const res = await fetch('https://api.unvop.com/v1/sites/site_123/plugins/email/test', {
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/plugins/email/test",
headers={"Authorization": f"Bearer {os.environ['UNVOP_KEY']}"},
)
data = res.json(){
"ok": true,
"message": "Building the homepage"
}