wirebox phone mark-read eva msg_01J8DEF789KLM012
import { Wirebox } from "@wirebox-sh/sdk";
const wb = new Wirebox();
const eva = await wb.getIdentity("eva");
const msg = await eva.phone.markMessageRead("msg_01J8DEF789KLM012");
console.log(`Message ${msg.id} read status: ${msg.is_read}`);
from wirebox import Wirebox
with Wirebox() as wb:
eva = wb.get_identity("eva")
msg = eva.phone.mark_message_read("msg_01J8DEF789KLM012")
print(f"Message {msg.id} read status: {msg.is_read}")
{
"id": "msg_01J8DEF789KLM012",
"phone_number": "+14155550123",
"agent_handle": "eva",
"direction": "inbound",
"type": "sms",
"from_number": "+12125550199",
"to_numbers": ["+14155550123"],
"text": "Hey, when is my order arriving?",
"media": null,
"is_read": true,
"segments": 1,
"created_at": "2026-09-14T14:30:00Z"
}
Phone
Update a Phone Message
Mark an inbound SMS or MMS message as read or unread.
PATCH
/
api
/
v1
/
phone
/
numbers
/
{number}
/
messages
/
{message_id}
wirebox phone mark-read eva msg_01J8DEF789KLM012
import { Wirebox } from "@wirebox-sh/sdk";
const wb = new Wirebox();
const eva = await wb.getIdentity("eva");
const msg = await eva.phone.markMessageRead("msg_01J8DEF789KLM012");
console.log(`Message ${msg.id} read status: ${msg.is_read}`);
from wirebox import Wirebox
with Wirebox() as wb:
eva = wb.get_identity("eva")
msg = eva.phone.mark_message_read("msg_01J8DEF789KLM012")
print(f"Message {msg.id} read status: {msg.is_read}")
{
"id": "msg_01J8DEF789KLM012",
"phone_number": "+14155550123",
"agent_handle": "eva",
"direction": "inbound",
"type": "sms",
"from_number": "+12125550199",
"to_numbers": ["+14155550123"],
"text": "Hey, when is my order arriving?",
"media": null,
"is_read": true,
"segments": 1,
"created_at": "2026-09-14T14:30:00Z"
}
This endpoint updates message metadata only. The message body, sender, recipients, and timestamp cannot be changed.
string
required
Number ID (
pn_...), E.164 phone number, or owning agent handle.string
required
Message ID (
msg_...).boolean
required
Set to
true to mark the message read or false to mark it unread.wirebox phone mark-read eva msg_01J8DEF789KLM012
import { Wirebox } from "@wirebox-sh/sdk";
const wb = new Wirebox();
const eva = await wb.getIdentity("eva");
const msg = await eva.phone.markMessageRead("msg_01J8DEF789KLM012");
console.log(`Message ${msg.id} read status: ${msg.is_read}`);
from wirebox import Wirebox
with Wirebox() as wb:
eva = wb.get_identity("eva")
msg = eva.phone.mark_message_read("msg_01J8DEF789KLM012")
print(f"Message {msg.id} read status: {msg.is_read}")
{
"id": "msg_01J8DEF789KLM012",
"phone_number": "+14155550123",
"agent_handle": "eva",
"direction": "inbound",
"type": "sms",
"from_number": "+12125550199",
"to_numbers": ["+14155550123"],
"text": "Hey, when is my order arriving?",
"media": null,
"is_read": true,
"segments": 1,
"created_at": "2026-09-14T14:30:00Z"
}