Validation Token on WebHook subscription

  • 1
  • Question
  • Updated 2 years ago
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?
Photo of Steven Branson

Steven Branson

  • 80 Points 75 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Steven Branson

Steven Branson

  • 80 Points 75 badge 2x thumb
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/
(Edited)
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
That is correct. Glad you were able to find the documentation.

There is also this demo application in Node.js for understanding RingCentral WebHooks.