消息与反馈/BearerWrite
Submit user feedback
Submit product feedback explicitly requested by the user as their authenticated account. Saves a text message in the existing website feedback conversation and notifies the team. Never submit automatically or include credentials. Returns the saved message id and createdAt; after an uncertain response, read feedback.list before retrying to avoid duplicates.
Endpoint
POST
/api/v1/agent/capabilities/ielts_feedback_create请求参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| content | string | 是 | User-authorized feedback text. Describe the issue, expected behavior and reproduction steps; exclude tokens, passwords and unrelated private data. |
| pagePath | string | 否 | Optional affected IELTS Buddy page path, without credentials or sensitive query parameters. |
调用示例
curl -X POST \
'https://work.ieltsbuddy.igopx.cn/api/v1/agent/capabilities/ielts_feedback_create' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer $IELTS_BUDDY_TOKEN' \
--data '{"content":"<content>"}'请求结构
{
"type": "object",
"properties": {
"content": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"description": "User-authorized feedback text. Describe the issue, expected behavior and reproduction steps; exclude tokens, passwords and unrelated private data."
},
"pagePath": {
"description": "Optional affected IELTS Buddy page path, without credentials or sensitive query parameters.",
"type": "string",
"maxLength": 500
}
},
"required": [
"content"
],
"additionalProperties": false
}统一响应
Saved feedback receipt in the authenticated user's existing message conversation.
- Text only, up to 2,000 characters. The server derives the sender from the Agent Token; no userId is accepted.
- This write is not idempotent. Read feedback.list before retrying after a timeout.
{
"code": 0,
"data": {
"id": 123,
"createdAt": "2026-09-09T00:00:00.000Z"
},
"message": "ok"
}返回数据结构
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"createdAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"createdAt"
]
}错误码
400
40001请求参数不符合接口契约401
40101缺少或使用了无效的访问令牌403
40301访问令牌不包含接口所需权限404
40401接口或目标资源不存在