question

john-harper9111 avatar image
john-harper9111 asked Anirban answered

message-store Get Messages after user has deleted a message

We would like to archive all Text messages sent to or from our extensions. However, if a user deletes a message (by selecting a thread, right-clicking an individual message bubble, and choosing delete) from the desktop app, is that message now gone from Ring Central backend storage? Would a call to message-store Get Messages return this "deleted" message?


Or does this only hide it from the user (similar to how clearing the call log via the desktop app only really hides it for that user)?


Thanks!

sms and text messaging
1 |3000

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

anton-nikitin avatar image
anton-nikitin answered

John,


if user deletes a message it is marked as deleted first (you can check "availabilityStatus" parameter in API response) and then permanently deleted in a week.

By default API does not return deleted messages. But you can specify explicitly if you want to see deleted messages by using "availabilityStatus" parameter in message-store API request.


Also please be aware that we have retention policy and messages can be deleted automatically - see more info here https://support.ringcentral.com/article/2178.html

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

If a message is deleted you can still get the message information by retrieving the message store with message is .. /restapi/v1.0/account/accountId/extension/extensionId/message-store/messageId

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

In response, you will get the field call messageAvalibility shows the status as delete.Message availability status. Message in 'Deleted' state is still preserved with all its attachments and can be restored.

As per here, the RingCentral Retention Management APIallows Account administrators to customize the Data Retention Policy to ensure the organization keeps less than 90 days of message data

https://support.ringcentral.com/s/article/2178?language=en_US

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