I am trying to create a Webhook to be notified when a message is sent back to my account that I use for my server app. I initially send out messages and the final goal is functionality for when they reply for my app to be able to trigger another message to be sent.
I am using a password flow for authorization because this is a server app with no UI. I make a CreateSubscriptionRequest object for the request of the POST and give it eventFilters and a NotificationDeliveryModeRequest object with transportType and address. I then navigate to the subscription endpoint where I call the POST method with the CreateSubscriptionRequest object as its parameter and when the code gets to this point it returns an error saying "Call failed with status code 400 (Bad Request) POST https://platform.devtest.ringcentral.com/restapi/v1.0/subscription".
I'm not sure what the problem with the request is or if its something else that I cant figure out. If anyone has any ideas or the same issue please let me know. Thanks!