question

nibu-eapen10876 avatar image
nibu-eapen10876 asked anton-nikitin answered

read inbound sms from sms webhook response

This is the webhook notification response. 
I would like to know how to retrieve sms body. 
Is it can be done using UUID or some other way?, Thanks

Array  (      [uuid] => 6233143317433525276      [event] => /restapi/v1.0/account/244580004/extension/244713004/messagestore      [timestamp] => 2018-08-29T21:18:00.275Z      [subscriptionId] => de03190f-6361-4a43-a1a6-16ed2abfdb60      [ownerId] => 244580004      [body] => Array          (              [accountId] => 244580004              [extensionId] => 244713004              [lastUpdated] => 2018-08-29T21:17:52.450Z              [changes] => Array                  (                      [0] => Array                          (                              [type] => SMS                              [newCount] => 1                              [updatedCount] => 0                          )                    )            )    )



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.

1 Answer

anton-nikitin avatar image
anton-nikitin answered
Nibu, if you are interested about incoming SMS you should better use a different event filter for your subscription -- see  https://developer.ringcentral.com/api-docs/latest/index.html#!#RefGetInstantMessageEvent

Actually the event you are currently subscribing gives you just the information about recent changes without extra details like message IDs.
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