Plugins
The organisation's plugins: browse the registries, install with consent, updates, roll back, policy and requests (ADR-083).
Plugins for an organisation (ADR-083): browse the operator's registries, install with consent, updates, roll back, policy and requests; off unless the operator sets OC_PLUGINS_CONFIG and the host [host.flags] plugins
- GET
/api/v1/plugins - GET
/api/v1/plugins/catalog - GET
/api/v1/plugins/catalog/{registry}/{pluginId} - POST
/api/v1/plugins/install - POST
/api/v1/plugins/upload - POST
/api/v1/plugins/refresh - GET
/api/v1/plugins/policy - PUT
/api/v1/plugins/policy - GET
/api/v1/plugins/requests - POST
/api/v1/plugins/requests - POST
/api/v1/plugins/requests/{requestId}/decline - POST
/api/v1/plugins/requests/{requestId}/close - PATCH
/api/v1/plugins/{pluginId} - DELETE
/api/v1/plugins/{pluginId} - POST
/api/v1/plugins/{pluginId}/update - POST
/api/v1/plugins/{pluginId}/rollback
The organisation's plugins
GET/api/v1/plugins
The operator's limits (registries, server code, uploads), the host's policy, every installed plugin with its version, state and any update that waits for approval (with the permissions it adds), and each registry's index (version, expiry, last error). Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
adminrequired | boolean | - |
operator | object | - |
policyrequired | PluginPolicy | A host's plugin policy (docs/38 §4.4) |
install | string | One of admins, request, anyone-allowed-list. |
allowed | array of string | - |
sourcesOff | array of string | - |
server | boolean | - |
network | array of string | - |
ceilings | object | - |
members | string | One of never, ask, allow. |
connections | string | One of never, ask, allow. |
autoUpdate | boolean | - |
installedrequired | array of PluginInstalled | - |
idrequired | string | - |
registry | string | - |
versionrequired | string | - |
previous | string | - |
enabled | boolean | - |
pinned | boolean | - |
staterequired | string | One of active, revoked, refused. |
reason | string | - |
approved | array of string | - |
update | any | - |
indexesrequired | array of object | - |
checkedAt | integer | - |
openRequests | integer | - |
Other members may appear; ignore the ones you do not know.
Example
{
"admin": true,
"operator": {
"serverCode": false,
"uploads": true
},
"policy": {
"install": "request",
"allowed": [],
"sourcesOff": [],
"server": true,
"network": [
"https://api.github.com"
],
"ceilings": {
"members": "ask",
"connections": "ask"
},
"autoUpdate": true
},
"installed": [
{
"id": "acme.okr",
"registry": "marketplace",
"version": "1.0.1",
"previous": "1.0.0",
"enabled": true,
"pinned": false,
"state": "active",
"reason": "",
"approved": [],
"update": null
}
],
"indexes": [
{
"registry": "marketplace",
"version": 2184,
"expires": 1796497650,
"fresh": true,
"error": null
}
],
"checkedAt": 1795892850,
"openRequests": 1
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Browse the registries
GET/api/v1/plugins/catalog
The newest compatible version of every plugin in every registry the operator connected, with its standing for this host (ok, approval with the permissions an admin must accept, or blocked with the reason and who can change it). Blocked plugins stay listed. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q | query | string | Search in id, title and summary At most 200 characters. |
Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
itemsrequired | array of PluginItem | - |
idrequired | string | - |
versionrequired | string | - |
titlerequired | string | - |
summary | string | - |
registryrequired | string | - |
registryTitle | string | - |
verified | boolean | - |
kinds | array of string | - |
permissions | PluginPermissions | What a plugin may do (docs/38 §4.4); also view.rows and files.input (booleans) |
canvas | string | One of none, read, write. |
members | boolean | - |
network | array of string | - |
server | boolean | - |
connections | array of string | - |
standingrequired | PluginStanding | Whether the plugin may be installed here; blocked says why and who can change it |
staterequired | string | One of ok, approval, blocked. |
code | string | - |
reason | string | - |
who | string | - |
needsrequired | array of string | - |
actionrequired | string | One of install, request, requested, ask-admin, installed, blocked. |
adminrequired | boolean | - |
install | string | - |
Example
{
"items": [
{
"id": "acme.okr",
"version": "1.0.0",
"title": "OKR goals",
"summary": "Objectives and key results.",
"registry": "marketplace",
"registryTitle": "OpenCanvas Marketplace",
"verified": true,
"kinds": [
"block"
],
"permissions": {
"canvas": "none",
"view.rows": false,
"members": false,
"network": [],
"server": false,
"connections": [],
"files.input": false
},
"standing": {
"state": "ok",
"needs": []
},
"action": "install"
}
],
"admin": true,
"install": "request"
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
A plugin's details
GET/api/v1/plugins/catalog/{registry}/{pluginId}
Every version (with revocations), the publisher and its key ids, the index it is in (version, expiry, required signatures) and, once installed here, the signature verdict and the files in the package. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
registryrequired | path | string | The registry name from the operator's configuration At most 64 characters. |
pluginIdrequired | path | string | The plugin id (publisher.name) At most 100 characters. |
Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
idrequired | string | - |
versionrequired | string | - |
titlerequired | string | - |
summary | string | - |
registryrequired | string | - |
registryTitle | string | - |
verified | boolean | - |
kinds | array of string | - |
permissions | PluginPermissions | What a plugin may do (docs/38 §4.4); also view.rows and files.input (booleans) |
canvas | string | One of none, read, write. |
members | boolean | - |
network | array of string | - |
server | boolean | - |
connections | array of string | - |
standingrequired | PluginStanding | Whether the plugin may be installed here; blocked says why and who can change it |
staterequired | string | One of ok, approval, blocked. |
code | string | - |
reason | string | - |
who | string | - |
needsrequired | array of string | - |
actionrequired | string | One of install, request, requested, ask-admin, installed, blocked. |
Other members may appear; ignore the ones you do not know.
Example
{
"id": "acme.okr",
"version": "1.0.0",
"title": "OKR goals",
"summary": "Objectives and key results.",
"registry": "marketplace",
"registryTitle": "OpenCanvas Marketplace",
"verified": true,
"kinds": [
"block"
],
"permissions": {
"canvas": "none",
"view.rows": false,
"members": false,
"network": [],
"server": false,
"connections": [],
"files.input": false
},
"standing": {
"state": "ok",
"needs": []
},
"action": "install"
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Install a plugin for the organisation
POST/api/v1/plugins/install
Downloads (or takes an uploaded copy of) the version, checks every file against its manifest, both signatures against the registry's signed index, engines against this server and the policy, then installs it for everyone in the organisation. accept must list every permission the package asks for, or the answer is 409 with the list. requestId closes that request as approved. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
registryrequired | string | - |
idrequired | string | - |
version | string | - |
accept | array of string | - |
requestId | string | - |
Example
{
"registry": "marketplace",
"id": "acme.okr",
"accept": [
"network:https://okr.acme.example"
]
}Responses
200OK
Body application/json
PluginResult
Example
{
"installed": {
"id": "acme.okr",
"version": "1.0.0",
"registry": "marketplace",
"previous": ""
},
"kinds": [
"block"
]
}400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:bad-input",
"title": "Bad Request",
"status": 400,
"detail": "rows[0].values must be an object",
"code": "BAD_INPUT"
}Codes: BAD_INPUT.
401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED, PLUGIN_SOURCE_OFF, PLUGIN_SERVER_OFF, PLUGIN_CEILING, PLUGIN_UNSIGNED, PLUGIN_REVOKED, PLUGIN_INCOMPATIBLE.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
409Conflict: CONFLICT, CONFIRMATION_REQUIRED, IDEMPOTENCY_IN_PROGRESS (with Retry-After)
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-consent-required",
"title": "Conflict",
"status": 409,
"detail": "OKR goals asks for permissions that were not accepted: network:https://okr.acme.example",
"code": "PLUGIN_CONSENT_REQUIRED"
}Codes: PLUGIN_CONSENT_REQUIRED.
422Unprocessable Entity: IDEMPOTENCY_KEY_REUSED: the Idempotency-Key was used with a different request
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-registry-unavailable",
"title": "Unprocessable Entity",
"status": 422,
"detail": "no current signed index from OpenCanvas Marketplace",
"code": "PLUGIN_REGISTRY_UNAVAILABLE"
}Codes: PLUGIN_REGISTRY_UNAVAILABLE, PLUGIN_TAMPERED, PLUGIN_INVALID, PLUGIN_UNSIGNED, PLUGIN_UNKNOWN_KEY, PLUGIN_BAD_SIGNATURE, PLUGIN_REVOKED, PLUGIN_NOT_IN_INDEX, PLUGIN_INCOMPATIBLE.
503Service Unavailable: UNAVAILABLE, ROOM_UNAVAILABLE, with Retry-After
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-registry-unavailable",
"title": "Service Unavailable",
"status": 503,
"detail": "no current signed index from OpenCanvas Marketplace",
"code": "PLUGIN_REGISTRY_UNAVAILABLE"
}Codes: PLUGIN_REGISTRY_UNAVAILABLE, INDEX_EXPIRED.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 400 | BAD_INPUT | The request is not what the operation takes: the body is not a JSON object, a field is missing or has the wrong type, an op, mode, format or event type is unknown, or fileId is longer than 1,024 bytes. detail says which. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
| 409 | PLUGIN_CONSENT_REQUIRED | accept must list every permission the package asks for (flat names such as canvas.write, network:https://…). The answer's permissions is the full list to show and accept. |
| 403 | PLUGIN_SOURCE_OFF | The registry (or uploads) is switched off by the host's policy or the operator. |
| 403 | PLUGIN_SERVER_OFF | The plugin has server parts, and the operator ([plugins] server_code) or the host's policy does not allow them. who says which. |
| 403 | PLUGIN_CEILING | The plugin asks for a permission above the operator's or the host's ceiling. who says which. |
| 503, 422 | PLUGIN_REGISTRY_UNAVAILABLE | The registry's signed index has not been fetched yet, or the package could not be downloaded. |
| 503 | INDEX_EXPIRED | The registry's signed index is past its expires (it is refreshed at least weekly); installed plugins keep running. |
| 422 | PLUGIN_TAMPERED | A file differs from the hash in the manifest, a file is not named in it or is missing, or the package differs from the version in the index. |
| 422 | PLUGIN_INVALID | The package is not a well-formed .ocplugin: zip, manifest, paths, sizes, icon or screenshots. |
| 422, 403 | PLUGIN_UNSIGNED | A required signature is missing. Unsigned packages come only from a private registry the operator names with allow_unsigned. |
| 422 | PLUGIN_UNKNOWN_KEY | Signed by a key that is not registered for the publisher (or is not the marketplace's). |
| 422 | PLUGIN_BAD_SIGNATURE | A signature does not verify. |
| 422, 403 | PLUGIN_REVOKED | The version, the plugin or its publisher is revoked in the signed index; it cannot be installed, pinned or rolled back to. |
| 422 | PLUGIN_NOT_IN_INDEX | The package is signed but not listed in the registry's current index (for uploads: in no configured registry). |
| 422, 403 | PLUGIN_INCOMPATIBLE | engines.opencanvas does not include this server's version. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Upload a signed package
POST/api/v1/plugins/upload
For servers without access to the registry: an admin uploads an .ocplugin. It must be listed, with the same hash, in the index of a registry the operator configured (an offline bundle is a file:// registry), and pass the same checks as a download. It is kept for an install. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Request body
Required, application/octet-stream.
The file itself, as the raw body.
Example
<.ocplugin bytes>Responses
200OK
Body application/json
PluginResult
Example
{
"registry": "marketplace",
"id": "acme.okr",
"version": "1.0.0",
"permissions": []
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED, PLUGIN_SOURCE_OFF, PLUGIN_UNSIGNED, PLUGIN_REVOKED, PLUGIN_INCOMPATIBLE.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF.
422Unprocessable Entity: IDEMPOTENCY_KEY_REUSED: the Idempotency-Key was used with a different request
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-tampered",
"title": "Unprocessable Entity",
"status": 422,
"detail": "blocks/okr/block.js does not match its hash in plugin.json (changed after signing)",
"code": "PLUGIN_TAMPERED"
}Codes: PLUGIN_TAMPERED, PLUGIN_INVALID, PLUGIN_UNSIGNED, PLUGIN_UNKNOWN_KEY, PLUGIN_BAD_SIGNATURE, PLUGIN_REVOKED, PLUGIN_NOT_IN_INDEX, PLUGIN_INCOMPATIBLE.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 403 | PLUGIN_SOURCE_OFF | The registry (or uploads) is switched off by the host's policy or the operator. |
| 422 | PLUGIN_TAMPERED | A file differs from the hash in the manifest, a file is not named in it or is missing, or the package differs from the version in the index. |
| 422 | PLUGIN_INVALID | The package is not a well-formed .ocplugin: zip, manifest, paths, sizes, icon or screenshots. |
| 422, 403 | PLUGIN_UNSIGNED | A required signature is missing. Unsigned packages come only from a private registry the operator names with allow_unsigned. |
| 422 | PLUGIN_UNKNOWN_KEY | Signed by a key that is not registered for the publisher (or is not the marketplace's). |
| 422 | PLUGIN_BAD_SIGNATURE | A signature does not verify. |
| 422, 403 | PLUGIN_REVOKED | The version, the plugin or its publisher is revoked in the signed index; it cannot be installed, pinned or rolled back to. |
| 422 | PLUGIN_NOT_IN_INDEX | The package is signed but not listed in the registry's current index (for uploads: in no configured registry). |
| 422, 403 | PLUGIN_INCOMPATIBLE | engines.opencanvas does not include this server's version. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Check the registries now
POST/api/v1/plugins/refresh
Fetches every registry's signed index now (as the hourly check does), applies updates that need no approval, switches revoked plugins off, and answers the overview. An index older than the accepted one, or past its expiry, is refused; the reason is in indexes[].error. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
adminrequired | boolean | - |
operator | object | - |
policyrequired | PluginPolicy | A host's plugin policy (docs/38 §4.4) |
install | string | One of admins, request, anyone-allowed-list. |
allowed | array of string | - |
sourcesOff | array of string | - |
server | boolean | - |
network | array of string | - |
ceilings | object | - |
members | string | One of never, ask, allow. |
connections | string | One of never, ask, allow. |
autoUpdate | boolean | - |
installedrequired | array of PluginInstalled | - |
idrequired | string | - |
registry | string | - |
versionrequired | string | - |
previous | string | - |
enabled | boolean | - |
pinned | boolean | - |
staterequired | string | One of active, revoked, refused. |
reason | string | - |
approved | array of string | - |
update | any | - |
indexesrequired | array of object | - |
checkedAt | integer | - |
openRequests | integer | - |
Other members may appear; ignore the ones you do not know.
Example
{
"admin": true,
"operator": {
"serverCode": false,
"uploads": true
},
"policy": {
"install": "request",
"allowed": [],
"sourcesOff": [],
"server": true,
"network": [
"https://api.github.com"
],
"ceilings": {
"members": "ask",
"connections": "ask"
},
"autoUpdate": true
},
"installed": [
{
"id": "acme.okr",
"registry": "marketplace",
"version": "1.0.1",
"previous": "1.0.0",
"enabled": true,
"pinned": false,
"state": "active",
"reason": "",
"approved": [],
"update": null
}
],
"indexes": [
{
"registry": "marketplace",
"version": 2184,
"expires": 1796497650,
"fresh": true,
"error": null
}
],
"checkedAt": 1795892850,
"openRequests": 1
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
The organisation's plugin policy
GET/api/v1/plugins/policy
Who can install, sources switched off, server plugins, allowed network origins, permission ceilings and automatic updates. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
policyrequired | PluginPolicy | A host's plugin policy (docs/38 §4.4) |
install | string | One of admins, request, anyone-allowed-list. |
allowed | array of string | - |
sourcesOff | array of string | - |
server | boolean | - |
network | array of string | - |
ceilings | object | - |
members | string | One of never, ask, allow. |
connections | string | One of never, ask, allow. |
autoUpdate | boolean | - |
Example
{
"policy": {
"install": "request",
"allowed": [],
"sourcesOff": [],
"server": true,
"network": [
"https://api.github.com"
],
"ceilings": {
"members": "ask",
"connections": "ask"
},
"autoUpdate": true
}
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Set the plugin policy
PUT/api/v1/plugins/policy
Replaces the host's policy, within the operator's limits (signatures and server code are the operator's). Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
install | string | One of admins, request, anyone-allowed-list. |
allowed | array of string | - |
sourcesOff | array of string | - |
server | boolean | - |
network | array of string | - |
ceilings | object | - |
members | string | One of never, ask, allow. |
connections | string | One of never, ask, allow. |
autoUpdate | boolean | - |
Example
{
"install": "request",
"allowed": [],
"sourcesOff": [],
"server": true,
"network": [
"https://api.github.com"
],
"ceilings": {
"members": "ask",
"connections": "ask"
},
"autoUpdate": true
}Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
policyrequired | PluginPolicy | A host's plugin policy (docs/38 §4.4) |
install | string | One of admins, request, anyone-allowed-list. |
allowed | array of string | - |
sourcesOff | array of string | - |
server | boolean | - |
network | array of string | - |
ceilings | object | - |
members | string | One of never, ask, allow. |
connections | string | One of never, ask, allow. |
autoUpdate | boolean | - |
Example
{
"policy": {
"install": "request",
"allowed": [],
"sourcesOff": [],
"server": true,
"network": [
"https://api.github.com"
],
"ceilings": {
"members": "ask",
"connections": "ask"
},
"autoUpdate": true
}
}400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:bad-input",
"title": "Bad Request",
"status": 400,
"detail": "rows[0].values must be an object",
"code": "BAD_INPUT"
}Codes: BAD_INPUT.
401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 400 | BAD_INPUT | The request is not what the operation takes: the body is not a JSON object, a field is missing or has the wrong type, an op, mode, format or event type is unknown, or fileId is longer than 1,024 bytes. detail says which. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Requests for plugins
GET/api/v1/plugins/requests
Requests from people, newest first (kept 90 days). Admins see all; a person sees their own. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
itemsrequired | array of PluginRequest | - |
idrequired | string | - |
registry | string | - |
pluginIdrequired | string | - |
user | object | - |
reason | string | - |
staterequired | string | One of open, approved, declined, closed. |
answer | string | - |
createdAt | integer | - |
Example
{
"items": [
{
"id": "01JD7Q3S6Z5N9K2V4X8B1C0M7R",
"registry": "marketplace",
"pluginId": "acme.okr",
"user": {
"id": "u_2",
"name": "Lea Fischer"
},
"reason": "Quarterly goals",
"state": "open",
"answer": "",
"createdAt": 1795892850,
"closedAt": 0
}
]
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Request a plugin
POST/api/v1/plugins/requests
A person asks the organisation's admins for a plugin, with an optional reason (at most 500 characters). Asking again answers the open request. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
registryrequired | string | - |
idrequired | string | - |
reason | string | At most 500 characters. |
Example
{
"registry": "marketplace",
"id": "acme.okr",
"reason": "Quarterly goals"
}Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
requestrequired | PluginRequest | - |
idrequired | string | - |
registry | string | - |
pluginIdrequired | string | - |
user | object | - |
reason | string | - |
staterequired | string | One of open, approved, declined, closed. |
answer | string | - |
createdAt | integer | - |
Example
{
"request": {
"id": "01JD7Q3S6Z5N9K2V4X8B1C0M7R",
"registry": "marketplace",
"pluginId": "acme.okr",
"user": {
"id": "u_2",
"name": "Lea Fischer"
},
"reason": "Quarterly goals",
"state": "open",
"answer": "",
"createdAt": 1795892850,
"closedAt": 0
}
}400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:bad-input",
"title": "Bad Request",
"status": 400,
"detail": "rows[0].values must be an object",
"code": "BAD_INPUT"
}Codes: BAD_INPUT.
401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED, PLUGIN_UNSIGNED, PLUGIN_SERVER_OFF, PLUGIN_CEILING, PLUGIN_INCOMPATIBLE, PLUGIN_REVOKED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
429Too Many Requests: RATE_LIMITED, with Retry-After, RateLimit-Policy and RateLimit
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:rate-limited",
"title": "Too Many Requests",
"status": 429,
"detail": "too many requests (subject limit); retry later",
"code": "RATE_LIMITED"
}Codes: RATE_LIMITED.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 400 | BAD_INPUT | The request is not what the operation takes: the body is not a JSON object, a field is missing or has the wrong type, an op, mode, format or event type is unknown, or fileId is longer than 1,024 bytes. detail says which. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
| 422, 403 | PLUGIN_UNSIGNED | A required signature is missing. Unsigned packages come only from a private registry the operator names with allow_unsigned. |
| 403 | PLUGIN_SERVER_OFF | The plugin has server parts, and the operator ([plugins] server_code) or the host's policy does not allow them. who says which. |
| 403 | PLUGIN_CEILING | The plugin asks for a permission above the operator's or the host's ceiling. who says which. |
| 422, 403 | PLUGIN_INCOMPATIBLE | engines.opencanvas does not include this server's version. |
| 422, 403 | PLUGIN_REVOKED | The version, the plugin or its publisher is revoked in the signed index; it cannot be installed, pinned or rolled back to. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL, RATE_LIMITED.
Decline a request
POST/api/v1/plugins/requests/{requestId}/decline
Declines with an optional reason the person sees. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
requestIdrequired | path | string | The request id At most 32 characters. |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
reason | string | At most 500 characters. |
Example
{
"reason": "We use the built-in board for this."
}Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
requestrequired | PluginRequest | - |
idrequired | string | - |
registry | string | - |
pluginIdrequired | string | - |
user | object | - |
reason | string | - |
staterequired | string | One of open, approved, declined, closed. |
answer | string | - |
createdAt | integer | - |
Example
{
"request": {
"id": "01JD7Q3S6Z5N9K2V4X8B1C0M7R",
"registry": "marketplace",
"pluginId": "acme.okr",
"user": {
"id": "u_2",
"name": "Lea Fischer"
},
"reason": "Quarterly goals",
"state": "declined",
"answer": "",
"createdAt": 1795892850,
"closedAt": 0
}
}400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:bad-input",
"title": "Bad Request",
"status": 400,
"detail": "rows[0].values must be an object",
"code": "BAD_INPUT"
}Codes: BAD_INPUT.
401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
| 400 | BAD_INPUT | The request is not what the operation takes: the body is not a JSON object, a field is missing or has the wrong type, an op, mode, format or event type is unknown, or fileId is longer than 1,024 bytes. detail says which. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Close a request
POST/api/v1/plugins/requests/{requestId}/close
Closes a request (for example when the plugin is already installed). Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
requestIdrequired | path | string | The request id At most 32 characters. |
Responses
200OK
Body application/json
| Field | Type | Description |
|---|---|---|
requestrequired | PluginRequest | - |
idrequired | string | - |
registry | string | - |
pluginIdrequired | string | - |
user | object | - |
reason | string | - |
staterequired | string | One of open, approved, declined, closed. |
answer | string | - |
createdAt | integer | - |
Example
{
"request": {
"id": "01JD7Q3S6Z5N9K2V4X8B1C0M7R",
"registry": "marketplace",
"pluginId": "acme.okr",
"user": {
"id": "u_2",
"name": "Lea Fischer"
},
"reason": "Quarterly goals",
"state": "closed",
"answer": "",
"createdAt": 1795892850,
"closedAt": 0
}
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Switch a plugin on or off, pin or unpin
PATCH/api/v1/plugins/{pluginId}
Off keeps the plugin installed but unused: canvases show their saved copies, as for a missing block package. A pinned version never updates on its own. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
pluginIdrequired | path | string | The plugin id (publisher.name) At most 100 characters. |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
enabled | boolean | - |
pinned | boolean | - |
Example
{
"enabled": false
}Responses
200OK
Body application/json
PluginResult
Example
{
"installed": {
"id": "acme.okr",
"version": "1.0.1",
"enabled": false,
"pinned": false
}
}400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:bad-input",
"title": "Bad Request",
"status": 400,
"detail": "rows[0].values must be an object",
"code": "BAD_INPUT"
}Codes: BAD_INPUT.
401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 400 | BAD_INPUT | The request is not what the operation takes: the body is not a JSON object, a field is missing or has the wrong type, an op, mode, format or event type is unknown, or fileId is longer than 1,024 bytes. detail says which. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Uninstall a plugin
DELETE/api/v1/plugins/{pluginId}
Removes the plugin for the organisation. Canvases keep what it made (saved fallbacks). Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
pluginIdrequired | path | string | The plugin id (publisher.name) At most 100 characters. |
Responses
200OK
Body application/json
PluginResult
Example
{
"removed": "acme.okr"
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Approve an update
POST/api/v1/plugins/{pluginId}/update
Updates an installed plugin to version, typically one that waits for approval because it adds a permission or is a new major version. accept must list every permission of the new version. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
pluginIdrequired | path | string | The plugin id (publisher.name) At most 100 characters. |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
versionrequired | string | - |
accept | array of string | - |
Example
{
"version": "1.1.0",
"accept": [
"network:https://uploads.acme.example"
]
}Responses
200OK
Body application/json
PluginResult
Example
{
"installed": {
"id": "acme.okr",
"version": "1.1.0",
"registry": "marketplace",
"previous": "1.0.1"
},
"kinds": [
"block"
]
}400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:bad-input",
"title": "Bad Request",
"status": 400,
"detail": "rows[0].values must be an object",
"code": "BAD_INPUT"
}Codes: BAD_INPUT.
401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED, PLUGIN_SERVER_OFF, PLUGIN_CEILING, PLUGIN_UNSIGNED, PLUGIN_REVOKED, PLUGIN_INCOMPATIBLE.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
409Conflict: CONFLICT, CONFIRMATION_REQUIRED, IDEMPOTENCY_IN_PROGRESS (with Retry-After)
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-consent-required",
"title": "Conflict",
"status": 409,
"detail": "OKR goals asks for permissions that were not accepted: network:https://okr.acme.example",
"code": "PLUGIN_CONSENT_REQUIRED"
}Codes: PLUGIN_CONSENT_REQUIRED.
422Unprocessable Entity: IDEMPOTENCY_KEY_REUSED: the Idempotency-Key was used with a different request
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-registry-unavailable",
"title": "Unprocessable Entity",
"status": 422,
"detail": "no current signed index from OpenCanvas Marketplace",
"code": "PLUGIN_REGISTRY_UNAVAILABLE"
}Codes: PLUGIN_REGISTRY_UNAVAILABLE, PLUGIN_TAMPERED, PLUGIN_INVALID, PLUGIN_UNSIGNED, PLUGIN_UNKNOWN_KEY, PLUGIN_BAD_SIGNATURE, PLUGIN_REVOKED, PLUGIN_NOT_IN_INDEX, PLUGIN_INCOMPATIBLE.
503Service Unavailable: UNAVAILABLE, ROOM_UNAVAILABLE, with Retry-After
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-registry-unavailable",
"title": "Service Unavailable",
"status": 503,
"detail": "no current signed index from OpenCanvas Marketplace",
"code": "PLUGIN_REGISTRY_UNAVAILABLE"
}Codes: PLUGIN_REGISTRY_UNAVAILABLE, INDEX_EXPIRED.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 400 | BAD_INPUT | The request is not what the operation takes: the body is not a JSON object, a field is missing or has the wrong type, an op, mode, format or event type is unknown, or fileId is longer than 1,024 bytes. detail says which. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
| 409 | PLUGIN_CONSENT_REQUIRED | accept must list every permission the package asks for (flat names such as canvas.write, network:https://…). The answer's permissions is the full list to show and accept. |
| 403 | PLUGIN_SERVER_OFF | The plugin has server parts, and the operator ([plugins] server_code) or the host's policy does not allow them. who says which. |
| 403 | PLUGIN_CEILING | The plugin asks for a permission above the operator's or the host's ceiling. who says which. |
| 503, 422 | PLUGIN_REGISTRY_UNAVAILABLE | The registry's signed index has not been fetched yet, or the package could not be downloaded. |
| 503 | INDEX_EXPIRED | The registry's signed index is past its expires (it is refreshed at least weekly); installed plugins keep running. |
| 422 | PLUGIN_TAMPERED | A file differs from the hash in the manifest, a file is not named in it or is missing, or the package differs from the version in the index. |
| 422 | PLUGIN_INVALID | The package is not a well-formed .ocplugin: zip, manifest, paths, sizes, icon or screenshots. |
| 422, 403 | PLUGIN_UNSIGNED | A required signature is missing. Unsigned packages come only from a private registry the operator names with allow_unsigned. |
| 422 | PLUGIN_UNKNOWN_KEY | Signed by a key that is not registered for the publisher (or is not the marketplace's). |
| 422 | PLUGIN_BAD_SIGNATURE | A signature does not verify. |
| 422, 403 | PLUGIN_REVOKED | The version, the plugin or its publisher is revoked in the signed index; it cannot be installed, pinned or rolled back to. |
| 422 | PLUGIN_NOT_IN_INDEX | The package is signed but not listed in the registry's current index (for uploads: in no configured registry). |
| 422, 403 | PLUGIN_INCOMPATIBLE | engines.opencanvas does not include this server's version. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Roll back to the previous version
POST/api/v1/plugins/{pluginId}/rollback
Returns to the version before the last update (kept on the server) and pins it, so it does not update again on its own. A revoked version cannot be rolled back to. Host key only; the editor's marketplace calls the same operation under /v1/plugins with its session.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
pluginIdrequired | path | string | The plugin id (publisher.name) At most 100 characters. |
Responses
200OK
Body application/json
PluginResult
Example
{
"installed": {
"id": "acme.okr",
"version": "1.0.1",
"previous": "1.1.0",
"pinned": true
}
}401Unauthorized: UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:unauthenticated",
"title": "Unauthorized",
"status": 401,
"detail": "missing or wrong credentials",
"code": "UNAUTHENTICATED"
}Codes: UNAUTHENTICATED.
403Forbidden: ROLE_FORBIDDEN, SCOPE_REQUIRED, FILES_REQUIRED
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:host-key-required",
"title": "Forbidden",
"status": 403,
"detail": "this operation needs the host key",
"code": "HOST_KEY_REQUIRED"
}Codes: HOST_KEY_REQUIRED, PLUGIN_ADMIN_REQUIRED, PLUGIN_UNSIGNED, PLUGIN_REVOKED, PLUGIN_INCOMPATIBLE.
404Not Found: API_OFF, BLOCK_NOT_FOUND, NOT_FOUND, …
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:api-off",
"title": "Not Found",
"status": 404,
"detail": "the API is not enabled for this host ([host.flags] api_v1)",
"code": "API_OFF"
}Codes: API_OFF, PLUGINS_OFF, PLUGIN_NOT_FOUND.
409Conflict: CONFLICT, CONFIRMATION_REQUIRED, IDEMPOTENCY_IN_PROGRESS (with Retry-After)
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-no-rollback",
"title": "Conflict",
"status": 409,
"detail": "there is no earlier version to roll back to",
"code": "PLUGIN_NO_ROLLBACK"
}Codes: PLUGIN_NO_ROLLBACK.
422Unprocessable Entity: IDEMPOTENCY_KEY_REUSED: the Idempotency-Key was used with a different request
Body application/problem+json
| Field | Type | Description |
|---|---|---|
typerequired | string | Format uri-reference. |
titlerequired | string | - |
statusrequired | integer | - |
detail | string | - |
coderequired | string | Machine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …) |
fresh | any | STALE_BLOCK: the current state to retry against |
Other members may appear; ignore the ones you do not know.
Example
{
"type": "urn:opencanvas:problem:plugin-tampered",
"title": "Unprocessable Entity",
"status": 422,
"detail": "blocks/okr/block.js does not match its hash in plugin.json (changed after signing)",
"code": "PLUGIN_TAMPERED"
}Codes: PLUGIN_TAMPERED, PLUGIN_INVALID, PLUGIN_UNSIGNED, PLUGIN_UNKNOWN_KEY, PLUGIN_BAD_SIGNATURE, PLUGIN_REVOKED, PLUGIN_NOT_IN_INDEX, PLUGIN_INCOMPATIBLE.
Errors
| Status | Code | When |
|---|---|---|
| 403 | HOST_KEY_REQUIRED | Index maintenance (DELETE /api/v1/links/files/{fileId}, POST /api/v1/links/index) is for your application, with the host key; a person's token is refused. |
| 404 | PLUGINS_OFF | The operator has no [plugins] configuration, or the host has not set [host.flags] plugins = true. |
| 403 | PLUGIN_ADMIN_REQUIRED | Installing, updating, removing, the policy and answering requests are for plugin admins: the host key, or a launch token with perms.plugins: "admin". People may request (unless the policy is "Only admins"), or install plugins on the allowed list in "anyone" mode. |
| 404 | PLUGIN_NOT_FOUND | No such registry, plugin, version, install or request for this host. |
| 409 | PLUGIN_NO_ROLLBACK | Roll back needs the version before the last update, still on this server. |
| 422 | PLUGIN_TAMPERED | A file differs from the hash in the manifest, a file is not named in it or is missing, or the package differs from the version in the index. |
| 422 | PLUGIN_INVALID | The package is not a well-formed .ocplugin: zip, manifest, paths, sizes, icon or screenshots. |
| 422, 403 | PLUGIN_UNSIGNED | A required signature is missing. Unsigned packages come only from a private registry the operator names with allow_unsigned. |
| 422 | PLUGIN_UNKNOWN_KEY | Signed by a key that is not registered for the publisher (or is not the marketplace's). |
| 422 | PLUGIN_BAD_SIGNATURE | A signature does not verify. |
| 422, 403 | PLUGIN_REVOKED | The version, the plugin or its publisher is revoked in the signed index; it cannot be installed, pinned or rolled back to. |
| 422 | PLUGIN_NOT_IN_INDEX | The package is signed but not listed in the registry's current index (for uploads: in no configured registry). |
| 422, 403 | PLUGIN_INCOMPATIBLE | engines.opencanvas does not include this server's version. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, INTERNAL.
Last changed .