Documentation topics
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

FieldTypeRules
message_idstring, requiredID (wamid) of the received message to mark read.
typingboolean, optionalDefault 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.