[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fmessages\u002Fpersonal-pins":3,"docs-tabs-chats\u002Fmessages\u002Fpersonal-pins":6},{"content":4,"lastmod":5},"## Get personal pinned messages\n\n`GET \u002Fv1\u002Fchats\u002F:dialogId\u002Fpins\u002Fpersonal`\n\nReturns, page by page, the messages that the current user has pinned for themselves in one chat.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `dialogId` (path) | string | yes | `chat` followed by the actual chat ID returned when you [load the chat](\u002Fdocs\u002Fchats\u002Fmessages\u002Fload), including a one-to-one chat. The endpoint rejects a numeric user ID and `me`. |\n| `limit` (query) | integer | no | Rows per page: 1–200, default 50. For out-of-range values, `meta.requestedLimit` shows the requested limit and `meta.appliedLimit` shows the limit used. |\n| `lastId` (query) | integer | no | Exclusive cursor: `messageId` of the last row of the previous page |\n| `order` (query) | string | no | `desc` by default, or `asc` |\n\nRequires the `im` scope. The credentials identify the current user. The API rejects parameters that specify the owner and any unknown parameters. If the chat allows auto-join, this request can add the user as a chat member.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X GET \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat1945\u002Fpins\u002Fpersonal\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X GET \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat1945\u002Fpins\u002Fpersonal\" \\\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\u002Fchat1945\u002Fpins\u002Fpersonal', {\n  method: 'GET',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\nconst { data } = await res.json()\nconsole.log(data)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fchat1945\u002Fpins\u002Fpersonal', {\n  method: 'GET',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\nconst { data } = await res.json()\nconsole.log(data)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `success` | boolean | `true` |\n| `data.personalPins` | array | Personal pin rows |\n| `data.personalPins[].id` | number | Pin row id |\n| `data.personalPins[].messageId` | number | Message id and pagination cursor |\n| `data.personalPins[].chatId` | number | Real chat id |\n| `data.personalPins[].authorId` | number | Pin owner id |\n| `data.personalPins[].dateCreate` | string | Pin creation date |\n| `data.hasNextPage` | boolean | Whether another page is available |\n| `data.messages, data.additionalMessages` | array | The pinned messages: `id`, `chatId`, `authorId`, `date`, `text`, `isSystem`. Not every response includes each of the two fields |\n| `data.users` | array | Related users |\n| `data.files, data.reactions, data.stickers` | array | Files, reactions and stickers of the pinned messages. Not every response includes them: an empty page omits them |\n| `data.tariffRestrictions.isHistoryLimitExceeded` | boolean | `true` when the plan hides part of the older chat history and its messages are left out of the results |\n| `meta.requestedLimit` | number | The `limit` that was sent. Returned together with `appliedLimit`, only when the value was outside the range from 1 to 200 |\n| `meta.appliedLimit` | number | The applied `limit` value — only when it was clamped to a bound |\n\n## Response example\n\nOnly the main message and user fields are shown.\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"personalPins\": [\n      {\n        \"id\": 12,\n        \"messageId\": 846,\n        \"chatId\": 1945,\n        \"authorId\": 7,\n        \"dateCreate\": \"2026-11-17T10:05:00+00:00\"\n      },\n      {\n        \"id\": 11,\n        \"messageId\": 845,\n        \"chatId\": 1945,\n        \"authorId\": 7,\n        \"dateCreate\": \"2026-11-17T10:04:00+00:00\"\n      }\n    ],\n    \"additionalMessages\": [\n      {\"id\": 846, \"chatId\": 1945, \"authorId\": 12, \"date\": \"2026-11-16T09:30:00+00:00\", \"text\": \"Release notes are ready\", \"isSystem\": false},\n      {\"id\": 845, \"chatId\": 1945, \"authorId\": 12, \"date\": \"2026-11-16T09:28:00+00:00\", \"text\": \"Project update\", \"isSystem\": false}\n    ],\n    \"users\": [{\"id\": 12, \"active\": true, \"name\": \"Anna Smith\", \"type\": \"user\"}],\n    \"files\": [],\n    \"reactions\": [],\n    \"stickers\": [],\n    \"tariffRestrictions\": {\"isHistoryLimitExceeded\": false},\n    \"hasNextPage\": false\n  }\n}\n```\n\n## Error response example\n\n400 — unexpected parameter:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Query parameter `ownerId` is not accepted by GET \u002Fv1\u002Fchats\u002F:dialogId\u002Fpins\u002Fpersonal. Accepted: lastId, order, limit.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|------|-------------|\n| 400 | `INVALID_PARAMS` | Malformed ID, or an unexpected or repeated parameter or body field |\n| 422 | `BITRIX_ERROR` | `error.b24Code` is `CHAT_NOT_FOUND` — there is no chat with this id |\n| 401 | `MISSING_API_KEY` | No API key was provided |\n| 401 | `TOKEN_MISSING` | No Bitrix24 credentials are configured |\n| 403 | `SCOPE_DENIED` | The key does not have im scope |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in `READONLY` mode and is not an ordinary employee personal key: an application key with a user session, a management key, or a key of an unconfirmed type. Checked before any call to Bitrix24 |\n| 403 | `BITRIX_ACCESS_DENIED` | The current user has no access |\n| 404 | `ENTITY_NOT_FOUND` | The record was not found |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused the operation with another code, which is in `error.b24Code` |\n\n[Common API errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\nOn [full chat load](\u002Fdocs\u002Fchats\u002Fmessages\u002Fload), the initial personal pin block is in `data`: `personalPins` and `personalPinsHasNextPage`. Use this endpoint for pagination. If the block is absent on a full load, personal pins are unsupported. An empty list is returned as `personalPins: []`.\n\n## See also\n\n- [Chat configuration](\u002Fdocs\u002Fchats\u002Fdiscovery\u002Fconfiguration)\n- [Messages](\u002Fdocs\u002Fchats\u002Fmessages)\n","2026-11-20",{},1795415437758]