title: How do I create a webhook in ASP.NET MVC?
body: <p>I'm trying to create a simple webhook to receive a delivery receipt from Nexmo SMS service. The only documentation on their website was this.</p>
  
  <p><code>During account set-up, you will be asked to supply Nexmo a CallBack URL for Delivery Receipt to which we will send a delivery receipt for each of your SMS submissions. This will confirm whether your message reached the recipient's handset. The request parameters are sent via a GET (default) to your Callback URL and Nexmo will be expecting response 200 OK response, or it will keep retrying until the Delivery Receipt expires (up to 72 hours).</code></p>
  
  <p>I've been searching for ways to do this, and so far I have this method from an example I found online, although I'm not sure if this is correct. Anyways, this is being run on ASP.NET and on port 6563, so is this the port I'm supposed to be listening to? I downloaded an application called ngrok which should expose my local web server to the internet, so I ran the application and instructed it to listen onto port 6563, but no luck. I've been fiddling with it trying to find someway to post to this function. </p>
  
  <pre><code>[HttpPost]
  public ActionResult CallbackURL()
  {
      System.IO.StreamReader reader = new System.IO.StreamReader(HttpContext.Request.InputStream);
      string rawSendGridJSON = reader.ReadToEnd();
      return new HttpStatusCodeResult(200);
  }
  </code></pre>
  
  <p>Usually I can call the function directly to return the view just by visiting <code>http://localhost:6563/Home/Index/CallbackURL</code>
  So I've inserted a breakpoint on the method signature, but it'll only get called if I remove the [HttpPost] from it. Any next steps that I should try?</p>