會話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
}
}