---
title: Webhooks
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Realtime Kit](https://developers.cloudflare.com/api/go/resources/realtime_kit)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Webhooks

##### [Fetch all webhooks details](https://developers.cloudflare.com/api/go/resources/realtime_kit/subresources/webhooks/methods/get_webhooks)

client.RealtimeKit.Webhooks.GetWebhooks(ctx, appID, query) (\*[WebhookGetWebhooksResponse](<https://developers.cloudflare.com/api/go/resources/realtime_kit#(resource)%20realtime_kit.webhooks%20%3E%20(model)%20WebhookGetWebhooksResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/realtime/kit/{app\_id}/webhooks

##### [Add a webhook](https://developers.cloudflare.com/api/go/resources/realtime_kit/subresources/webhooks/methods/create_webhook)

client.RealtimeKit.Webhooks.NewWebhook(ctx, appID, params) (\*[WebhookNewWebhookResponse](<https://developers.cloudflare.com/api/go/resources/realtime_kit#(resource)%20realtime_kit.webhooks%20%3E%20(model)%20WebhookNewWebhookResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/realtime/kit/{app\_id}/webhooks

##### [Fetch details of a webhook](https://developers.cloudflare.com/api/go/resources/realtime_kit/subresources/webhooks/methods/get_webhook_by_id)

client.RealtimeKit.Webhooks.GetWebhookByID(ctx, appID, webhookID, query) (\*[WebhookGetWebhookByIDResponse](<https://developers.cloudflare.com/api/go/resources/realtime_kit#(resource)%20realtime_kit.webhooks%20%3E%20(model)%20WebhookGetWebhookByIDResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/realtime/kit/{app\_id}/webhooks/{webhook\_id}

##### [Replace a webhook](https://developers.cloudflare.com/api/go/resources/realtime_kit/subresources/webhooks/methods/replace_webhook)

client.RealtimeKit.Webhooks.ReplaceWebhook(ctx, appID, webhookID, params) (\*[WebhookReplaceWebhookResponse](<https://developers.cloudflare.com/api/go/resources/realtime_kit#(resource)%20realtime_kit.webhooks%20%3E%20(model)%20WebhookReplaceWebhookResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/realtime/kit/{app\_id}/webhooks/{webhook\_id}

##### [Edit a webhook](https://developers.cloudflare.com/api/go/resources/realtime_kit/subresources/webhooks/methods/edit_webhook)

client.RealtimeKit.Webhooks.EditWebhook(ctx, appID, webhookID, params) (\*[WebhookEditWebhookResponse](<https://developers.cloudflare.com/api/go/resources/realtime_kit#(resource)%20realtime_kit.webhooks%20%3E%20(model)%20WebhookEditWebhookResponse%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/realtime/kit/{app\_id}/webhooks/{webhook\_id}

##### [Delete a webhook](https://developers.cloudflare.com/api/go/resources/realtime_kit/subresources/webhooks/methods/delete_webhook)

client.RealtimeKit.Webhooks.DeleteWebhook(ctx, appID, webhookID, body) (\*[WebhookDeleteWebhookResponse](<https://developers.cloudflare.com/api/go/resources/realtime_kit#(resource)%20realtime_kit.webhooks%20%3E%20(model)%20WebhookDeleteWebhookResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/realtime/kit/{app\_id}/webhooks/{webhook\_id}