News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
SMS API for sending text to customers and get reply against SMS
Tags: rest api, sms and text messaging
Jan 29, 2018 at 4:22am   •   5 replies  •  0 likes

we have created an application which sends SMS to customer through Rest API (curl) hit.

SMS is Sending Successfully, but the issue is, when any customer reply against any (or specific) Message.

we are not identify the reply of Message.

can we use any event or webhooks? for reply of message, which we have sent to customers and we want to store that reply against

specific message. how we can do this in PHP.

if any body have done such type of work, pleas share your response on it. we don't want to use Message store method or with message Id.


5 Answers
answered on Jul 1, 2019 at 11:45am  

Apart from both webhooks (server-side) and pub/sub (client-side) subscriptions, most simple way to receive message content is by RingCentral API :

/restapi/v1.0/account/~/extension/~/message-store/<message id>/content/<attachment id> 

Get Message Content API return the sms content in the API which can be consumed directly from PHP, Java or anything. Message store method or with message Id will be the easiest way to get content through API and can be integrated into any script without much effort.

You can also check both webhook and pub/sub examples using the PHP SDK:

answered on Apr 15, 2018 at 2:15pm  
Hello - I am seeking if there is anyone out there that I can hire to write a PHP script for me to allow me to send and receive SMS messages from my RingCentral #.  Ideally the script would monitor a POP3 mailbox, when a new email exists the subject is the phone # to send, the message body is the SMS to send.  I can't find anything out there already made and assume a programmer who is familiar with the RingCentral SMS API platform can write this in a few hours?

Any help would be appreciated!


answered on Feb 16, 2018 at 4:20pm  
You indicated you typed this :  

curl -sS 

Make sure you have the  pipe symbol as shown in the read me :

curl -sS | php

I run php 5.6.3

answered on Jan 30, 2018 at 3:22am  

Thanks for response, i am using below link.

and how i can use webhooks (server-side) and pub/sub (client-side) subscriptions or set event in such type of code, which contains the link (file sms.php or in
ringcentral-sdk-php-lite/ src/ ringcentrallite.php).

answered on Jan 29, 2018 at 8:32am  
The RingCentral API supports both webhooks (server-side) and pub/sub (client-side) subscriptions. To retrieve SMS message content, you can create a subscription with the SMS Instant Message Event event filter.

The filter has the following format:


The Developer Guide has general information on webhooks (and pub/sub):

Some PHP example code for setting up a webhook is available here:

A JavaScript example app is also available:

More information on this is available on the SMS Instant Message Event filter here:!#RefGetInstantMessageEvent


A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us