question

joseph-mazzarella13062 avatar image
joseph-mazzarella13062 asked Phong Vu commented

Have an active subscription for SMS, but not receiving any webhook events

I use AWS lambda running node JS. In my service, I have established a subscription, but I receive no events whatsoever.

this is the subscription:

{
    "uri": "https://platform.devtest.ringcentral.com/restapi/v1.0/subscription/eb55a123-1f0f-46c4-9c90-cbe8554616c7",
    "id": "eb55a123-1f0f-46c4-9c90-cbe8554616c7",
    "creationTime": "2020-07-08T20:18:12.960Z",
    "status": "Active",
    "eventFilters": [
        "/restapi/v1.0/account/247984004/extension/247984004/message-store/instant?type=SMS"
    ],
    "expirationTime": "2020-07-15T20:18:12.960Z",
    "expiresIn": 538066,
    "deliveryMode": {
        "transportType": "WebHook",
        "encryption": false,
        "address": "https://api.dev.orangetheoryfitness.net/sms/v1/smsreply"
    }
}

Any help appreciated

webhooks
1 |1500 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

Phong Vu avatar image
Phong Vu answered Phong Vu commented

Look like this address (https://api.dev.orangetheoryfitness.net/sms/v1/smsreply) is not publicly accessible. It seems AWS api endpoint requires authentication token.

you can test your app on a local machine to double check if your webhook setup is working well.

6 comments
1 |1500 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.

I doublechecked. It is open to the public endpoint.

Please try this:

curl --location --request POST 'https://api.dev.orangetheoryfitness.net/sms/v1/smsreply' --header 'Validation-Token: Mytesttoken' --data-raw '' -v


when I create a subscription, I get a response back to confirm the endpoint. it just contains no data. and after that anytime I send or reply to the SMS messages I get no events at all.

0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ joseph-mazzarella13062 ·

Did you test your app on your local machine? E.g. using ngrok.

If it works on your local machine and not work on AWS, then there is some issue with the delivery address or access problem with AWS API gateways.

0 Likes 0 ·

It does not receive events from RingCentral. Events are not delivered to a public endpoint, as specified in my OP. Everything in my system works, it connects to RC, logs in, creates subscription, sends SMS messages as required. But it does not receive the Webhook events from RingCentral when the emails are replied to.

1 Like 1 ·
Show more comments

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