Access Available User Messages from the News Feed log.blogpost.get
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Scope:
logWho can execute the method: any user
The method log.blogpost.get returns messages from the News Feed that are accessible to the current user.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
POST_ID |
Filter by message ID. You can obtain the ID using the log.blogpost.get method. |
|
LOG_RIGHTS |
Filter by recipients who have the right to view the message. Possible values:
Copied |
|
start |
This parameter is used for pagination control. The page size of results is always static — 50 records. To select the second page of results, you need to pass the value The formula for calculating the
|
If the POST_ID and LOG_RIGHTS parameters are not specified, all messages available to the current user are returned. The parameters are mutually exclusive: if POST_ID is specified, filtering by LOG_RIGHTS is ignored.
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"POST_ID":217}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/log.blogpost.get
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"POST_ID":217,"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/log.blogpost.get
try
{
const response = await $b24.callMethod(
'log.blogpost.get',
{
POST_ID: 217
}
);
const result = response.getData().result;
console.log('Blog post data:', result);
processResult(result);
}
catch( error )
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'log.blogpost.get',
[
'POST_ID' => 217
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
processData($result);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error retrieving blog post: ' . $e->getMessage();
}
BX24.callMethod(
'log.blogpost.get',
{
POST_ID: 217
},
function(result)
{
if (result.error())
{
console.error(result.error(), result.error_description());
}
else
{
console.log(result.data());
}
}
);
require_once('crest.php');
$result = CRest::call(
'log.blogpost.get',
[
'POST_ID' => 217
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
HTTP Status: 200
Example response:
{
"result": [
{
"ID": "217",
"BLOG_ID": "299",
"PUBLISH_STATUS": "P",
"TITLE": "New Regulations",
"AUTHOR_ID": "1269",
"ENABLE_COMMENTS": "Y",
"NUM_COMMENTS": "0",
"CODE": null,
"MICRO": "N",
"DETAIL_TEXT": "The approval process will be updated starting November 1.",
"DATE_PUBLISH": "2026-03-17T15:29:15+01:00",
"CATEGORY_ID": "9,11,13",
"HAS_SOCNET_ALL": "N",
"HAS_TAGS": "Y",
"HAS_IMAGES": "N",
"HAS_PROPS": "Y",
"HAS_COMMENT_IMAGES": null,
"UF_BLOG_POST_DOC": {
"ID": "1",
"ENTITY_ID": "BLOG_POST",
"FIELD_NAME": "UF_BLOG_POST_DOC",
"USER_TYPE_ID": "file",
"XML_ID": "UF_BLOG_POST_DOC",
"SORT": "100",
"MULTIPLE": "Y",
"MANDATORY": "N",
"SHOW_FILTER": "N",
"SHOW_IN_LIST": "N",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "Y",
"SETTINGS": {
"SIZE": 20,
"LIST_WIDTH": 0,
"LIST_HEIGHT": 0,
"MAX_SHOW_SIZE": 0,
"MAX_ALLOWED_SIZE": 0,
"EXTENSIONS": [],
"TARGET_BLANK": "Y",
"DEFAULT_VIEW": null
},
"EDIT_FORM_LABEL": null,
"LIST_COLUMN_LABEL": null,
"LIST_FILTER_LABEL": null,
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
"USER_TYPE": {
"USER_TYPE_ID": "file",
"CLASS_NAME": "Bitrix\Main\UserField\Types\FileType",
"EDIT_CALLBACK": ["Bitrix\Main\UserField\Types\FileType", "renderEdit"],
"VIEW_CALLBACK": ["Bitrix\Main\UserField\Types\FileType", "renderView"],
"USE_FIELD_COMPONENT": true,
"DESCRIPTION": "File",
"BASE_TYPE": "file"
},
"VALUE": false,
"ENTITY_VALUE_ID": 217,
"VALUE_EXISTS": true,
"VALUE_RAW": null,
"CUSTOM_DATA": []
},
"UF_BLOG_POST_URL_PRV": {
"ID": "5",
"ENTITY_ID": "BLOG_POST",
"FIELD_NAME": "UF_BLOG_POST_URL_PRV",
"USER_TYPE_ID": "url_preview",
"XML_ID": "UF_BLOG_POST_URL_PRV",
"SORT": "100",
"MULTIPLE": "N",
"MANDATORY": "N",
"SHOW_FILTER": "N",
"SHOW_IN_LIST": "N",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "Y",
"SETTINGS": [],
"EDIT_FORM_LABEL": null,
"LIST_COLUMN_LABEL": null,
"LIST_FILTER_LABEL": null,
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
"USER_TYPE": {
"USER_TYPE_ID": "url_preview",
"CLASS_NAME": "Bitrix\Main\UrlPreview\UrlPreviewUserType",
"DESCRIPTION": "Link preview content",
"BASE_TYPE": "int"
},
"VALUE": null,
"ENTITY_VALUE_ID": 217,
"VALUE_EXISTS": true,
"VALUE_RAW": null,
"CUSTOM_DATA": []
},
"UF_GRATITUDE": {
"ID": "9",
"ENTITY_ID": "BLOG_POST",
"FIELD_NAME": "UF_GRATITUDE",
"USER_TYPE_ID": "integer",
"XML_ID": "UF_GRATITUDE",
"SORT": "100",
"MULTIPLE": "N",
"MANDATORY": "N",
"SHOW_FILTER": "N",
"SHOW_IN_LIST": "N",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "N",
"SETTINGS": {
"SIZE": 20,
"MIN_VALUE": 0,
"MAX_VALUE": 0,
"DEFAULT_VALUE": null
},
"EDIT_FORM_LABEL": null,
"LIST_COLUMN_LABEL": null,
"LIST_FILTER_LABEL": null,
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
"USER_TYPE": {
"USER_TYPE_ID": "integer",
"CLASS_NAME": "Bitrix\Main\UserField\Types\IntegerType",
"EDIT_CALLBACK": ["Bitrix\Main\UserField\Types\IntegerType", "renderEdit"],
"VIEW_CALLBACK": ["Bitrix\Main\UserField\Types\IntegerType", "renderView"],
"USE_FIELD_COMPONENT": true,
"DESCRIPTION": "Integer",
"BASE_TYPE": "int"
},
"VALUE": null,
"ENTITY_VALUE_ID": 217,
"VALUE_EXISTS": true,
"VALUE_RAW": null,
"CUSTOM_DATA": []
},
"UF_BLOG_POST_FILE": {
"ID": "19",
"ENTITY_ID": "BLOG_POST",
"FIELD_NAME": "UF_BLOG_POST_FILE",
"USER_TYPE_ID": "disk_file",
"XML_ID": "UF_BLOG_POST_FILE",
"SORT": "100",
"MULTIPLE": "Y",
"MANDATORY": "N",
"SHOW_FILTER": "N",
"SHOW_IN_LIST": "N",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "Y",
"SETTINGS": {
"IBLOCK_ID": null,
"SECTION_ID": null,
"UF_TO_SAVE_ALLOW_EDIT": false
},
"EDIT_FORM_LABEL": null,
"LIST_COLUMN_LABEL": null,
"LIST_FILTER_LABEL": null,
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
"USER_TYPE": {
"USER_TYPE_ID": "disk_file",
"CLASS_NAME": "Bitrix\Disk\Uf\FileUserType",
"DESCRIPTION": "File (Drive)",
"BASE_TYPE": "int",
"TAG": ["DISK FILE ID", "DOCUMENT ID"]
},
"VALUE": [505],
"ENTITY_VALUE_ID": 217,
"VALUE_EXISTS": true,
"VALUE_RAW": "a:1:{i:0;i:505;}",
"CUSTOM_DATA": {
"PHOTO_TEMPLATE": "gallery"
}
},
"UF_BLOG_POST_IMPRTNT": {
"ID": "83",
"ENTITY_ID": "BLOG_POST",
"FIELD_NAME": "UF_BLOG_POST_IMPRTNT",
"USER_TYPE_ID": "integer",
"XML_ID": "UF_BLOG_POST_IMPRTNT",
"SORT": "100",
"MULTIPLE": "N",
"MANDATORY": "N",
"SHOW_FILTER": "N",
"SHOW_IN_LIST": "Y",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "N",
"SETTINGS": {
"SIZE": 20,
"MIN_VALUE": 0,
"MAX_VALUE": 0,
"DEFAULT_VALUE": null
},
"EDIT_FORM_LABEL": "Important Message",
"LIST_COLUMN_LABEL": "Important",
"LIST_FILTER_LABEL": "Important",
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
"USER_TYPE": {
"USER_TYPE_ID": "integer",
"CLASS_NAME": "Bitrix\Main\UserField\Types\IntegerType",
"EDIT_CALLBACK": ["Bitrix\Main\UserField\Types\IntegerType", "renderEdit"],
"VIEW_CALLBACK": ["Bitrix\Main\UserField\Types\IntegerType", "renderView"],
"USE_FIELD_COMPONENT": true,
"DESCRIPTION": "Integer",
"BASE_TYPE": "int"
},
"VALUE": null,
"ENTITY_VALUE_ID": 217,
"VALUE_EXISTS": true,
"VALUE_RAW": null,
"CUSTOM_DATA": []
},
"UF_IMPRTANT_DATE_END": {
"ID": "85",
"ENTITY_ID": "BLOG_POST",
"FIELD_NAME": "UF_IMPRTANT_DATE_END",
"USER_TYPE_ID": "datetime",
"XML_ID": "UF_IMPRTANT_DATE_END",
"SORT": "100",
"MULTIPLE": "N",
"MANDATORY": "N",
"SHOW_FILTER": "N",
"SHOW_IN_LIST": "N",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "N",
"SETTINGS": {
"DEFAULT_VALUE": {
"TYPE": "NONE",
"VALUE": ""
},
"USE_SECOND": "Y",
"USE_TIMEZONE": "N"
},
"EDIT_FORM_LABEL": "Expiration Date",
"LIST_COLUMN_LABEL": "Expiration",
"LIST_FILTER_LABEL": null,
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
"USER_TYPE": {
"USER_TYPE_ID": "datetime",
"CLASS_NAME": "Bitrix\Main\UserField\Types\DateTimeType",
"EDIT_CALLBACK": ["Bitrix\Main\UserField\Types\DateTimeType", "renderEdit"],
"VIEW_CALLBACK": ["Bitrix\Main\UserField\Types\DateTimeType", "renderView"],
"USE_FIELD_COMPONENT": true,
"DESCRIPTION": "Date with time",
"BASE_TYPE": "datetime"
},
"VALUE": "",
"ENTITY_VALUE_ID": 217,
"VALUE_EXISTS": true,
"VALUE_RAW": null,
"CUSTOM_DATA": []
},
"UF_BLOG_POST_VOTE": {
"ID": "131",
"ENTITY_ID": "BLOG_POST",
"FIELD_NAME": "UF_BLOG_POST_VOTE",
"USER_TYPE_ID": "vote",
"XML_ID": "UF_BLOG_POST_VOTE",
"SORT": "100",
"MULTIPLE": "N",
"MANDATORY": "N",
"SHOW_FILTER": "N",
"SHOW_IN_LIST": "Y",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "N",
"SETTINGS": {
"CHANNEL_ID": 1,
"UNIQUE": 8,
"UNIQUE_IP_DELAY": {
"DELAY": "10",
"DELAY_TYPE": "D"
},
"NOTIFY": "I"
},
"EDIT_FORM_LABEL": null,
"LIST_COLUMN_LABEL": null,
"LIST_FILTER_LABEL": null,
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
"USER_TYPE": {
"USER_TYPE_ID": "vote",
"CLASS_NAME": "Bitrix\Vote\Uf\VoteUserType",
"DESCRIPTION": "Poll",
"BASE_TYPE": "int"
},
"VALUE": null,
"ENTITY_VALUE_ID": 217,
"VALUE_EXISTS": true,
"VALUE_RAW": null,
"CUSTOM_DATA": []
},
"UF_MAIL_MESSAGE": {
"ID": "439",
"ENTITY_ID": "BLOG_POST",
"FIELD_NAME": "UF_MAIL_MESSAGE",
"USER_TYPE_ID": "mail_message",
"XML_ID": "",
"SORT": "100",
"MULTIPLE": "N",
"MANDATORY": "N",
"SHOW_FILTER": "N",
"SHOW_IN_LIST": "N",
"EDIT_IN_LIST": "Y",
"IS_SEARCHABLE": "N",
"SETTINGS": null,
"EDIT_FORM_LABEL": null,
"LIST_COLUMN_LABEL": null,
"LIST_FILTER_LABEL": null,
"ERROR_MESSAGE": null,
"HELP_MESSAGE": null,
"USER_TYPE": {
"USER_TYPE_ID": "mail_message",
"CLASS_NAME": "Bitrix\Mail\MessageUserType",
"DESCRIPTION": "Email",
"BASE_TYPE": "int",
"VIEW_CALLBACK": ["Bitrix\Mail\MessageUserType", "getPublicView"],
"EDIT_CALLBACK": ["Bitrix\Mail\MessageUserType", "getPublicEdit"],
"onBeforeSave": ["Bitrix\Mail\MessageUserType", "onBeforeSave"],
"onDelete": ["Bitrix\Mail\MessageUserType", "onDelete"]
},
"VALUE": null,
"ENTITY_VALUE_ID": 217,
"VALUE_EXISTS": true,
"VALUE_RAW": null,
"CUSTOM_DATA": []
},
"FILES": [505]
}
],
"total": 1,
"time": {
"start": 1773754540,
"finish": 1773754540.902101,
"duration": 0.9021010398864746,
"processing": 0,
"date_start": "2026-03-17T16:35:40+01:00",
"date_finish": "2026-03-17T16:35:40+01:00",
"operating_reset_at": 1773755140,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
Parameters of the message or a list of messages from the News Feed. An empty array means there are no records that meet the filter criteria. |
|
ID |
Message ID. |
|
BLOG_ID |
ID of the blog to which the message belongs. |
|
PUBLISH_STATUS |
Publication status of the message. |
|
TITLE |
Title of the message. |
|
AUTHOR_ID |
ID of the message author. |
|
ENABLE_COMMENTS |
Are comments allowed? |
|
NUM_COMMENTS |
Number of comments. |
|
CODE |
Symbolic code of the message. |
|
MICRO |
Indicator of a micro-message. |
|
DETAIL_TEXT |
Text of the message. |
|
DATE_PUBLISH |
Date and time of publication. |
|
CATEGORY_ID |
Comma-separated IDs of tags (categories). |
|
HAS_SOCNET_ALL |
Indicator of publication for all authorized users. |
|
HAS_TAGS |
Indicator of the presence of tags. |
|
HAS_IMAGES |
Indicator of the presence of images. |
|
HAS_PROPS |
Indicator of the presence of custom fields. |
|
HAS_COMMENT_IMAGES |
Indicator of the presence of images in comments. |
|
UF_* |
Custom fields of the message. The set of fields depends on the account settings. The format of each field is described below. |
|
UF_BLOG_POST_DOC |
Additional field with files. |
|
UF_BLOG_POST_URL_PRV |
Link preview data from the message text, if the preview was successfully generated. |
|
UF_GRATITUDE |
Service field for the Gratitude functionality. |
|
UF_BLOG_POST_FILE |
Drive files attached to the message. |
|
UF_BLOG_POST_IMPRTNT |
Indicator of an important message. |
|
UF_IMPRTANT_DATE_END |
Date and time until which the message is considered important. |
|
UF_BLOG_POST_VOTE |
Poll data if a poll is attached to the message. |
|
UF_MAIL_MESSAGE |
Connection of the message with email. |
|
FILES |
Array of file IDs from |
|
next |
Value for pagination (if available). |
|
total |
Total number of found items. |
|
time |
Information about the execution time of the request. |
Object UF_*
|
Name |
Description |
|
ID |
ID of the custom field. |
|
ENTITY_ID |
Object of the field. |
|
FIELD_NAME |
Code of the custom field. |
|
USER_TYPE_ID |
Type of the custom field. |
|
XML_ID |
External code of the field. |
|
SORT |
Sort order of the field. |
|
MULTIPLE |
Indicator of a multiple field. |
|
MANDATORY |
Indicator of mandatory. |
|
SHOW_FILTER |
Indicator of displaying the field in the filter. |
|
SHOW_IN_LIST |
Indicator of displaying the field in lists. |
|
EDIT_IN_LIST |
Indicator of editing the field in lists. |
|
IS_SEARCHABLE |
Indicator of the field's participation in search. |
|
SETTINGS |
Field settings depending on the type. |
|
EDIT_FORM_LABEL |
Label of the field in the edit form. |
|
LIST_COLUMN_LABEL |
Label of the field in list columns. |
|
LIST_FILTER_LABEL |
Label of the field in the filter. |
|
ERROR_MESSAGE |
Error message of the field. |
|
HELP_MESSAGE |
Help message for the field. |
|
USER_TYPE |
Description of the custom field type. |
|
VALUE |
Value of the field. |
|
ENTITY_VALUE_ID |
ID of the message to which the field value belongs. |
|
VALUE_EXISTS |
Indicator of the presence of the field value. |
|
VALUE_RAW |
Raw value of the field. |
|
CUSTOM_DATA |
Additional data of the field. |
Object USER_TYPE
|
Name |
Description |
|
USER_TYPE_ID |
Identifier of the custom field type. |
|
CLASS_NAME |
PHP class of the field type handler. |
|
EDIT_CALLBACK |
Handler that forms the edit interface of the field. |
|
VIEW_CALLBACK |
Handler that forms the display of the field in the view interface. |
|
USE_FIELD_COMPONENT |
Indicator of using the standard field component. |
|
DESCRIPTION |
Name of the field type. |
|
BASE_TYPE |
Base type of the value. |
|
TAG |
Additional tags of the field type. |
Error Handling
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not permitted for calls using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The HTTPS protocol is required for method calls |
|
|
|
The REST API is blocked due to overload. This is a manual individual block; please contact Bitrix24 technical support to lift it |
|
|
|
The REST API is only available on commercial plans |
|
|
|
The user associated with the access token or webhook used to call the method lacks the necessary permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the portal administrator has restricted access to this application to specific users only |
|
|
|
The public part of the site is closed. To open the public part of the site on an on-premise installation, disable the "Temporary closure of the public part of the site" option. Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |
Continue Learning
- Add a Message to the News Feed log.blogpost.add
- Update News Feed Message log.blogpost.update
- Delete News Feed Message log.blogpost.delete
- Add Recipients to News Feed Message log.blogpost.share
- View Users Who Read an Important Message log.blogpost.getusers.important