I am working on a prototype for using Smartsheets webhooks to notify an ASP.Net/WebApi endpoint when changes occur. While I understand the concepts, I have not been able to find a specific example of the structure that Smartsheets will be passing to the callback endpoint.
I suspect that it is a Json string and that I should be able to define a string parameter in the controller method to accept it like this:
public HttpStatusCodeResult Put([FromBody]string payload)
{ ... }
but I am not clear on what the parameter should be named (or even if it matters what it is named).
Can someone provide:
- An example of a Smartsheets webhook callback controller method
- Clarification on what the payload parameter type and name should be
I can help with the structure of the Webhook callback. Once you create and verify the webhook, the events will be posted to your callback endpoint in following format:
The events array will be in the body of the POST.