[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-notifications\u002Fgroups\u002Fcreate":3,"docs-tabs-notifications\u002Fgroups\u002Fcreate":6},{"content":4,"lastmod":5},"## Create a notification group\n\n`POST \u002Fv1\u002Fnotifications\u002Fgroups`\n\nCreates a notification group together with its first condition — a module and event pair. Further conditions are added to an existing group with the [Add a condition to a notification group](\u002Fdocs\u002Fnotifications\u002Fgroups\u002Fconditions-create) operation.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `title` | string | yes | Group name, 1 to 255 characters |\n| `module` | string | yes | Module identifier of the first condition, 1 to 255 characters. Modules are listed in the `data[].id` field of [`GET \u002Fv1\u002Fnotifications\u002Fsettings`](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist); the module of a specific notification is in the `notifyModule` field of the [notification feed](\u002Fdocs\u002Fnotifications\u002Flist) |\n| `event` | string | yes | Identifier of an event of this module, 1 to 255 characters. The module's events are listed in the `data[].notices[].id` field of [`GET \u002Fv1\u002Fnotifications\u002Fsettings`](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist); the event of a specific notification is in the `notifyEvent` field of the [notification feed](\u002Fdocs\u002Fnotifications\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fgroups\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"title\": \"Tasks and calendar\", \"module\": \"tasks\", \"event\": \"comment\" }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fgroups\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"title\": \"Tasks and calendar\", \"module\": \"tasks\", \"event\": \"comment\" }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fgroups', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ title: 'Tasks and calendar', module: 'tasks', event: 'comment' }),\n})\n\nconst { data } = await res.json()\nconsole.log('Group ID:', data.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fnotifications\u002Fgroups', {\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({ title: 'Tasks and calendar', module: 'tasks', event: 'comment' }),\n})\n\nconst { data } = await res.json()\nconsole.log('Group ID:', data.id)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.id` | number | Identifier of the new group. In the group list it arrives as a string in the `tag` field |\n\n## Response example\n\nHTTP 200:\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 12\n  }\n}\n```\n\n## Error response example\n\n400 — `title` was not passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Body field `title` must be a non-empty string of up to 255 characters.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_PARAMS` | `title`, `module` or `event` was not passed, is not a string, is an empty string or is longer than 255 characters. The field name is in `message` |\n| 400 | `INVALID_PARAMS` | A body field not listed in the table above or a query parameter was passed, or the body is not a JSON object |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the creation; the portal code is in the `error.b24Code` field |\n| 403 | `SCOPE_DENIED` | The key lacks the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\n| 401 | `TOKEN_MISSING` | The key has no configured tokens |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List notification groups](\u002Fdocs\u002Fnotifications\u002Fgroups\u002Flist)\n- [Add a condition to a notification group](\u002Fdocs\u002Fnotifications\u002Fgroups\u002Fconditions-create)\n- [Get notification settings](\u002Fdocs\u002Fnotifications\u002Fsettings\u002Flist)\n- [Notification feed](\u002Fdocs\u002Fnotifications\u002Flist)\n","2026-10-09",{},1795415484898]