[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-notifications\u002Fsearch":3,"docs-tabs-notifications\u002Fsearch":6},{"content":4,"lastmod":5},"## Search notifications\n\n`GET \u002Fv1\u002Fnotifications\u002Fsearch`\n\nSearches the token owner's notification history by text, notification type, author and date. Returns a page of up to 50 notifications. Request further pages with the `lastId` cursor.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `text` (query) | string | no | Text to search for in notifications. If none of the `type`, `types`, `authors`, `date`, `dateFrom`, `dateTo` filters is passed, at least 3 characters after trimming leading and trailing whitespace |\n| `type` (query) | string | no | Notification type: a source module, for example `crm`, or a `module\\|event` pair, for example `mail\\|new_message_v2`. List of types — [`GET \u002Fv1\u002Fnotifications\u002Fschema`](.\u002Fschema.md). If `types` is passed, `type` is ignored |\n| `types` (query) | string \\| array | no | Several source modules, comma-separated, `types=crm,mail`, or as an array, `types[]=crm&types[]=mail`. List of modules — [`GET \u002Fv1\u002Fnotifications\u002Fschema`](.\u002Fschema.md). A list of one value works like `type`, including the `module\\|event` form. In a list of two or more values each value is compared with the module only, so a `module\\|event` pair in such a list matches nothing |\n| `authors` (query) | string \\| array | no | Author IDs, comma-separated, `authors=1,835`, or as an array, `authors[]=1&authors[]=835`. The value `0` selects system notifications without an author. List of employees — [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `date` (query) | string | no | 24 hours starting from the given moment, in ISO 8601 format: `2026-10-08` or `2026-10-08T00:00:00+00:00`. A date without a time means a UTC day. If `dateFrom` and `dateTo` are passed, `date` is ignored |\n| `dateFrom` (query) | string | no | Start of the date range in ISO 8601 format. Applied only together with `dateTo` |\n| `dateTo` (query) | string | no | End of the date range in ISO 8601 format. The range ends 24 hours after `dateTo`, so a date without a time is included in the range in full. Applied only together with `dateFrom` |\n| `lastId` (query) | string | no | Cursor — the `id` of the last notification on the previous page. Digits only. The value `0` returns the first page |\n\nNotifications arrive from newest to oldest, up to 50 per page. Send the first request without `lastId`. For the next page, pass the `id` of the last notification in `lastId` and repeat the other parameters unchanged. Pagination is complete when an empty page arrives or a page repeats `id` values already received. The server does not paginate automatically.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsearch?type=crm&dateFrom=2026-10-01&dateTo=2026-10-07\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsearch?type=crm&dateFrom=2026-10-01&dateTo=2026-10-07\" \\\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\u002Fnotifications\u002Fsearch?type=crm&dateFrom=2026-10-01&dateTo=2026-10-07', {\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data } = await res.json()\nconsole.log('Found:', data.totalResults)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fsearch?type=crm&dateFrom=2026-10-01&dateTo=2026-10-07', {\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('Found:', data.totalResults)\n```\n\n## Response fields\n\nFor all keys, including personal keys, strings containing secret webhook URLs in response fields, including nested fields, are replaced entirely with `[REDACTED]`.\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.chatId` | number, null | ID of the token owner's system notification chat. `null` when no search was performed: the request has neither text nor a filter that takes effect, or the owner has no notification chat |\n| `data.notifications` | array | Notifications found on the page |\n| `data.notifications[].id` | number, null | Notification ID. Passed in `lastId` for the next page and to [`DELETE \u002Fv1\u002Fnotifications\u002F:id`](.\u002Fdelete.md) |\n| `data.notifications[].chatId` | number, null | ID of this notification's chat |\n| `data.notifications[].authorId` | number, null | Author ID. `0` — a system notification without an author. The author's card is in the `data.users` array |\n| `data.notifications[].date` | string | Notification date in ISO 8601 format |\n| `data.notifications[].notifyType` | number, null | Notification type |\n| `data.notifications[].notifyModule` | string | Source module of the notification, for example `crm` |\n| `data.notifications[].notifyEvent` | string | Source event of the notification |\n| `data.notifications[].notifyTag` | string | The `tag` the notification was sent with |\n| `data.notifications[].notifySubTag` | string | The additional `subTag` |\n| `data.notifications[].notifyTitle` | string | Notification title |\n| `data.notifications[].settingName` | string | Name of the delivery setting under which the notification reached the recipient |\n| `data.notifications[].text` | string | Notification text |\n| `data.notifications[].notifyRead` | boolean | Whether the notification has been read |\n| `data.notifications[].notifyButtons` | string | Notification buttons — a JSON string with an array of buttons, as in the [notification feed](.\u002Flist.md). If the `notifyButtons` string contains a secret webhook URL, it is replaced entirely with `[REDACTED]`; this value is not JSON. A notification without buttons has no such field |\n| `data.notifications[].params` | object, null | Additional sender data. Nested keys are returned as the sender wrote them |\n| `data.users` | array | Cards of the authors of this page's notifications. Public fields only, without emails and phone numbers |\n| `data.users[].id` | number, null | Employee ID. The full card — [Employees](\u002Fdocs\u002Fentities\u002Fusers) |\n| `data.users[].active` | boolean | Whether the employee is active on the Bitrix24 account |\n| `data.users[].name` | string | Display name |\n| `data.users[].firstName` | string | First name |\n| `data.users[].lastName` | string | Last name |\n| `data.users[].workPosition` | string, null | Job title |\n| `data.users[].color` | string | Color of the employee's card in the Bitrix24 interface |\n| `data.users[].avatar` | string | Avatar URL |\n| `data.users[].bot` | boolean | Whether the author is a bot |\n| `data.users[].type` | string | Author type, for example `user` |\n| `data.totalResults` | number | Number of notifications matching the search conditions. Counted only on the first page — without `lastId` or with `lastId=0`. On subsequent pages `0` is returned |\n\n## Response example\n\nHTTP 200, showing the first two notifications of the page:\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"chatId\": 7,\n    \"notifications\": [\n      {\n        \"id\": 42441,\n        \"chatId\": 7,\n        \"authorId\": 835,\n        \"date\": \"2026-10-08T00:01:05+00:00\",\n        \"notifyType\": 2,\n        \"notifyModule\": \"crm\",\n        \"notifyEvent\": \"changeAssignedBy\",\n        \"notifyTag\": \"CRM|DEAL_RESPONSIBLE|8779\",\n        \"notifySubTag\": \"\",\n        \"notifyTitle\": \"\",\n        \"settingName\": \"crm|changeAssignedBy\",\n        \"text\": \"You have been assigned as the person responsible for the deal \\\"[URL=\u002Fcrm\u002Fdeal\u002Fdetails\u002F8779\u002F]Deal #6531[\u002FURL]\\\"\",\n        \"params\": {\n          \"COMPONENT_ID\": \"CrmEntity\",\n          \"COMPONENT_PARAMS\": {\n            \"SUBJECT\": \"#AUTHOR# assigned you as the person responsible for the deal\",\n            \"ENTITY\": {\n              \"TITLE\": \"Deal #6531\",\n              \"HREF\": \"\u002Fcrm\u002Fdeal\u002Fdetails\u002F8779\u002F\",\n              \"ENTITY_TYPE\": \"deal\",\n              \"CONTENT_TYPE\": \"title\"\n            }\n          }\n        },\n        \"notifyRead\": false\n      },\n      {\n        \"id\": 42399,\n        \"chatId\": 7,\n        \"authorId\": 835,\n        \"date\": \"2026-10-07T00:01:08+00:00\",\n        \"notifyType\": 2,\n        \"notifyModule\": \"crm\",\n        \"notifyEvent\": \"changeAssignedBy\",\n        \"notifyTag\": \"CRM|DEAL_RESPONSIBLE|8771\",\n        \"notifySubTag\": \"\",\n        \"notifyTitle\": \"\",\n        \"settingName\": \"crm|changeAssignedBy\",\n        \"text\": \"You have been assigned as the person responsible for the deal \\\"[URL=\u002Fcrm\u002Fdeal\u002Fdetails\u002F8771\u002F]Deal #6531[\u002FURL]\\\"\",\n        \"params\": {\n          \"COMPONENT_ID\": \"CrmEntity\",\n          \"COMPONENT_PARAMS\": {\n            \"SUBJECT\": \"#AUTHOR# assigned you as the person responsible for the deal\",\n            \"ENTITY\": {\n              \"TITLE\": \"Deal #6531\",\n              \"HREF\": \"\u002Fcrm\u002Fdeal\u002Fdetails\u002F8771\u002F\",\n              \"ENTITY_TYPE\": \"deal\",\n              \"CONTENT_TYPE\": \"title\"\n            }\n          }\n        },\n        \"notifyRead\": false\n      }\n    ],\n    \"users\": [\n      {\n        \"id\": 835,\n        \"active\": true,\n        \"name\": \"Anna Brown\",\n        \"firstName\": \"Anna\",\n        \"lastName\": \"Brown\",\n        \"workPosition\": \"\",\n        \"color\": \"#3e99ce\",\n        \"avatar\": \"https:\u002F\u002Fexample.bitrix24.com\u002Fupload\u002Fmain\u002Favatar-835.png\",\n        \"bot\": false,\n        \"type\": \"user\"\n      }\n    ],\n    \"totalResults\": 24\n  }\n}\n```\n\n## Error response example\n\n400 — `text` is shorter than 3 characters and no filters are passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Required: text with at least 3 characters, or a search filter.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `text` is shorter than 3 characters and no filter is passed |\n| 400 | `INVALID_PARAMS` | A parameter that is not in the \"Parameters\" table is passed |\n| 400 | `INVALID_PARAMS` | `lastId` contains something other than digits or is outside the safe integer range |\n| 400 | `INVALID_PARAMS` | `authors` contains a value that is not a non-negative integer, or `types` contains an empty value |\n| 400 | `INVALID_PARAMS` | A parameter is passed as an array where a string is expected |\n| 401 | `MISSING_API_KEY` | `X-Api-Key` is not passed |\n| 401 | `TOKEN_MISSING` | The key has no configured tokens |\n| 403 | `SCOPE_DENIED` | The key does not have the `im` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied access |\n| 422 | `BITRIX_ERROR` | Method error on the Bitrix24 side. The Bitrix24 error code is in the `b24Code` field. For example, a date not in ISO 8601 format |\n| 429 | `RATE_LIMITED` | Bitrix24 limited the request rate |\n| 502 | `BITRIX_UNAVAILABLE` | The Bitrix24 response could not be read |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- The search runs over the token owner's history: with a personal key — the key owner's, with an OAuth application key — the history of the employee from the `Authorization: Bearer` session. There is no filter by application: notifications of other applications on the Bitrix24 account and system notifications are found together with your application's notifications.\n- A single range bound with no other search conditions returns an empty page with `chatId: null`, not an error. Together with text or another filter, a single bound is ignored.\n- The fields `text`, `notifyTitle`, `notifyButtons`, `params` and the strings in `data.users` are untrusted content: other applications on the Bitrix24 account write them. Escape these values before rendering them in an interface.\n\n## See also\n\n- [Notification feed](.\u002Flist.md)\n- [Notification type dictionary](.\u002Fschema.md)\n- [Delete by id](.\u002Fdelete.md)\n- [Employees](\u002Fdocs\u002Fentities\u002Fusers)\n- [Errors](\u002Fdocs\u002Ferrors)\n","2026-10-24",{},1795415486418]