News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

Search
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
Unable to create webhook subscription
Tags: webhooks, subscription
Dec 5, 2017 at 6:01am   •   3 replies  •  0 likes
senthil-dev-raja

I have tried to create the subscription using postman, am getting the below error.

Could someone help me to resolve this issue?


POST URL: https://platform.devtest.ringcentral.com/restapi/v1.0/subscription

Request JSON:

{


"eventFilters": [

"/restapi/v1.0/account/~/extension/~/message-store?direction=Inbound" ],

"deliveryMode":{


"transportType":"WebHook",

"address":"https://<mysitename>/auth/subs/v2.0/v/tkn";

}}


Response JSON:

{


"errorCode": "SUB-522",

"message": "WebHook responds with incorrect HTTP status. HTTP status is 500",

"errors": [

{


"errorCode": "SUB-522",

"message": "WebHook responds with incorrect HTTP status. HTTP status is 500",

"status": "500"

}

],

"status": "500"

}

3 Answers
answered on Dec 12, 2017 at 5:23am  
Hi Senthil,

Not yet, doc will be updated in a couple of weeks. 

WebHook URL must respond with 200 OK during subscription request, could you set up your WebHook to respond with proper HTTP Code?

Also it is important to keep WebHook up and running in order to guaranteed receive notifications. Otherwise subscription will be blacklisted until WebHook become operable again.

Some useful examples with WebHook Demos can be found here:
https://github.com/grokify/ringcentral-demos-webhooks

Thanks,

 0
answered on Dec 7, 2017 at 3:38am  
Hi Igor Bebin,
      
Is the document updated? 
Is there any alternate way to create a webhook subscription? Please guide me.

Thanks,
Senthil

 0
answered on Dec 5, 2017 at 7:14am  
Hi Senthil,

Webhook URL should respond with 200 OK during subscription request, but your URL responded with http 500.

This requirement is actually missing from http://ringcentral-api-docs.readthedocs.io/en/latest/webhooks/, we'll update the doc soon. Thanks you for assistance.

Please advise if you have any other questions.

Thanks,
Igor

 0



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

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