[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-notifications\u002Fanswer":3,"docs-tabs-notifications\u002Fanswer":6},{"content":4,"lastmod":5},"## Answer a notification\n\n`POST \u002Fv1\u002Fnotifications\u002F:id\u002Fanswer`\n\nSends a text reply to a notification on behalf of the token owner. The Bitrix24 module that sent the notification decides how to handle the reply.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Notification identifier — the `data.notifications[].id` field in the [notification feed](.\u002Flist.md) `GET \u002Fv1\u002Fnotifications`. A positive integer |\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `text` | string | yes | Reply text. A whitespace-only string and the string `\"0\"` are not accepted |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002F38963\u002Fanswer\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"text\": \"Got it, thanks\" }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002F38963\u002Fanswer\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"text\": \"Got it, thanks\" }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002F38963\u002Fanswer', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ text: 'Got it, thanks' }),\n})\n\nconst { data } = await res.json()\nconsole.log(data.resultMessage[0])\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002F38963\u002Fanswer', {\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({ text: 'Got it, thanks' }),\n})\n\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` on success |\n| `data.resultMessage` | string[] | Result messages. Bitrix24 writes the text — escape it before rendering it in an interface |\n\n## Response example\n\nHTTP 200:\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"resultMessage\": [\"Your reply has been sent.\"]\n  }\n}\n```\n\n## Error response example\n\n422 — the token owner has no notification with this `id`:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ERROR\",\n    \"message\": \"Notification is absent, unavailable to the token owner, or cannot perform this action.\",\n    \"b24Code\": \"NOTIFICATION_ACTION_FAILED\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | The path `id` is not a positive integer |\n| 400 | `INVALID_PARAMS` | `text` is missing, is not a string, is whitespace-only or equals `\"0\"` |\n| 400 | `INVALID_PARAMS` | Another body field or a query string parameter was passed, or the body is not a JSON object. The field is named in the message. Checked before the Bitrix24 call |\n| 400 | `FST_ERR_CTP_EMPTY_JSON_BODY` | The `Content-Type: application\u002Fjson` header was sent with an empty body |\n| 422 | `BITRIX_ERROR` | The notification does not exist, is unavailable to the token owner or does not accept a reply. The Bitrix24 error code `NOTIFICATION_ACTION_FAILED` is in the `error.b24Code` field |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 returned a response without the list of result messages |\n| 403 | `SCOPE_DENIED` | The key lacks the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode. Checked before the Bitrix24 call |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied access |\n| 401 | `TOKEN_MISSING` | The key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not sent |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- A reply is also accepted for a notification that has no reply field, for example one sent with [`POST \u002Fv1\u002Fnotifications`](.\u002Fsend.md). The message in `data.resultMessage` confirms only that Bitrix24 accepted the reply, not that the source module processed it.\n- A repeated reply to the same notification also returns `200`. After a reply the notification stays in the feed and is not marked as read — use [Mark as read](.\u002Fread.md) for that.\n- The reply is sent on behalf of the token owner: with a personal key, the key owner; with an OAuth application key and the `Authorization: Bearer` header, the session user.\n\n## See also\n\n- [Notification feed](.\u002Flist.md)\n- [Execute a notification button](.\u002Fconfirm.md)\n- [Send a notification](.\u002Fsend.md)\n- [Mark as read](.\u002Fread.md)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-08",{},1795415483665]