Skip to main content

Since I am new to the ringCentral apis.. I was exploring the sms api.

I was successful to send the sms. But what stuck me is the sms message status.

The below is the part of the response I got:

{
"type": "SMS", "creationTime": "2019-11-10T18:50:02.000Z", "readStatus": "Read", "priority": "Normal", "attachments": [ {      "id": ***********,
}

Here "readStatus": "Read"

While going through the api documentation I found the readStatus can be 2 types:

Read, Unread

My first question is what does this read status means?

How can I change it and mark it as Unread again? Is that possible?

Yes you are correct there are 2 status: Read, Unread

You can use message store API to update the status of your message.

Checkout this API here:

https://developers.ringcentral.com/api-reference/Message-Store/updateMessage

Every SMS message have a messageId and you need to use that messageId to update the readStatus.

eg:

PUT https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store/<your message id>

You can change the status now


See the SMS API Tutorial for details and sample code.


Reply