question

steven-branson3422 avatar image
steven-branson3422 asked ·

Validation Token on WebHook subscription

I am attempting to subscribe to push notifications. When I send the request I am receiving the error code 'SUB-520' with description 'Validation Token is not returned'. I can't find anything in the API documentation about this whatsoever. I see the request come in to my server with a custom HTTP header called VALIDATION_TOKEN. I tried many ways to reply to this, but nothing I have tried works. What am I missing?
General Topic
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.

steven-branson3422 avatar image
steven-branson3422 answered ·
Found it. The reply needs to have header "validation-token" with a hyphen instead of an underscore. The documentation where I found this was here:  http://ringcentral-quickstart.readthedocs.io/en/latest/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.

benjamin-dean avatar image
benjamin-dean answered ·
That is correct. Glad you were able to find the documentation.

There is also this demo application in Node.js for understanding RingCentral 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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