[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Ffiles\u002Fupload-status":3,"docs-tabs-chats\u002Ffiles\u002Fupload-status":6},{"content":4,"lastmod":5},"## Check whether an uploaded file exists\n\n`POST \u002Fv1\u002Fchats\u002Ffiles\u002Fuploads\u002Fstatus`\n\nChecks whether a file exists by ID after upload. No chat is needed in the path. The route calls Bitrix24 on the server and never returns its token-bearing download link.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|:--------:|-------------|\n| `fileId` (body) | number | yes | Positive uploaded file ID. Get it: `data.file.id` in the response of [Upload a file to a chat folder](\u002Fdocs\u002Fchats\u002Ffiles\u002Fupload-to-folder) |\n\nRequires the `im` scope. A read-only key is allowed. Other fields and query parameters are rejected with `400 INVALID_PARAMS`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Ffiles\u002Fuploads\u002Fstatus \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"fileId\":7701}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Ffiles\u002Fuploads\u002Fstatus \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"fileId\":7701}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Ffiles\u002Fuploads\u002Fstatus', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\"fileId\": 7701}),\n})\nconst { success, data, error } = await res.json()\nconsole.log(success ? data : error)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Ffiles\u002Fuploads\u002Fstatus', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\"fileId\": 7701}),\n})\nconst { success, data, error } = await res.json()\nconsole.log(success ? data : error)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | `true` on success |\n| `data.exists` | boolean | `true` when the file exists; publication is not distinguished |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"exists\": true\n  }\n}\n```\n\n## Error response example\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"File not found\",\n    \"b24Code\": \"FILE_NOT_FOUND\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | Invalid `fileId` or unexpected parameters |\n| 401 | `TOKEN_MISSING` | No Bitrix24 access tokens |\n| 403 | `SCOPE_DENIED` | The API key does not have the `im` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | No access to the file in Bitrix24 |\n| 404 | `ENTITY_NOT_FOUND` | File not found; when Bitrix24 returns `FILE_NOT_FOUND`, `error.b24Code` contains this code |\n| 422 | `BITRIX_ERROR` | Other Bitrix24 refusal |\n| 429 | `QUEUE_TIMEOUT` | Bitrix24 request queue is busy; retry later |\n\nThe Bitrix24 response with the download link stays on the server and is never included in the API response. `exists: true` does not distinguish published from unpublished files.\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Upload to folder](\u002Fdocs\u002Fchats\u002Ffiles\u002Fupload-to-folder)\n- [Discard file](\u002Fdocs\u002Fchats\u002Ffiles\u002Fupload-discard)\n- [Publish files](\u002Fdocs\u002Fchats\u002Ffiles\u002Fupload-publish)\n- [Chat files](\u002Fdocs\u002Fchats\u002Ffiles)\n","2026-10-05",{},1795000504974]