Skip to main content
New Participant
September 11, 2020
Question

Sms read status change using sdk

When we send any sms we can get the sms messages id in the response and i have noticed that in the response the status is always read by default:

"readStatus":"Read"

I am not sure why the default is read and what does it mean?

What are the way if I need to change the status into not read or unread ?

Can it be changed with java SDK?

1 reply

The First Step
September 11, 2020

There are basically 2 status: Read, Unread

When the SMS is send the readStatus is always "Read"

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

Check 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 with this API. Also using SDK, you can change that.

Check the demo here in Java:

https://ringcentral-tutorials.github.io/sms-api-java-demo/?distinctId=1746f43bd51496-0f9334d92b97c8-f7b1332-144000-1746f43bd523ca#5