[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fmessages\u002Finform":3,"docs-tabs-chats\u002Fmessages\u002Finform":6},{"content":4,"lastmod":5},"## Notify a recipient in Do Not Disturb\n\n`POST \u002Fv1\u002Fchats\u002Fmessages\u002F:messageId\u002Finform`\n\nDelivers your message to the other member of a personal chat as an important notification while they have Do Not Disturb on. The Bitrix24 account checks the conditions: the chat is personal, you are the message author, the recipient has not seen the message yet, the message is recent, and the recipient has Do Not Disturb on.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `messageId` (path) | number | yes | Message ID, a positive integer — from the [chat feed](\u002Fdocs\u002Fchats\u002Fmessages\u002Flist) (`GET \u002Fv1\u002Fchats\u002F:dialogId\u002Fmessages`) or from the [send](\u002Fdocs\u002Fchats\u002Fmessages\u002Fsend) response |\n\nThe request accepts no body and no query parameters: any field is 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\u002Fmessages\u002F1002\u002Finform \\\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\u002Fmessages\u002F1002\u002Finform \\\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\u002F1002\u002Finform', {\n  method: 'POST',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst body = await res.json()\nconsole.log(body.success ? 'Notification sent' : body.error.b24Code)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fmessages\u002F1002\u002Finform', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst body = await res.json()\nconsole.log(body.success ? 'Notification sent' : body.error.b24Code)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.result` | boolean | `true` — the notification was sent |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": { \"result\": true }\n}\n```\n\n## Error response example\n\n422 — the recipient does not have Do Not Disturb on:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ERROR\",\n    \"message\": \"INFORM_USER_STATUS_ERROR\",\n    \"b24Code\": \"INFORM_USER_STATUS_ERROR\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `messageId` is not a positive integer, or the request has a body field or a query parameter. Checked before any call to Bitrix24 |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused with `WRONG_CHAT_TYPE` in `error.b24Code` — the chat is not personal |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused with `INFORM_USER_STATUS_ERROR` in `error.b24Code` — the recipient does not have Do Not Disturb on |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused with another `INFORM_*` code in `error.b24Code` — you are not the author of the message, or the message has already been seen or is too old |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused with `MESSAGE_NOT_FOUND` in `error.b24Code` — the message does not exist |\n| 404 | `ENTITY_NOT_FOUND` | Bitrix24 returned the `NOT_FOUND` code. The portal code is in `error.b24Code` |\n| 403 | `BITRIX_ACCESS_DENIED` | The user has no access to the chat — Bitrix24 refused with the `ACCESS_DENIED` code |\n| 403 | `SCOPE_DENIED` | The API key does not have the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is read-only — see [access rights](\u002Fdocs\u002Faccess-rights) |\n| 401 | `TOKEN_MISSING` | The API key has no Bitrix24 tokens configured |\n\nThe full list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A refusal is an expected outcome.** The notification makes sense only while the recipient is in Do Not Disturb and has not seen the message. In every other case the Bitrix24 account responds with an `INFORM_*` code, and that is not an integration error.\n\n## See also\n\n- [Send a message](\u002Fdocs\u002Fchats\u002Fmessages\u002Fsend)\n- [Who viewed a message](\u002Fdocs\u002Fchats\u002Fmessages\u002Fviewers)\n","2026-10-07",{},1794739547478]