[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-chats\u002Fmessages\u002Fpersonal-pins-delete":3,"docs-tabs-chats\u002Fmessages\u002Fpersonal-pins-delete":6},{"content":4,"lastmod":5},"## Remove a personal pin\n\n`DELETE \u002Fv1\u002Fchats\u002Fmessages\u002F:messageId\u002Fpin\u002Fpersonal`\n\nRemoves a message from the current user’s personal pins in the chat where the message was sent.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `messageId` (path) | integer | yes | Message id from [message history](\u002Fdocs\u002Fchats\u002Fmessages\u002Flist) |\n\nRequires the `im` scope. The credentials identify the current user. The API rejects parameters that specify the owner and any unknown parameters.\n\nThe body may be absent or `{}`. No body fields or query parameters are accepted. Use an API key with write access.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fmessages\u002F845\u002Fpin\u002Fpersonal\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fchats\u002Fmessages\u002F845\u002Fpin\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\u002Fmessages\u002F845\u002Fpin\u002Fpersonal', {\n  method: 'DELETE',\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\u002Fmessages\u002F845\u002Fpin\u002Fpersonal', {\n  method: 'DELETE',\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\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `success` | boolean | `true` |\n| `data` | array | Empty array — the command succeeded |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": []\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 DELETE \u002Fv1\u002Fchats\u002Fmessages\u002F:messageId\u002Fpin\u002Fpersonal. It takes no query parameters.\"\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 `MESSAGE_NOT_FOUND` — there is no message 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 | `BITRIX_ACCESS_DENIED` | The current user has no access |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key cannot change Bitrix24 data |\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\nIf the message is not among personal pins, the response is the same: `data: []`.\n\n## See also\n\n- [Chat configuration](\u002Fdocs\u002Fchats\u002Fdiscovery\u002Fconfiguration)\n- [Messages](\u002Fdocs\u002Fchats\u002Fmessages)\n","2026-11-20",{},1795415438096]