question

James Peragine avatar image
James Peragine asked Phong Vu commented

Retrieve all SMS messages from entire account

How can I retrieve all SMS Messages to/from a phone number from our entire account? I am only able to pull messages to/from a specific extension using the API test method.

rest api
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

You have to login your app as a super admin, read all extensions to get a list of extension ids, then call the user message-store endpoint to read each extension SMS message.

/restapi/v1.0/account/~/extension/[extensionId]/message-store

1 |3000

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

James Peragine avatar image
James Peragine answered Phong Vu commented

Hi Phong

Will I have to call each extension one at a time? Is there a way to get all messages send from anyone in the company with a single API Call?

1 comment
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 ♦♦ commented ·

The only choice is to use the message store export API. Unfortunately, that API does not support much of filtering to export just a certain message type. Check this out if it helps.

https://developers.ringcentral.com/api-reference/Message-Exports/createMessageStoreReport

https://medium.com/ringcentral-developers/how-to-archive-companys-messaging-content-3d051068667b

0 Likes 0 ·

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