03/08/2024
Download Example zip (185kb)

The attached example is a .net core 8 web minimal api .

Note that the authentication credentials/keys are stored a common class .. we should always store sensitive data such as auth keys, usernames, passwords etc in a key vault external to the api... But as this is just a demo system (and to keep the code small), i stuck them in config .. please remove them if you intend to use this project.

About webhooks. see here

In this example, we use a simple minimal api to expose the httpContext where we can query the request object received by the API call.
This notifications API, it receives a request and we processes the notification by extracting the request.body.stream from the httpContext.