# How to create webhook in golang gin

**URL:** <https://forum.golangbridge.org/t/how-to-create-webhook-in-golang-gin/36199>\
**Category:** Getting Help\
**Created:** [September 9, 2024, 5:54pm UTC](https://forum.golangbridge.org/t/how-to-create-webhook-in-golang-gin/36199 "2024-09-09T17:54:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![packs](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/packs/32/9635_2.png) [@packs](https://forum.golangbridge.org/u/packs)\
**Post date:** [September 9, 2024, 5:54pm UTC](https://forum.golangbridge.org/t/how-to-create-webhook-in-golang-gin/36199/1 "2024-09-09T17:54:46Z")

</div>

How to create webhook in golang and gin

---

<div class="post-metadata">

**Author:** ![Dean\_Davidson](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/dean_davidson/32/9685_2.png) [@Dean\_Davidson](https://forum.golangbridge.org/u/Dean_Davidson)\
**Post date:** [September 9, 2024, 7:08pm UTC](https://forum.golangbridge.org/t/how-to-create-webhook-in-golang-gin/36199/2 "2024-09-09T19:08:04Z")

</div>

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:

> **[Making HTTP requests in Go - LogRocket Blog](https://blog.logrocket.com/making-http-requests-in-go/)**
>
> Explore how to make HTTP requests in Go, manage headers and cookies, and use third-party libraries like Rest, Sling, and Gentleman.

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](https://docs.stripe.com/webhooks)) 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.

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [December 8, 2024, 7:08pm UTC](https://forum.golangbridge.org/t/how-to-create-webhook-in-golang-gin/36199/3 "2024-12-08T19:08:16Z")

</div>

Closed on December 8, 2024, 7:08pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
