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

"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.

Credentials
Host key, or a user token with canvas:read.
Least role
view on the file (effective permission min(scope, role)).
Operation id
listBacklinks

Parameters

NameInTypeDescription
fileIdrequiredpathstringThe host's file id 1 to 1024 characters.
blockquerystringOnly links to this block id of the canvas At most 128 characters.
kindquerystringlink, embed, relation or all (default) One of link, embed, relation, all.
cursorquerystringnext of the previous page
limitqueryintegerLinking canvases per page, 1-50 (default 20) 1 to 50.

Responses

200OK: Backlinks

Headers

HeaderDescription
RateLimit-PolicyToken buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes
RateLimitThe bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full>

Body application/json

FieldTypeDescription
fileIdrequiredstring-
itemsrequiredarray of objectAt most 50 items.
fileIdrequiredstring-
titlerequiredstringThe host's current title
pathrequiredstring | null-
updatedAtrequiredstring | null-
updatedByrequiredstring | null-
savedAtrequiredinteger | nullWhen the link index last saw this canvas saved (ms)
rolerequiredstring | null-
refsrequiredarray of object-
blockrequiredstringThe block of the linking canvas that holds the link (empty: none)
toBlockrequiredstring | null-
toRowrequiredstring | null-
kindrequiredstringOne of link, embed, relation.
sectionrequiredstring | null-
excerptrequiredobject | nullPlain text around the link, at most 240 characters; escape it before showing
beforerequiredstring-
linkrequiredstring-
afterrequiredstring-
totalrequiredintegerLinking canvases the reader can open (matching the filter)
blocksrequiredobjectPer block id of this canvas: linking canvases the reader can open
nextrequiredstring | 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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

StatusCodeWhen
400BAD_INPUTThe 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.
400USER_TOKEN_REQUIREDSearch runs as a person, so the host's permissions apply; a host key has no person.
404LINKS_OFFBacklinks and the link index need [host.flags] links = true and a database (not Redis-only storage).
410FILE_GONEYour 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.

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.

Credentials
Host key, or a user token with None.
Operation id
deleteFileLinks

Parameters

NameInTypeDescription
fileIdrequiredpathstringThe host's file id 1 to 1024 characters.

Responses

200OK: Removed

Headers

HeaderDescription
RateLimit-PolicyToken buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes
RateLimitThe bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full>

Body application/json

FieldTypeDescription
fileIdrequiredstring-
removedrequiredinteger-

Example

{
  "fileId": "doc_1",
  "removed": 4
}
400Bad Request: BAD_INPUT, PATCH_INVALID, CURSOR_INVALID, IDEMPOTENCY_KEY_INVALID, …

Body application/problem+json

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

StatusCodeWhen
403HOST_KEY_REQUIREDIndex 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.
404LINKS_OFFBacklinks and the link index need [host.flags] links = true and a database (not Redis-only storage).
400BAD_INPUTThe 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.

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.

Credentials
Host key, or a user token with None.
Operation id
indexLinks

Request body

Required, application/json.

FieldTypeDescription
fileIdsrequiredarray of string1 to 100 items.

Example

{
  "fileIds": [
    "doc_1",
    "doc_2"
  ]
}

Responses

200OK: Indexed

Headers

HeaderDescription
RateLimit-PolicyToken buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes
RateLimitThe bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full>

Body application/json

FieldTypeDescription
indexedrequiredarray of object-
fileIdrequiredstring-
linksrequiredinteger-
droppedrequiredinteger-
failedrequiredarray of object-
fileIdrequiredstring-
coderequiredstringOne 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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

StatusCodeWhen
403HOST_KEY_REQUIREDIndex 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.
404LINKS_OFFBacklinks and the link index need [host.flags] links = true and a database (not Redis-only storage).
400BAD_INPUTThe 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.

Credentials
Host key, or a user token with canvas:read.
Least role
view on the file (effective permission min(scope, role)).
Operation id
getGraph

Parameters

NameInTypeDescription
rootquerystringA file id for a local graph; absent for the full graph 1 to 1024 characters.
depthqueryinteger1-3 around root (default 1) 1 to 3.
kindsquerystringComma-separated link, embed, relation (default all)
blocksquerybooleanAdd block nodes for link targets (default false)
limitqueryintegerNodes: 1-500 for a local graph (default 200), 1-2000 for the full graph (default 2000) 1 to 2000.

Responses

200OK: The graph

Headers

HeaderDescription
RateLimit-PolicyToken buckets that apply: "subject";q=<burst>;w=<seconds to refill>, and "file-writes" on writes
RateLimitThe bucket closest to empty: "<name>";r=<remaining>;t=<seconds until full>

Body application/json

FieldTypeDescription
nodesrequiredarray of objectAt most 4000 items.
idrequiredstringThe file id, or <fileId>#<blockId> for a block node
kindrequiredstringOne of canvas, block.
fileIdrequiredstring-
blockIdstring-
titlerequiredstring | null-
pathrequiredstring | null-
spacerequiredstring | null-
updatedAtrequiredstring | null-
inrequiredinteger-
outrequiredinteger-
edgesrequiredarray of object-
fromrequiredstring-
torequiredstring-
kindrequiredstringin: a block node to its canvas One of link, embed, relation, in.
truncatedrequiredboolean-
totalintegerEvery 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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

FieldTypeDescription
typerequiredstringFormat uri-reference.
titlerequiredstring-
statusrequiredinteger-
detailstring-
coderequiredstringMachine code (BLOCK_NOT_FOUND, STALE_BLOCK, ROLE_FORBIDDEN, …)
freshanySTALE_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

StatusCodeWhen
400BAD_INPUTThe 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.
400USER_TOKEN_REQUIREDSearch runs as a person, so the host's permissions apply; a host key has no person.
404LINKS_OFFBacklinks and the link index need [host.flags] links = true and a database (not Redis-only storage).
410FILE_GONEYour 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 .