跳转到主要内容
POST
/
api
/
v2
/
channels
/
engagement
/
comments
发表评论
curl --request POST \
  --url https://aitoearn.cn/api/v2/channels/engagement/comments \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "platformWorkId": "<string>",
  "content": "<string>"
}
'
{
  "code": 0,
  "message": "请求成功",
  "data": {
    "platform": "douyin",
    "actionType": "comment",
    "targetType": "work",
    "targetId": "string",
    "success": true,
    "platformActionId": "string",
    "createdAt": "2026-07-02T12:00:00.000Z"
  }
}

授权

X-Api-Key
string
header
必填

AiToEarn Open Platform API Key。

查询参数

accountId
string
必填

动作执行账号 ID

Minimum string length: 1

请求体

application/json
platform
enum<string>
必填

平台

可用选项:
douyin,
xhs,
wxSph,
KWAI,
youtube,
wxGzh,
bilibili,
twitter,
tiktok,
facebook,
instagram,
threads,
pinterest,
linkedin,
google_business
platformWorkId
string
必填

平台作品 ID

Minimum string length: 1
content
string
必填

评论内容

Minimum string length: 1
parentCommentId
string

父评论 ID

响应

200 - application/json

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

code
integer
必填

业务状态码。0 表示成功,非 0 表示业务错误。

message
string
必填

响应消息。

data
object
requestId
string

请求 ID。

timestamp
integer

错误响应时间戳,Unix 毫秒。