[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Ffiles\u002Ffulltext-search":3,"docs-tabs-entities\u002Ffiles\u002Ffulltext-search":6},{"content":4,"lastmod":5},"## Full-text Disk search\n\n`POST \u002Fv1\u002Ffiles\u002Ffulltext-search`\n\nSearches the index across all accessible Disk storage. [Single-folder search](\u002Fdocs\u002Fentities\u002Ffiles\u002Fsearch) accepts filters, while this route accepts a search string. Requires the `disk` scope. READONLY keys are allowed.\n\n## Request fields\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `query` | string | yes | Required. Whitespace is collapsed and trimmed, then length must be 3..255 characters |\n| `type` | string | no | `file`, `folder`, `all`. Default `file` |\n| `filter.storageId` | number | no | Positive integer ID from the [storage list](\u002Fdocs\u002Fentities\u002Fstorages\u002Flist) |\n| `filter.folderId` | number | no | Positive integer ID from the [folder list](\u002Fdocs\u002Fentities\u002Ffolders\u002Flist) |\n| `filter.fileType` | string or array | no | Only with `type=file`: `document`, `image`, `video`, `audio`, `archive`, `pdf`, `vector_image`, `board`, `known`, `unknown`. An array must not be empty |\n| `offset` | number | no | Integer 0..1000, default 0 |\n\nUnknown fields are rejected. `limit` is not accepted: the native Bitrix24 page size is fixed at 50 records.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST 'https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffiles\u002Ffulltext-search' \\\n  -H 'X-Api-Key: YOUR_API_KEY' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\"query\":\"report\",\"filter\":{\"fileType\":\"document\"},\"offset\":0}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST 'https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffiles\u002Ffulltext-search' \\\n  -H 'X-Api-Key: YOUR_APP_KEY' \\\n  -H 'Authorization: Bearer USER_SESSION_TOKEN' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\"query\":\"report\",\"filter\":{\"fileType\":\"document\"},\"offset\":0}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffiles\u002Ffulltext-search', {\n  method: 'POST',\n  headers: {\"X-Api-Key\": \"YOUR_API_KEY\", \"Content-Type\": \"application\u002Fjson\"},\n  body: JSON.stringify({\"query\": \"report\", \"filter\": {\"fileType\": \"document\"}, \"offset\": 0}),\n})\nconst result = await response.json()\nconsole.log(result)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffiles\u002Ffulltext-search', {\n  method: 'POST',\n  headers: {\"X-Api-Key\": \"YOUR_APP_KEY\", \"Authorization\": \"Bearer USER_SESSION_TOKEN\", \"Content-Type\": \"application\u002Fjson\"},\n  body: JSON.stringify({\"query\": \"report\", \"filter\": {\"fileType\": \"document\"}, \"offset\": 0}),\n})\nconst result = await response.json()\nconsole.log(result)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|---|---|---|\n| `success` | boolean | Whether the request succeeded |\n| `data` | object | Search result: the `items` array and the `meta` pagination parameters |\n| `data.items` | array | Files and folders — fields as in [Get file](\u002Fdocs\u002Fentities\u002Ffiles\u002Fget) and [Get a folder](\u002Fdocs\u002Fentities\u002Ffolders\u002Fget) |\n| `data.meta.nextOffset` | number \\| null | Next offset. `null` at the end of the results |\n| `data.meta.maxOffset` | number | Maximum offset: 1000 |\n\n`data.items` contains files in the [files](\u002Fdocs\u002Fentities\u002Ffiles\u002Fget) projection and folders in the [folders](\u002Fdocs\u002Fentities\u002Ffolders\u002Fget) projection. Call `downloadUrl` with the same API key. `data.meta.nextOffset` is the next page offset or `null`; use it in the next request. There is no `total`: Bitrix24 does not return the match count.\n\nTrash is excluded. Empty results do not prove that a file is absent: the index updates asynchronously, and not every format has its content indexed. Searching by name is more reliable. You cannot continue past offset 1000; narrow the query.\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"items\": [\n      {\n        \"id\": 10639,\n        \"name\": \"report.txt\",\n        \"code\": null,\n        \"storageId\": 1,\n        \"type\": \"file\",\n        \"folderId\": 27,\n        \"deletedType\": 0,\n        \"globalContentVersion\": 1,\n        \"fileId\": 39127,\n        \"size\": 11,\n        \"createdAt\": \"2026-10-13T11:15:36.000Z\",\n        \"updatedAt\": \"2026-10-13T11:15:36.000Z\",\n        \"deletedAt\": null,\n        \"createdBy\": 1,\n        \"updatedBy\": 1,\n        \"deletedBy\": null,\n        \"downloadUrl\": \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ffiles\u002F10639\u002Fdownload\",\n        \"detailUrl\": \"https:\u002F\u002Fexample.bitrix24.com\u002Fcompany\u002Fpersonal\u002Fuser\u002F1\u002Fdisk\u002Ffile\u002Freport.txt\"\n      }\n    ],\n    \"meta\": {\n      \"nextOffset\": null,\n      \"maxOffset\": 1000\n    }\n  }\n}\n```\n\n## Error response example\n\n400 — `query` is shorter than three characters:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"query must contain 3..255 characters after whitespace normalization.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|---|---|---|\n| 400 | `INVALID_PARAMS` | Invalid query, type, filter or offset, unknown fields |\n| 403 | `SCOPE_DENIED` | Missing disk scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied access |\n| 404 | `ENTITY_NOT_FOUND` | Storage or folder not found or inaccessible. These causes are intentionally indistinguishable |\n| 422 | `BITRIX_ERROR` | Bitrix24 business refusal or response without a result |\n| 422 | `OPERATION_FAILED` | Bitrix24 business refusal or response without a result |\n\nCommon refusals: [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [File search](\u002Fdocs\u002Fentities\u002Ffiles\u002Fsearch)\n- [List storages](\u002Fdocs\u002Fentities\u002Fstorages\u002Flist)\n","2026-10-28",{},1795376936963]