WA-AKG icon

WA-AKG

Interact with WA-AKG WhatsApp Gateway API

Webhook → Update

AI-generated

Summary

Update existing webhook configuration

Inputs

  • sessionId (required) — The Session ID to use for this request
  • webhookId (required) — The internal ID of the webhook to manage
  • webhookUrl (required) — The endpoint URL that will receive HTTP POST events
  • webhookEvents (required) — Comma-separated list of events the webhook will subscribe to
  • additionalFields — Additional fields such as webhookSecret for verification

Output shape

object

Returns the updated webhook object containing its ID, URL, events, secret and timestamps; errors are propagated.

Examples

Example 1: Update webhook URL and add secret

sessionId=123, webhookId=5, webhookUrl=https://example.com/webhook, webhookEvents=message.received,additionalFields={"webhookSecret":"mysecret"}

Links

Discussion