会话POST
标记会话未读
把会话标记为未读。conversation_id 通过 JSON body 传入。
https://api.unifyport.ai/v1/accounts/{account_id}/conversations/unread请求头
X-Api-Keystring必填
工作区 API Key,工作区由该请求头解析得到。
Content-Typestring必填
发送 JSON 请求体时使用 application/json。
路径参数
account_idstring必填
用于该 conversations 路由的标识符。
请求体
conversation_idstring必填
目标会话标识。
响应体
okboolean
操作成功时始终为 true;失败时返回非 2xx 状态码而非该字段。
响应
200200 OK
请求成功,响应体示例如上。
400请求错误
请求体、路径或参数不合法。
401未授权
X-Api-Key 请求头缺失或无效。
404未找到
未找到请求的渠道资源。
409冲突
当前操作与已有的渠道账号或资源冲突。
500服务端错误
服务端遇到了未预期的错误。
501渠道未实现
所选渠道尚未实现该操作。
502上游网关错误
渠道适配器或上游渠道未能完成该操作。
请求
curl -X POST https://api.unifyport.ai/v1/accounts/{account_id}/conversations/unread \
-H "X-Api-Key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"conversation_id": "peer_example"
}'响应
{
"data": {
"ok": true
}
}