[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fmanagement\u002Fhide":3,"docs-tabs-chats\u002Fmanagement\u002Fhide":6},{"content":4,"lastmod":5},"## Hide a chat\n\n`POST \u002Fv1\u002Fchats\u002F:dialogId\u002Fhide`\n\nRemoves a dialog from the current user's list, preserving messages and chat membership. A new message may return the dialog to the list.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|-------|----------|\n| `dialogId` (path) | string | yes | The other user's numeric ID for direct messaging, `chatN` for a group chat or `me` for the current user. Source — [recent dialogs](\u002Fdocs\u002Fchats\u002Fdiscovery\u002Frecent) |\n\nNo query parameters are accepted. Omit the request body or send `{}`. Additional body fields and non-object request bodies are rejected.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat456\u002Fhide \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat456\u002Fhide \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat456\u002Fhide', {\n  method: 'POST',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\nconst body = await res.json()\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat456\u002Fhide', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\nconst body = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data` | boolean | `true` — the dialog is hidden |\n\n## Response example\n\n```json\n{\"success\": true, \"data\": true}\n```\n\n## Error response example\n\n400 — the unknown body field `folderId` was passed:\n\n```json\n{\"success\": false, \"error\": {\"code\": \"INVALID_PARAMS\", \"message\": \"Body field `folderId` is not accepted by POST \u002Fv1\u002Fchats\u002F:dialogId\u002Fhide. It takes no body fields.\"}}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | Unsupported query parameter, body field or request body type |\n| 403 | `SCOPE_DENIED` | The key does not have the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key permits reads only |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 refused access |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the action. Its code is preserved in `error.b24Code` |\n| 401 | `TOKEN_MISSING` | No Bitrix24 tokens are configured for the key |\n| 502 | `ME_ALIAS_RESOLUTION_FAILED` | The user could not be resolved for `me` |\n\nFor common API errors, see [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\nWhen the outcome of a network request is unknown, the platform does not retry hiding automatically.\n\n## See also\n\n- [Recent dialogs](\u002Fdocs\u002Fchats\u002Fdiscovery\u002Frecent)\n- [Leave a chat](\u002Fdocs\u002Fchats\u002Fmanagement\u002Fleave)\n- [Chat management](\u002Fdocs\u002Fchats\u002Fmanagement)\n","2026-11-17",{},1795000507514]