question

Radmila Paneva avatar image
Radmila Paneva asked ·

Instructions on Retrieving Missing Messages

Hello, My text messages disappeared and I do not have the archive feature. I received a response from a tech expert saying I should check the API with the message id but I do not understand how to do this. Could you please provide me with instructions? Thank you!

messages
1 |1000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered ·

You need to go use message store APIs to get the full details of your message.

First search for the messages using Get Message List API : https://developers.ringcentral.com/api-reference/Message-Store/listMessages

You will get all the sms messages list using the API. You need to give From date and To date when you are searching the messages.

example below:

https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store?dateFrom=2020-01-01&dateTo=2020-09-01&page=1&perPage=100

You can see dateFrom=2020-08-01 and dateTo=2020-09-01 and it will list all the messages within this period.

Each message that will listed there will have a message id and an attachment id along with subject as you message content:

To get the message content of specific message, you can use that message id and attachment id in Get Message Content API here: https://developers.ringcentral.com/api-reference/Message-Store/readMessageContent

and you need to put that message id number and attachment number you got from there in the API to get the message content .

https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store/<message id> /content/<attachment id>?contentDisposition=Inline 

example:

https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store/8419061004/content/8419061004?contentDisposition=Inline


1598970404497.png (45.4 KiB)
Share
1 |1000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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