標記一則入站訊息為已讀
POST
/v1/messages/read標記一則入站訊息為已讀(可選附帶輸入中指示器);即時生效、不計費,不是發送。
驗證
請求標頭攜帶 Authorization: Bearer <API_KEY>,所需 scope:messages:send。API Key 的可存取資源由目前授權範圍決定。
請求
Base URL:https://api.bluehola.com
請求本文
請求本文為必填。
請求本文欄位
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
phoneNumberId | string | 是 | 平台內號碼 ID,pn_... |
messageId | string | 是 | 入站訊息的 wamid.* |
typing | boolean | 否 | true 時附帶「對方正在輸入」指示器 |
Content-Type:application/json
Schema:
{
"type": "object",
"properties": {
"phoneNumberId": {
"type": "string",
"description": "string · 必填 — 平台內號碼 ID,pn_..."
},
"messageId": {
"type": "string",
"description": "string · 必填 — 入站訊息的 wamid.*"
},
"typing": {
"type": "string",
"description": "boolean · 可選 — true 時附帶「對方正在輸入」指示器"
}
},
"required": [
"phoneNumberId",
"messageId"
]
}
回應
| 狀態碼 | 說明 |
|---|---|
200 | OK |
4xx | 用戶端錯誤 |
通用錯誤信封及處理建議見錯誤代碼。
補充說明
直連 Meta 即時端點,不經過 Transactional Outbox、不佔用發送配額/限流;typing=true 時附帶的輸入中指示器只在很短時間內(約 25 秒或下一則訊息之前)生效,且只有窗口內、messageId 對應的原始入站訊息仍有效(Meta 建議 30 天內標記)才會成功。