For AI agents: markdown of this page — /docs-content-en/chats/messages/comments-subscription-delete.md documentation index — /llms.txt

Stop following the comments of a post

DELETE /v1/chats/messages/:messageId/comments/subscription

Unsubscribes you from notifications about new comments on a channel post.

Parameters

Parameter Type Required Default Description
messageId (path) number yes — ID of the channel post, a positive integer. Channel posts: Read messages

No body is needed. Query parameters and body fields are rejected with 400 INVALID_PARAMS.

Examples

curl — personal key

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/chats/messages/845/comments/subscription" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/chats/messages/845/comments/subscription" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"

JavaScript — personal key

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/chats/messages/845/comments/subscription', {
  method: 'DELETE',
  headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})

const { data } = await res.json()
console.log('Notifications off:', data.result)

JavaScript — OAuth application

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/chats/messages/845/comments/subscription', {
  method: 'DELETE',
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

const { data } = await res.json()
console.log('Notifications off:', data.result)

Response fields

Field Type Description
success boolean Always true on success
data.result boolean true — you no longer follow the comments of the post

Response example

JSON
{
  "success": true,
  "data": { "result": true }
}

Error response example

422 — the message is not a channel post:

JSON
{
  "success": false,
  "error": {
    "code": "BITRIX_ERROR",
    "message": "WRONG_PARENT_CHAT",
    "b24Code": "WRONG_PARENT_CHAT"
  }
}

Errors

HTTP Code Description
400 INVALID_PARAMS messageId is not a positive integer, the body is not a JSON object, a query parameter or a body field is passed. Checked before any call to Bitrix24
404 ENTITY_NOT_FOUND Bitrix24 returned a generic "not found" code or an error with the text "not found". The portal code is in error.b24Code
422 BITRIX_ERROR Bitrix24 returned an error, the portal code is in error.b24Code. WRONG_PARENT_CHAT — the message is not a channel post, MESSAGE_ACCESS_DENIED — no access to the message, including when there is no message with this ID
403 SCOPE_DENIED The API key does not have the im scope
403 WRITE_BLOCKED_READONLY_KEY The key is read-only: unfollowing changes data — see access rights
401 TOKEN_MISSING The API key has no Bitrix24 tokens configured

The full list of common API errors — Errors.

Known specifics

Unfollowing marks the thread as read. Besides turning off notifications, unfollowing marks the comments of this post as read for you.

A repeated unfollow is not an error. If you are not following the post, the response is still true.

The thread appears together with the post. A thread is created as soon as the post is sent to the channel, before the first comment. A forwarded post has no thread — unfollowing creates one, so you can unfollow any channel post.

See also