How to create webhook in golang gin

How to create webhook in golang and gin

Are you trying to call into another service or is another service calling into your API? If the former, check this guide out on how to make HTTP requests:

If the latter, there’s nothing special about responding to webhooks. It’s just an API that will call into a certain endpoint in your publicly-exposed web API. There will be some sort of security layer (for example check out these docs from Stripe) where you validate some sort of secret they send with the request to verify they are the ones sending the request, but, it’s all just standard RESTful API stuff.

2 Likes