[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fmessages\u002Freactions-delete":3,"docs-tabs-chats\u002Fmessages\u002Freactions-delete":6},{"content":4,"lastmod":5},"## Remove a reaction\n\n`DELETE \u002Fv1\u002Fchats\u002Fmessages\u002F:messageId\u002Freactions\u002F:reaction`\n\nRemoves the current user's reaction from a message. The chat is resolved from the message, so no `dialogId` is needed.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `messageId` (path) | number | yes | Message ID, a positive integer — the `messageId` field from the [reactions list](\u002Fdocs\u002Fchats\u002Fmessages\u002Freactions-list) |\n| `reaction` (path) | string | yes | Reaction code in camelCase — the `reaction` field from the [reactions list](\u002Fdocs\u002Fchats\u002Fmessages\u002Freactions-list). All codes are on the [Add a reaction](\u002Fdocs\u002Fchats\u002Fmessages\u002Freactions-create) page |\n\nNo body and no query parameters are accepted: any body field or query parameter is rejected with `400 INVALID_PARAMS`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fmessages\u002F1001\u002Freactions\u002Flike\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fmessages\u002F1001\u002Freactions\u002Flike\" \\\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\u002Fmessages\u002F1001\u002Freactions\u002Flike', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log('Reaction removed:', data.result)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fmessages\u002F1001\u002Freactions\u002Flike', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log('Reaction removed:', data.result)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.result` | boolean | `true` — the reaction is removed |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"result\": true\n  }\n}\n```\n\n## Error response example\n\n422 — the current user has not added this reaction to the message:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ERROR\",\n    \"message\": \"REACTION_NOT_FOUND\",\n    \"b24Code\": \"REACTION_NOT_FOUND\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `messageId` is not a positive integer, the reaction code is not in camelCase (`LIKE`, `face_with`), or a body field or query parameter was passed. Checked before any call to Bitrix24 |\n| 404 | `ENTITY_NOT_FOUND` | Bitrix24 reported \"not found\"; the portal code is in `error.b24Code` |\n| 422 | `BITRIX_ERROR` | Bitrix24 returned an error; the code is in `error.b24Code`: `REACTION_NOT_FOUND` — the current user has not added this reaction or the code is unknown to Bitrix24, `MESSAGE_NOT_FOUND` — there is no such message |\n| 403 | `SCOPE_DENIED` | The API key does not have the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | A read-only key cannot remove reactions — see [access rights](\u002Fdocs\u002Faccess-rights) |\n| 401 | `TOKEN_MISSING` | The API key has no Bitrix24 tokens configured |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List reactions to a message](\u002Fdocs\u002Fchats\u002Fmessages\u002Freactions-list)\n- [Add a reaction](\u002Fdocs\u002Fchats\u002Fmessages\u002Freactions-create)\n- [Messages](\u002Fdocs\u002Fchats\u002Fmessages)\n","2026-10-06",{},1795377119265]