question

Dilip Kunder avatar image
Dilip Kunder asked Phong Vu answered

How can we change sms message read status

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?

getting started
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban avatar image
Anirban answered

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

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered

See the SMS API Tutorial for details and sample code.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys