WhatsApp API - Webhook icon

WhatsApp API - Webhook

Manage WhatsApp webhooks

Toggle Webhook

AI-generated

Summary

Toggle the enabled/disabled state of an existing WhatsApp webhook by specifying its Webhook ID.

Inputs

  • Webhook ID (required) — The ID of the webhook to be toggled.

Output shape

a single JSON object representing the updated webhook state after toggling.

The output contains the webhook details as returned by the API PATCH request; errors are returned as error messages if failure occurs and continueOnFail is enabled.

Examples

Example 1: Disable a currently enabled webhook using its Webhook ID.

Set Operation to 'Toggle Webhook' and provide the Webhook ID parameter.

Discussion