[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-note\u002Fdocuments\u002Flist":3,"docs-tabs-note\u002Fdocuments\u002Flist":6},{"content":4,"lastmod":5},"\n## List documents\n\n`GET \u002Fv1\u002Fnote\u002Fdocuments`\n\n> **This method is rolling out in Bitrix24 update `note 26.700.0`.** If the method is not yet available on your Bitrix24 account, the API returns `422 METHOD_NOT_YET_AVAILABLE` with `error.release`. Calls work normally on accounts where the method is available.\n\nReturns a flat list of accessible documents, paginated with a continuation cursor. To traverse a large knowledge base in full, use this method: the document tree of a single knowledge base is not paginated.\n\nThe generic `filter` parameter is not applied by this endpoint. By default, the API preserves the previous HTTP 200 response and data, adds `Warning: 299 - \"filter is not supported on this endpoint and was ignored\"`, and records unsupported-filter use in the server log.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `limit` (query) | integer | no | Page size, from 1 to 200 |\n| `afterCursor` (query) | string | no | The previous response's `meta.nextCursor` object as URL-encoded JSON. Fields: `stream`, `collectionId`, `id` |\n\nPass the cursor fields unchanged. `collectionId` may be `null`. Stop the traversal only when `meta.nextCursor` is `null`: an empty `data` array with a non-null cursor means you must request the next page.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -G https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnote\u002Fdocuments \\\n  --data-urlencode \"limit=20\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -G https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnote\u002Fdocuments \\\n  --data-urlencode \"limit=20\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nlet cursor = null\ndo {\n  const params = new URLSearchParams({ limit: '20' })\n  if (cursor) params.set('afterCursor', JSON.stringify(cursor))\n  const res = await fetch(`https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnote\u002Fdocuments?${params}`, {\n    headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n  })\n  if (!res.ok) throw new Error(`HTTP ${res.status}`)\n  const { data, meta } = await res.json()\n  for (const document of data) console.log(document.id)\n  cursor = meta.nextCursor\n} while (cursor !== null)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nlet cursor = null\ndo {\n  const params = new URLSearchParams({ limit: '20' })\n  if (cursor) params.set('afterCursor', JSON.stringify(cursor))\n  const res = await fetch(`https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnote\u002Fdocuments?${params}`, {\n    headers: {\n      'X-Api-Key': 'YOUR_APP_KEY',\n      'Authorization': 'Bearer USER_SESSION_TOKEN',\n    },\n  })\n  if (!res.ok) throw new Error(`HTTP ${res.status}`)\n  const { data, meta } = await res.json()\n  for (const document of data) console.log(document.id)\n  cursor = meta.nextCursor\n} while (cursor !== null)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | array | Documents on this page. The array may be empty while `meta.nextCursor` is not `null` |\n| `data[].id` | number | Document identifier |\n| `data[].collectionId` | number | The knowledge base the document belongs to. List: [`GET \u002Fv1\u002Fnote\u002Fcollections`](\u002Fdocs\u002Fnote\u002Fcollections\u002Flist) |\n| `data[].parentId` | number or null | Parent document in the knowledge base tree. `null` for a top-level document |\n| `data[].title` | string | Document title |\n| `data[].position` | number | Sort order among sibling documents |\n| `data[].createdBy` | number | Creator identifier. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data[].updatedBy` | number | Identifier of the last editor. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data[].createdAt` | string | Creation date in ISO 8601 format |\n| `data[].updatedAt` | string | Last modification date in ISO 8601 format |\n| `data[].contentUpdatedAt` | string or null | Date of the last content change in ISO 8601 format, or `null`. A title-only edit does not change it |\n| `data[].state` | string | Document state. `live` for an active document |\n| `data[].isArchived` | boolean | `true` for an archived document |\n| `data[].isTrashed` | boolean | `true` for a document in the trash |\n| `data[].isOrphan` | boolean | `true` for a document that belongs to no knowledge base |\n| `meta.nextCursor` | object or null | Next-page cursor `{ stream, collectionId, id }`, or `null` at the end |\n\n## Response example\n\nA page of two documents with a continuation cursor:\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 11,\n      \"collectionId\": 9,\n      \"parentId\": null,\n      \"title\": \"Chapter 1\",\n      \"position\": 1000,\n      \"createdBy\": 1269,\n      \"updatedBy\": 1269,\n      \"createdAt\": \"2026-06-23T22:07:29+00:00\",\n      \"updatedAt\": \"2026-06-23T22:07:29+00:00\",\n      \"contentUpdatedAt\": null,\n      \"state\": \"live\",\n      \"isArchived\": false,\n      \"isTrashed\": false,\n      \"isOrphan\": false\n    },\n    {\n      \"id\": 5,\n      \"collectionId\": 7,\n      \"parentId\": null,\n      \"title\": \"Chapter 1 (updated)\",\n      \"position\": 1000,\n      \"createdBy\": 1269,\n      \"updatedBy\": 1269,\n      \"createdAt\": \"2026-06-22T12:17:40+00:00\",\n      \"updatedAt\": \"2026-07-06T12:03:47+00:00\",\n      \"contentUpdatedAt\": null,\n      \"state\": \"live\",\n      \"isArchived\": false,\n      \"isTrashed\": false,\n      \"isOrphan\": false\n    }\n  ],\n  \"meta\": {\n    \"nextCursor\": { \"stream\": \"collections\", \"collectionId\": 7, \"id\": 5 }\n  }\n}\n```\n\n## Error response example\n\n400 — `limit` is outside the range from 1 to 200:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"`limit` must be an integer between 1 and 200\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 200 | `Warning: 299` | The filter is ignored by default; previous data is preserved and the warning is sent in the `Warning` header. |\n| 400 (strict mode only) | `UNSUPPORTED_FILTER` | The server mode is disabled by default; until it is enabled, the endpoint preserves HTTP 200 and the previous data. |\n| 400 | `INVALID_PARAMS` | `limit` outside 1…200 or malformed `afterCursor` |\n| 403 | `SCOPE_DENIED` | The key lacks the `note` scope |\n| 401 | `TOKEN_MISSING` | The API key has no tokens configured |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Search documents](\u002Fdocs\u002Fnote\u002Fdocuments\u002Fsearch)\n- [Document tree](\u002Fdocs\u002Fnote\u002Fcollections\u002Ftree)\n- [Documents](\u002Fdocs\u002Fnote\u002Fdocuments)\n","2026-11-12",{},1795415482720]