Mark Message as Read
curl --request POST \
--url https://api.flowiq.live/send-whatsapp \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+27123456789",
"message_type": "read",
"read": {
"message_id": "<string>"
}
}
'import requests
url = "https://api.flowiq.live/send-whatsapp"
payload = {
"phone_number": "+27123456789",
"message_type": "read",
"read": { "message_id": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '+27123456789',
message_type: 'read',
read: {message_id: '<string>'}
})
};
fetch('https://api.flowiq.live/send-whatsapp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flowiq.live/send-whatsapp",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'phone_number' => '+27123456789',
'message_type' => 'read',
'read' => [
'message_id' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flowiq.live/send-whatsapp"
payload := strings.NewReader("{\n \"phone_number\": \"+27123456789\",\n \"message_type\": \"read\",\n \"read\": {\n \"message_id\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flowiq.live/send-whatsapp")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+27123456789\",\n \"message_type\": \"read\",\n \"read\": {\n \"message_id\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flowiq.live/send-whatsapp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"+27123456789\",\n \"message_type\": \"read\",\n \"read\": {\n \"message_id\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Message from 27123456789 marked as read",
"data": {
"message_type": "read",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"whatsapp_id": "27123456789",
"message_id": "wamid.HBgLMjc4MTIzNDU2NzgVAgASGBQzRUI...",
"message_id_source": "request",
"marked_read": true,
"typing_shown": false
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"meta_error_code": 123
}Send Messages
Mark Message as Read
Mark a message the customer sent as read (blue ticks) without showing “typing…”. WhatsApp also marks every earlier message in that chat as read. Nothing is stored as a message. Needs the send permission.
POST
/
send-whatsapp
Mark Message as Read
curl --request POST \
--url https://api.flowiq.live/send-whatsapp \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+27123456789",
"message_type": "read",
"read": {
"message_id": "<string>"
}
}
'import requests
url = "https://api.flowiq.live/send-whatsapp"
payload = {
"phone_number": "+27123456789",
"message_type": "read",
"read": { "message_id": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '+27123456789',
message_type: 'read',
read: {message_id: '<string>'}
})
};
fetch('https://api.flowiq.live/send-whatsapp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flowiq.live/send-whatsapp",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'phone_number' => '+27123456789',
'message_type' => 'read',
'read' => [
'message_id' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flowiq.live/send-whatsapp"
payload := strings.NewReader("{\n \"phone_number\": \"+27123456789\",\n \"message_type\": \"read\",\n \"read\": {\n \"message_id\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flowiq.live/send-whatsapp")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+27123456789\",\n \"message_type\": \"read\",\n \"read\": {\n \"message_id\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flowiq.live/send-whatsapp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"+27123456789\",\n \"message_type\": \"read\",\n \"read\": {\n \"message_id\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Message from 27123456789 marked as read",
"data": {
"message_type": "read",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"whatsapp_id": "27123456789",
"message_id": "wamid.HBgLMjc4MTIzNDU2NzgVAgASGBQzRUI...",
"message_id_source": "request",
"marked_read": true,
"typing_shown": false
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"meta_error_code": 123
}Mark a message the customer sent as read (blue ticks) without showing “typing…”. Use it to acknowledge a message the moment your code accepts it, then send a typing indicator only when you start on the reply.
WhatsApp also marks every earlier message in that chat as read. Nothing is stored in the chat.
Without a
A typing indicator always marks the message as read too, so there is no typing without read. A read receipt cannot be undone.
The API key needs the
Basic Usage
curl -X POST "https://api.flowiq.live/send-whatsapp" \
-H "Authorization: Bearer fiq_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+27123456789",
"message_type": "read"
}'
message_id, FlowIQ uses the customer’s latest WhatsApp message. To mark a specific message, pass its id (the whatsapp_message_id of the message_received webhook):
{
"phone_number": "+27123456789",
"message_type": "read",
"read": {
"message_id": "wamid.HBgLMjc4MTIzNDU2NzgVAgASGBQzRUI..."
}
}
Read or typing?
| You send | Customer sees |
|---|---|
message_type: "read" | Blue ticks only |
message_type: "typing" | Blue ticks and “typing…” until you reply or ~25 seconds |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
phone_number | string | Yes | The customer’s WhatsApp number with country code. The contact must exist in FlowIQ |
message_type | string | Yes | Must be "read" |
read.message_id | string | No | A message the customer sent (wamid.…). Default: their latest message |
send permission.
Response
Success (200)
{
"success": true,
"message": "Message from 27123456789 marked as read",
"data": {
"message_type": "read",
"contact_id": "4f1c2a3b-…",
"whatsapp_id": "27123456789",
"message_id": "wamid.HBgLMjc4MTIzNDU2NzgVAgASGBQzRUI...",
"message_id_source": "latest_inbound",
"marked_read": true,
"typing_shown": false
}
}
Errors
| Status | When |
|---|---|
400 | read.message_id is not a WhatsApp message id |
403 | The API key has no send permission |
404 | No contact with that number |
409 | The customer has never sent you a WhatsApp message, so there is nothing to mark |
502 | WhatsApp refused it (for example a message id it does not know); message and meta_error_code carry its reason |
Integration Example
Acknowledge on arrival, show typing only while the reply is being written:async function send(apiKey, body) {
const response = await fetch("https://api.flowiq.live/send-whatsapp", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify(body),
});
const data = await response.json();
if (!response.ok) throw new Error(data.message);
return data;
}
async function handleIncoming(apiKey, phoneNumber, incomingMessageId, doWork, buildReply) {
// 1. Accepted: blue ticks, no typing yet
await send(apiKey, { phone_number: phoneNumber, message_type: "read", read: { message_id: incomingMessageId } });
const result = await doWork(); // lookups, tools, however long they take
// 2. Writing the reply: now show typing
await send(apiKey, { phone_number: phoneNumber, message_type: "typing", typing: { message_id: incomingMessageId } });
const text = await buildReply(result);
// 3. Reply
return send(apiKey, { phone_number: phoneNumber, message_type: "text", text });
}
Authorizations
Body
application/json

