← Blog

·

How to mark a message as read (blue ticks) with the WhatsApp API

Updated on November 24, 2026

To mark a message as read with the official WhatsApp Business API, send POST /<PHONE_NUMBER_ID>/messages with "status": "read" and the message_id (the wamid) of the message the customer sent. Meta returns {"success": true}, the customer sees two blue ticks, and in one-to-one chats the earlier messages are marked as read too. You must do this within 30 days of receiving the message.

The call itself is simple. The hard part is deciding when to make it: as soon as the webhook arrives, after your bot has processed the message, or only when a human agent opens the conversation. This guide covers the payload, the rules Meta documents, and an implementation pattern built on a queue.

The “mark as read” payload

It uses the same send endpoint as the rest of the official WhatsApp API:

curl -X POST "https://graph.facebook.com/v27.0/PHONE_NUMBER_ID/messages" \
  -H "Authorization: Bearer $WHATSAPP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "status": "read",
    "message_id": "wamid.HBgLNTU4NDk5OTk5OTk5OTkVAgASGBQzQTdCNTg5RjY1MEMyRjlGMjRGNgA="
  }'

Successful response:

{ "success": true }

There is no to or type in the body. Meta finds the conversation through the message_id, which is the id field of the incoming message in the webhook (entry[0].changes[0].value.messages[0].id).

Rules documented by Meta

The Mark messages as read page lists four rules that shape your implementation:

RuleWhat it means in practice
Mark within 30 days of receiptMarking old messages during a history migration won’t work
In one-to-one chats, earlier messages are marked tooMark only the last processed message of a burst
In groups, each message must be marked individuallyMarking one doesn’t mark the earlier group messages
An invalid message_id returns error 131009Make sure you’re using the ID of a received message, not a sent one

Error 131009 (“Parameter value is not valid”) often shows up when code uses the wamid returned when the business sent a message. That ID belongs to your message; read receipts apply to incoming messages. More causes of this error are in errors 131008 and 131009.

Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →

Don’t confuse it with the “read” status webhook

The API has two different kinds of “read”:

  • You mark the customer’s message as read. That’s the call in this article. The customer sees blue ticks on their message.
  • The customer reads the message you sent. Meta tells you with a status webhook containing "status": "read", tied to your message’s wamid. You don’t do anything to trigger it.

Both use the word read, but one is an action you take and the other is an event you receive. The full sent, delivered, read and failed lifecycle is covered in message status webhooks.

When to call it: three strategies

Meta defines how to mark a message as read, not when. Timing is a product decision, and each option sends a different signal to the customer. The recommendations below are good practices, not Meta rules.

1. As soon as the webhook arrives

Blue ticks appear almost instantly. This works for bots that answer within seconds, because the customer sees the read receipt and the reply close together.

The risk: if processing fails after the message was marked, the customer is left with a “read” message and no answer. To them, that looks like being ignored.

2. After the bot has processed the message

The worker marks the message as read only when the answer is ready, or about to be sent. This is the safest pattern for bots, including AI bots: blue ticks become a sign that a reply is on its way.

Pair it with the typing indicator, which goes in the same payload (see the next section). Meta itself calls the indicator good practice when your reply will take a few seconds.

3. When a human agent opens the conversation

In a multi-agent setup, marking messages as read on receipt sets the wrong expectation: the customer sees blue ticks while the chat is still waiting in the queue and nobody has looked at it. A better option is to trigger the read receipt when an agent opens the ticket in your dashboard. That way, blue ticks mean “a person has seen this.”

The same applies to bot-to-human handoff: the bot can mark as read the message it answered, while later messages that go to the human queue stay unread until an agent takes over.

ScenarioSuggested timingWhy
Bot with instant replyOn receipt or after processingThe customer sees the read receipt and the reply almost together
AI bot or slow lookupAfter processing, with “typing…”Blue ticks signal that a reply is coming
Human support queueWhen the agent opens the conversationAvoids blue ticks when nobody has read the message
Outside business hoursTogether with the automatic away messageThe customer knows they were seen and when to expect a reply

Mark as read and show “typing…” in one call

The typing indicator has no endpoint of its own. It’s an extra field in the read payload:

{
  "messaging_product": "whatsapp",
  "status": "read",
  "message_id": "wamid.HBgLNTU4NDk5OTk5OTk5OTkVAgASGBQzQTdCNTg5RjY1MEMyRjlGMjRGNgA=",
  "typing_indicator": {
    "type": "text"
  }
}

Rules from the typing indicators documentation:

  • The indicator disappears when you reply or after 25 seconds, whichever comes first.
  • Only show it if you are actually going to reply.
  • The call also marks the message as read. There’s no “typing…” without blue ticks.

That last point matters for strategy 3: in a human queue, you can’t show “typing…” without also marking the message as read. If no agent has opened the chat yet, show neither. The article on typing indicators, reactions and quoted replies goes deeper into the indicator and emoji reactions.

Queue-based implementation (Node.js)

The webhook should return 200 quickly and push the work to a queue. The worker decides when to mark the message as read. The example below uses Node.js 18+ with native fetch and a generic queue (BullMQ, SQS or similar).

const GRAPH = 'https://graph.facebook.com/v27.0';
const PHONE_ID = process.env.PHONE_NUMBER_ID;
const TOKEN = process.env.WHATSAPP_TOKEN;

async function markAsRead(messageId, { typing = false } = {}) {
  const body = {
    messaging_product: 'whatsapp',
    status: 'read',
    message_id: messageId,
  };
  if (typing) body.typing_indicator = { type: 'text' };

  const r = await fetch(`${GRAPH}/${PHONE_ID}/messages`, {
    method: 'POST',
    headers: { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application/json' },
    body: JSON.stringify(body),
  });
  const json = await r.json();
  if (!r.ok) {
    // 131009: invalid message_id (e.g. a sent message ID instead of a received one)
    console.error('mark as read failed', json.error);
    return false;
  }
  return json.success === true;
}

// Worker: receives a message already extracted from the webhook
async function processMessage(msg, conversation) {
  if (conversation.mode === 'human') {
    // Human queue: store the ID and mark it when an agent opens the chat
    conversation.lastUnread = msg.id;
    return;
  }

  // Bot: show read + typing, then build the reply
  await markAsRead(msg.id, { typing: true });
  const reply = await buildReply(msg, conversation); // your business logic or AI
  await sendText(msg.from, reply);
}

// Called by your dashboard when an agent opens the conversation
async function onConversationOpened(conversation) {
  if (conversation.lastUnread) {
    await markAsRead(conversation.lastUnread);
    conversation.lastUnread = null;
  }
}

buildReply and sendText are functions from your own system. Three details in this code:

  • Keep only the last ID. In one-to-one chats, marking the last message marks the earlier ones. You don’t need one call per message.
  • A failure doesn’t break the flow. If marking fails, the reply is still sent. Blue ticks are cosmetic; the reply is what matters.
  • Respect the 30 days. A conversation left in the queue longer than that can no longer be marked as read.

If your replies often take longer than 25 seconds, send a short message (“Checking that for you, one moment”) before the final answer, since the indicator disappears on its own after that. To answer one specific question from a burst, use a quoted reply with context.

How to do it with Vectalk

Vectalk is a proxy for the official Cloud API, and the read payload is the same as Meta’s. The Vectalk documentation describes marking as read like this:

curl -X POST https://apis.vectalk.com.br/api/messages \
  -H "Authorization: Bearer $VECTALK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "status": "read",
    "message_id": "wamid.HBgLNTUx..."
  }'

The message_id is messages[0].id from the webhook, which arrives in the same format Meta uses. The typing_indicator field isn’t in the Vectalk documentation today; before using “typing…” in production, test it with your instance or check the Help Center.

Vectalk has no built-in support inbox, so the “mark as read when an agent opens the chat” logic lives in your system or in the support tool connected to the API. To get started, create an account at apps.vectalk.com.br/register.

Frequently asked questions

Does marking a message as read cost anything?

Marking as read isn’t a message sent to the customer: it’s a status update on their message, made through the same endpoint. Meta charges per delivered message, and rates are on the pricing page.

Do I need to mark every message in a burst?

Not in one-to-one chats. Marking the last message also marks the earlier ones. In groups, each message has to be marked separately.

Why do I get error 131009 when marking as read?

The message_id isn’t valid for this operation. The most common causes are using the ID of a message the business sent, a truncated ID, or a message received more than 30 days ago.

Can I show “typing…” without marking the message as read?

No. The typing indicator goes in the same payload as status: read, and the call marks the message as read. If you don’t want blue ticks, you can’t show the indicator either.

Does a customer who turned off read receipts see the blue ticks?

The mark-as-read documentation doesn’t cover this case. Keep your logic the same for every customer and don’t rely on blue ticks for any business rule.


Official sources consulted on November 24, 2026: Mark messages as read, Typing indicators, Status webhook, Error codes, Pricing, Vectalk: mark as read.

Put your business on the official WhatsApp

Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.