Developer docs
Mark a message read
POST https://api.unpoll.cc/v1/agents/{id}/read
Use the agent's API key and the data.id of a message that the WhatsApp user sent to this agent.
curl "https://api.unpoll.cc/v1/agents/$AGENT_ID/read" \
-H "Authorization: Bearer $UNPOLL_API_KEY" \
-H 'Content-Type: application/json' \
-d '{ "message_id": "wamid.HBgONTA5...", "typing": true }'Fields
| Field | Type | Rules |
|---|---|---|
message_id | string, required | ID (wamid) of the received message to mark read. |
typing | boolean, optional | Default false. Also show a typing indicator for up to 25 seconds, or until you reply, whichever comes first. |
Show a typing indicator only when you intend to reply. For a reply that takes longer than 25 seconds, repeating the call refreshes it, subject to the read-call rate limit.
Response and retries
Returns 200 with:
{ "success": true }
Repeating the call is harmless, so it is safe to retry. Observe Retry-After on retryable errors. Read calls have their own 12-per-minute per-agent allowance, separate from sends and media downloads. Request bodies are limited to 64 KiB.
See errors for response codes and rate limits for pacing. The read route does not send a text reply; use send a text message for that.