Update Message Status
POST/accounts/:account_id/conversations/:conversation_id/messages/:message_id/status
Sets the delivery status of a message.
Channel integrations (such as the WhatsApp API server) use it to report
delivery and read receipts. The status can only move forward:
sent → delivered → read → failed → deleted. Each status reached is
recorded in status_history.
| Setting | Value |
|---|---|
| Method | POST |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/status |
| Authorization | User token. |
Permissions:
- User token — any agent who can see the conversation (see Who can see a conversation).
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
conversation_id | integer | Yes | Conversation display ID. |
message_id | integer | Yes | Message ID. |
Body parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | delivered, read, failed or deleted. |
Example request
curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40112/status' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "status": "read" }'
Example response (200 OK): the full message object. The relevant
fields:
{
"id": 40112,
"status": "read",
"status_history": {
"sent": 1794470412,
"delivered": 1794470447,
"read": 1794470447
}
}
Error responses: 422 {"error": "New status must be greater than current status"}
(for example delivered after read).
Request
Responses
- 200
- 401
- 403
- 404
- 422
The message, with its new status.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.
The new status is not after the message's current status.