[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fstickers\u002Flink-create":3,"docs-tabs-chats\u002Fstickers\u002Flink-create":6},{"content":4,"lastmod":5},"## Add a pack\n\n`POST \u002Fv1\u002Fchats\u002Fstickers\u002Fpacks\u002F:packId\u002Flink`\n\nAdds another author's user sticker pack to the current user's list of packs. This is how you add the pack of a sticker that arrived in a message. No request body is needed.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|----------|\n| `packId` (path) | number | yes | Pack ID — the `packId` of a sticker from a message, the `data.stickers` field of the [first page of messages](\u002Fdocs\u002Fchats\u002Fmessages\u002Finitial) |\n| `packType` (query) | string | yes | Pack type. Only `custom` can be added |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fstickers\u002Fpacks\u002F3\u002Flink?packType=custom\" \\\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\u002Fstickers\u002Fpacks\u002F3\u002Flink?packType=custom\" \\\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\u002Fstickers\u002Fpacks\u002F3\u002Flink?packType=custom', {\n  method: 'POST',\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data } = await res.json()\nconsole.log('Added pack', data.pack.name)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fstickers\u002Fpacks\u002F3\u002Flink?packType=custom', {\n  method: 'POST',\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('Added pack', data.pack.name)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.pack` | object | The added pack — the same fields as in the [get a pack response](\u002Fdocs\u002Fchats\u002Fstickers\u002Fpack-get) |\n| `data.stickers` | array | Stickers of the pack — the same fields as in the [get a pack response](\u002Fdocs\u002Fchats\u002Fstickers\u002Fpack-get) |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"stickers\": [\n      { \"id\": 1, \"uri\": \"\u002Fupload\u002Fim\u002Fstickers\u002F3\u002F1.png\", \"type\": \"image\", \"width\": 512, \"height\": 512, \"packId\": 3, \"packType\": \"custom\", \"sort\": 1 }\n    ],\n    \"pack\": { \"id\": 3, \"name\": \"Work stickers\", \"type\": \"custom\", \"authorId\": 7, \"isAdded\": true }\n  }\n}\n```\n\n## Error response example\n\n403 — the pack is built-in:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"BITRIX_ACCESS_DENIED\",\n    \"message\": \"ACCESS_DENIED\",\n    \"hint\": \"Bitrix24 refused this call; the cause is not determined.\",\n    \"cause\": \"unknown\",\n    \"fix\": { \"action\": \"none\" }\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `packId` is not a positive integer, `packType` is missing or invalid, another parameter or body field was passed, a parameter was repeated |\n| 401 | `TOKEN_MISSING` | The key has no configured Bitrix24 tokens |\n| 403 | `SCOPE_DENIED` | The key lacks the `im` scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\n| 403 | `BITRIX_ACCESS_DENIED` | The pack is built-in |\n| 404 | `ENTITY_NOT_FOUND` | Bitrix24 did not find the object; the portal code is in `error.b24Code` if supplied |\n| 422 | `BITRIX_ERROR` | `error.b24Code`: `LINK_EXISTS` — the pack is already in the list, `PACK_NOT_FOUND` — the pack does not exist, `MAX_PACKS_ERROR` — the list already has 50 user packs |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a server error |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- An author's own pack is in their list from the moment it is created: it cannot be added again, and the response is `422` with `error.b24Code` `LINK_EXISTS`.\n- Sticker error codes come without a message text: `message` equals the code.\n\n## See also\n\n- [Remove a pack](\u002Fdocs\u002Fchats\u002Fstickers\u002Flink-delete)\n- [Get a pack](\u002Fdocs\u002Fchats\u002Fstickers\u002Fpack-get)\n- [List of packs](\u002Fdocs\u002Fchats\u002Fstickers\u002Fpacks)\n","2026-10-06",{},1795415444274]