Links
The canvases that link to a canvas, as a person may see them, and the host's maintenance of the link index.
Links between canvases and backlinks (ADR-081); the index holds ids only and every answer goes through the host's ACL
- GET
/api/v1/files/{fileId}/backlinks - DELETE
/api/v1/links/files/{fileId} - POST
/api/v1/links/index - GET
/api/v1/graph
Canvases that link to this canvas
GET/api/v1/files/{fileId}/backlinks
"Linked from" (ADR-081): the canvases whose last acknowledged save links to this canvas (or, with block, to one block of it), newest save first, 20 to a page. Needs a user token: a host key gets 400 USER_TOKEN_REQUIRED. The token's user needs view on this canvas, and every linking canvas is checked with the host (POST /access/batch, else POST /access): one the user cannot open is left out and not counted, in items, total and blocks alike. Titles and paths are the host's answers; excerpts are made from the linking canvas at read time and never stored. Needs [host.flags] links. The MCP tool canvas_backlinks answers the same.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
fileIdrequired | path | string | The host's file id 1 to 1024 characters. |
block | query | string | Only links to this block id of the canvas At most 128 characters. |
kind | query | string | link, embed, relation or all (default) One of link, embed, relation, all. |
cursor | query | string | next of the previous page |
limit | query | integer | Linking canvases per page, 1-50 (default 20) 1 to 50. |
Responses
200OK: Backlinks
Headers
| Header | Description |
|---|---|
RateLimit-Policy | Token buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes |
RateLimit | The bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full> |
Body application/json
| Field | Type | Description |
|---|---|---|
fileIdrequired | string | - |
itemsrequired | array of object | At most 50 items. |
fileIdrequired | string | - |
titlerequired | string | The host's current title |
pathrequired | string | null | - |
updatedAtrequired | string | null | - |
updatedByrequired | string | null | - |
savedAtrequired | integer | null | When the link index last saw this canvas saved (ms) |
rolerequired | string | null | - |
refsrequired | array of object | - |
blockrequired | string | The block of the linking canvas that holds the link (empty: none) |
toBlockrequired | string | null | - |
toRowrequired | string | null | - |
kindrequired | string | One of link, embed, relation. |
sectionrequired | string | null | - |
excerptrequired | object | null | Plain text around the link, at most 240 characters; escape it before showing |
beforerequired | string | - |
linkrequired | string | - |
afterrequired | string | - |
totalrequired | integer | Linking canvases the reader can open (matching the filter) |
blocksrequired | object | Per block id of this canvas: linking canvases the reader can open |
nextrequired | string | null | - |
Example
{
"fileId": "doc_8812",
"items": [
{
"fileId": "doc_7710",
"title": "Q1 Platform roadmap",
"path": "Engineering / Planning",
"updatedAt": "2026-11-27T16:02:00Z",
"updatedBy": "Jonas Weber",
"savedAt": 1795800000000,
"role": "edit",
"refs": [
{
"block": "b_3fQ1",
"toBlock": "b_9kP2",
"toRow": null,
"kind": "link",
"section": "Identity",
"excerpt": {
"before": "Scope and dates live in ",
"link": "SSO rollout plan",
"after": "."
}
}
]
}
],
"total": 1,
"blocks": {
"b_9kP2": 1
},
"next": null
}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, USER_TOKEN_REQUIRED.
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, TOKEN_INVALID, TOKEN_EXPIRED.
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:scope-required",
"title": "Forbidden",
"status": 403,
"detail": "SCOPE_REQUIRED: comment_add needs canvas:comment",
"code": "SCOPE_REQUIRED"
}Codes: SCOPE_REQUIRED, ROLE_FORBIDDEN.
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, LINKS_OFF.
410Gone: CURSOR_EXPIRED: cursors last an hour; start again without one
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:file-gone",
"title": "Gone",
"status": 410,
"detail": "the file was deleted",
"code": "FILE_GONE"
}Codes: FILE_GONE.
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 |
|---|---|---|
| 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. |
| 400 | USER_TOKEN_REQUIRED | Search runs as a person, so the host's permissions apply; a host key has no person. |
| 404 | LINKS_OFF | Backlinks and the link index need [host.flags] links = true and a database (not Redis-only storage). |
| 410 | FILE_GONE | Your POST /access answered 410 (or gone) for the canvas asked about. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED, SCOPE_REQUIRED, ROLE_FORBIDDEN, RATE_LIMITED, INTERNAL.
Drop a deleted file's links from the index
DELETE/api/v1/links/files/{fileId}
For a file deleted in your application: its outgoing links leave the link index at once (otherwise they go the next time a read finds the file gone). Links to it stay until their sources are saved again; readers see them as "Deleted canvas". Host key only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
fileIdrequired | path | string | The host's file id 1 to 1024 characters. |
Responses
200OK: Removed
Headers
| Header | Description |
|---|---|
RateLimit-Policy | Token buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes |
RateLimit | The bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full> |
Body application/json
| Field | Type | Description |
|---|---|---|
fileIdrequired | string | - |
removedrequired | integer | - |
Example
{
"fileId": "doc_1",
"removed": 4
}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.
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, LINKS_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 | LINKS_OFF | Backlinks and the link index need [host.flags] links = true and a database (not Redis-only storage). |
| 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.
Backfill the link index from your files
POST/api/v1/links/index
Loads each file through your load callback (with the host key's callback bearer), writes its outgoing links to the index and drops the document; nothing else is kept. Up to 100 files per call; run it once over your files when you turn [host.flags] links on. Files that are missing, fail to load or are not .ocanvas are listed in failed with not_found, host_error or not_ocanvas. Host key only.
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
fileIdsrequired | array of string | 1 to 100 items. |
Example
{
"fileIds": [
"doc_1",
"doc_2"
]
}Responses
200OK: Indexed
Headers
| Header | Description |
|---|---|
RateLimit-Policy | Token buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes |
RateLimit | The bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full> |
Body application/json
| Field | Type | Description |
|---|---|---|
indexedrequired | array of object | - |
fileIdrequired | string | - |
linksrequired | integer | - |
droppedrequired | integer | - |
failedrequired | array of object | - |
fileIdrequired | string | - |
coderequired | string | One of not_found, host_error, not_ocanvas. |
Example
{
"indexed": [
{
"fileId": "doc_1",
"links": 12,
"dropped": 0
}
],
"failed": [
{
"fileId": "doc_2",
"code": "not_found"
}
]
}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.
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, LINKS_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 | LINKS_OFF | Backlinks and the link index need [host.flags] links = true and a database (not Redis-only storage). |
| 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.
The link graph between canvases
GET/api/v1/graph
The knowledge graph (ADR-082) from the link index. With root: the canvases around it, breadth-first in both directions to depth. Without: the most-connected canvases of your application, up to limit. Every canvas is checked with your /access/batch (else /access) before it is shown or expanded, so a canvas the user cannot open is neither a node nor a bridge between two others. truncated says the walk stopped early; total is given only when every candidate was checked. in and out count the edges in this answer. Needs a user token and [host.flags] links; 10 graphs a minute per person, 2 of them full. Cached 30 s per person and parameters. The MCP tool canvas_graph answers the same.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
root | query | string | A file id for a local graph; absent for the full graph 1 to 1024 characters. |
depth | query | integer | 1-3 around root (default 1) 1 to 3. |
kinds | query | string | Comma-separated link, embed, relation (default all) |
blocks | query | boolean | Add block nodes for link targets (default false) |
limit | query | integer | Nodes: 1-500 for a local graph (default 200), 1-2000 for the full graph (default 2000) 1 to 2000. |
Responses
200OK: The graph
Headers
| Header | Description |
|---|---|
RateLimit-Policy | Token buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes |
RateLimit | The bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full> |
Body application/json
| Field | Type | Description |
|---|---|---|
nodesrequired | array of object | At most 4000 items. |
idrequired | string | The file id, or <fileId>#<blockId> for a block node |
kindrequired | string | One of canvas, block. |
fileIdrequired | string | - |
blockId | string | - |
titlerequired | string | null | - |
pathrequired | string | null | - |
spacerequired | string | null | - |
updatedAtrequired | string | null | - |
inrequired | integer | - |
outrequired | integer | - |
edgesrequired | array of object | - |
fromrequired | string | - |
torequired | string | - |
kindrequired | string | in: a block node to its canvas One of link, embed, relation, in. |
truncatedrequired | boolean | - |
total | integer | Every readable node, given only when every candidate was checked |
Example
{
"nodes": [
{
"id": "doc_8812",
"kind": "canvas",
"fileId": "doc_8812",
"title": "SSO rollout plan",
"path": "Engineering / Identity",
"space": "Engineering",
"updatedAt": "2026-11-27T16:02:00Z",
"in": 4,
"out": 2
},
{
"id": "doc_7710",
"kind": "canvas",
"fileId": "doc_7710",
"title": "Q1 Platform roadmap",
"path": "Engineering / Planning",
"space": "Engineering",
"updatedAt": null,
"in": 0,
"out": 1
}
],
"edges": [
{
"from": "doc_7710",
"to": "doc_8812",
"kind": "link"
}
],
"truncated": 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, USER_TOKEN_REQUIRED.
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, TOKEN_INVALID, TOKEN_EXPIRED.
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:scope-required",
"title": "Forbidden",
"status": 403,
"detail": "SCOPE_REQUIRED: comment_add needs canvas:comment",
"code": "SCOPE_REQUIRED"
}Codes: SCOPE_REQUIRED, ROLE_FORBIDDEN.
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, LINKS_OFF.
410Gone: CURSOR_EXPIRED: cursors last an hour; start again without one
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:file-gone",
"title": "Gone",
"status": 410,
"detail": "the file was deleted",
"code": "FILE_GONE"
}Codes: FILE_GONE.
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 |
|---|---|---|
| 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. |
| 400 | USER_TOKEN_REQUIRED | Search runs as a person, so the host's permissions apply; a host key has no person. |
| 404 | LINKS_OFF | Backlinks and the link index need [host.flags] links = true and a database (not Redis-only storage). |
| 410 | FILE_GONE | Your POST /access answered 410 (or gone) for the canvas asked about. |
Also, like every operation on a file: API_OFF, UNAUTHENTICATED, TOKEN_INVALID, TOKEN_EXPIRED, SCOPE_REQUIRED, ROLE_FORBIDDEN, RATE_LIMITED, INTERNAL.
Last changed .