orvachat

Chats

Mark Messages as Read

POST/api/v1/chat/markread

Mark messages as read (blue ticks).

Parameters

  • IdarrayRequired

    The message ids to mark as read.

  • ChatPhonestringRequired

    The chat the messages are in.

  • SenderPhonestringOptional

    Who sent them (needed in groups).

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/chat/markread" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "Id": [
    "3EB0ABCDEF1234567890"
  ],
  "ChatPhone": "923001234567",
  "SenderPhone": "923001234567"
}'

Response Example

200 OK
{
  "code": 200,
  "data": {
    "Details": "Message(s) marked as read"
  },
  "success": true
}