Queue first comments on a published post
curl --request POST \
--url https://monitor.solobiz.academy/api/open/v1/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"post_id": "66a1b2c3d4e5f60718293a4b",
"comments": [
{
"message": "Extra comment",
"extra_time": 0
}
],
"id_thirdparty": "demo-comment-0001"
}
'import requests
url = "https://monitor.solobiz.academy/api/open/v1/comments"
payload = {
"post_id": "66a1b2c3d4e5f60718293a4b",
"comments": [
{
"message": "Extra comment",
"extra_time": 0
}
],
"id_thirdparty": "demo-comment-0001"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
post_id: '66a1b2c3d4e5f60718293a4b',
comments: [{message: 'Extra comment', extra_time: 0}],
id_thirdparty: 'demo-comment-0001'
})
};
fetch('https://monitor.solobiz.academy/api/open/v1/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Operation successful",
"data": {
"comments": [
{
"comment_job_id": "<string>",
"post_id": "<string>",
"channel_id": "<string>",
"platform": "facebook",
"seq": 123,
"message": "<string>",
"image_url": "<string>",
"due_at": "2023-11-07T05:31:56Z",
"status": "pending",
"platform_comment_id": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"error": {
"kind": "<string>",
"code": "<string>",
"subcode": "<string>",
"message": "<string>"
}
}
]
},
"timestamp": "2023-11-07T05:31:56Z",
"meta": {}
}{
"success": false,
"error": {
"message": "<string>",
"code": "post_not_published",
"issues": [
{
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"message": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"message": "Insufficient workspace role",
"code": "ForbiddenException"
},
"timestamp": "2026-11-19T00:00:00.000Z"
}{
"success": false,
"error": {
"message": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"message": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123
},
"timestamp": "2023-11-07T05:31:56Z"
}Comments
Queue first comments on a published post
⚠️ Live action - queues comments that the worker posts from the real channels on production.
Comments are posted by the channel on its own published post (cross-channel is rejected). Delay (extra_time, minutes) counts from this call. Max 10 comments per post per channel, including existing ones. Repeating the call with the same id_thirdparty on the same post returns the first call’s jobs and comments nothing again. The target must already be published (400 post_not_published).
Required role: editor.
POST
/
comments
Queue first comments on a published post
curl --request POST \
--url https://monitor.solobiz.academy/api/open/v1/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"post_id": "66a1b2c3d4e5f60718293a4b",
"comments": [
{
"message": "Extra comment",
"extra_time": 0
}
],
"id_thirdparty": "demo-comment-0001"
}
'import requests
url = "https://monitor.solobiz.academy/api/open/v1/comments"
payload = {
"post_id": "66a1b2c3d4e5f60718293a4b",
"comments": [
{
"message": "Extra comment",
"extra_time": 0
}
],
"id_thirdparty": "demo-comment-0001"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
post_id: '66a1b2c3d4e5f60718293a4b',
comments: [{message: 'Extra comment', extra_time: 0}],
id_thirdparty: 'demo-comment-0001'
})
};
fetch('https://monitor.solobiz.academy/api/open/v1/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Operation successful",
"data": {
"comments": [
{
"comment_job_id": "<string>",
"post_id": "<string>",
"channel_id": "<string>",
"platform": "facebook",
"seq": 123,
"message": "<string>",
"image_url": "<string>",
"due_at": "2023-11-07T05:31:56Z",
"status": "pending",
"platform_comment_id": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"error": {
"kind": "<string>",
"code": "<string>",
"subcode": "<string>",
"message": "<string>"
}
}
]
},
"timestamp": "2023-11-07T05:31:56Z",
"meta": {}
}{
"success": false,
"error": {
"message": "<string>",
"code": "post_not_published",
"issues": [
{
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"message": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"message": "Insufficient workspace role",
"code": "ForbiddenException"
},
"timestamp": "2026-11-19T00:00:00.000Z"
}{
"success": false,
"error": {
"message": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": {
"message": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123
},
"timestamp": "2023-11-07T05:31:56Z"
}Ủy quyền
Nội dung
application/json

