Webhooks

Webhooks

A webhook is a way for Zoho Webinar to instantly notify an external application when a specific event occurs. The moment a trigger fires in your workflow, the webhook sends an PUT or POST request carrying event data to a URL you specify.
In Zoho Webinar, webhooks are configured inline within the Workflow setup, either as an Instant Action or a Scheduled Action. When you select webhook, as your action type a configuration form appears directly within the workflow where you fill in all the required details.

How to Configure a Webhook

Webhooks are part of actions in Workflow. Create a workflow to use webhooks. 
Follow the below steps to configure the workflow. 
  1. Enter a name to identify this webhook within the workflow.
  2. The Method is set to POST by default and can be changed to PUT as per requirement.
  3. Enter the webhook URL provided by your receiving application.
  4. Add an optional description to note the purpose of this webhook.
  5. Select an authorization type: General, Connection, or Signature. Configure the selected type as required.
  6. Add the body in JSON format with the event data you want to send.
  7. Add Query by clicking+ Add and entering any Parameters clicking parameter key-value pairs.
  8. Add any headers by clicking clicking + Add Parameter and entering key-value pairs.
  9. Click Save to apply the webhook configuration and complete the workflow setup.

   

 Authorization Types  

Zoho Webinar provides three authorization options for securing your webhook. Select the one that matches what your receiving application requires. 

General 

General authorization provides a basic level of authentication for your webhook. Use this when your receiving application requires a straightforward credential to verify incoming requests.

Connection

Connection authorization links the webhook to an existing connection set up in the connections module. Instead of entering credentials manually, you select a pre-authorized Connection and the webhook uses those stored credentials to authenticate with the receiving application.

Signature 

Signature authorization uses an auto-generated secret token to sign each webhook request. The receiving application uses this token to verify that the request genuinely came from Zoho Webinar and has not been tampered with in transit.
  • The token is generated automatically by Zoho Webinar. 

  • Click Copy to copy the token and add it to your receiving application. 

  • Click Regenerate to create a new token if the current one is compromised. Regenerating invalidates the previous token immediately. 

 Body  

The body contains the data payload that Zoho Webinar sends to the receiving application with each webhook request. You can send the payload in one of two formats:  

JSON

JSON format is used when the receiving application expects structured, machine-readable data. The payload is written as a JSON object with key-value pairs representing the event data you want to send.

Form Data

The Form Data format is used when the receiving application expects the payload submitted as a URL-encoded string. Each value is URL-encoded, and pairs are joined with &.

Validating Webinar Webhook Requests

To ensure that the webhook requests your service receives are actually coming from Zoho Webinar and were not tampered with in transit, every request sent with signature authentication includes an `X-WEBINAR-SIGNATURE` header.
This header is an HMAC SHA-256 hash, computed using your organization's signature key (secret) combined with the raw request body. On your endpoint, recompute the hash from the request body and your secret, then compare it to the value in the header. If the two are equal, the request has passed validation. Otherwise, the request may have been tampered.  

 

Body Sent

{"webinarId":"12345","event":"registration","email":"user@example.com"}

  

Header:

X-WEBINAR-SIGNATURE: a1b2c3d4e5f6...

Content-Type: application/json

 

SAMPLE CODE:

Node.js

const crypto = require("crypto");

 

/**

* Verifies an X-WEBINAR-SIGNATURE header. Works for both JSON and

* form-data webhooks — just pass the raw request body.

*

* @param {string} rawBody         Raw HTTP request body as received (JSON text or

*                                 url-encoded form string); never parsed/re-serialized.

* @param {string} signatureHeader Value of the X-WEBINAR-SIGNATURE header.

* @param {string} secret          The org's webhook signature key (token).

* @returns {boolean}              True if the signature is valid.

*/

function verifySignature(rawBody, signatureHeader, secret) {

  if (!signatureHeader || !secret) {

    return false;

  }

 

  const body = rawBody || "";

  const expected = crypto

    .createHmac("sha256", secret)

    .update(body, "utf8")

    .digest("hex"); // lowercase hex

 

  const expectedBuf = Buffer.from(expected, "utf8");

  const receivedBuf = Buffer.from(signatureHeader.trim().toLowerCase(), "utf8");

 

  // Lengths must match for timingSafeEqual

  if (expectedBuf.length !== receivedBuf.length) {

    return false;

  }

  return crypto.timingSafeEqual(expectedBuf, receivedBuf);

}

 

// Example usage

const secret = "your-webhook-signature-token";

 

// JSON webhook: rawBody is the JSON text as received

const jsonBody = '{"name":"Ann","id":42}';

 

// Form-data webhook: rawBody is the url-encoded form string as received

const formBody = "name=Ann&note=hi+there";

 

const signatureFromHeader = "..."; // X-WEBINAR-SIGNATURE value

 

const isValid = verifySignature(jsonBody, signatureFromHeader, secret);

console.log(isValid ? "Signature is valid!" : "Signature is invalid!");

Python 

import hmac

import hashlib

 

 

def verify_signature(raw_body: str, signature_header: str, secret: str) -> bool:

    """

    Verifies an X-WEBINAR-SIGNATURE header. Works for both JSON and

    form-data webhooks -- just pass the raw request body.

 

    :param raw_body:         Raw HTTP request body as received (JSON text or

                             url-encoded form string); never parsed/re-serialized.

    :param signature_header: Value of the X-WEBINAR-SIGNATURE header.

    :param secret:           The org's webhook signature key (token).

    :return:                 True if the signature is valid.

    """

    if not signature_header or not secret:

        return False

 

    body = raw_body or ""

    expected = hmac.new(

        secret.encode("utf-8"),

        body.encode("utf-8"),

        hashlib.sha256,

    ).hexdigest()  # lowercase hex

 

    # Constant-time comparison (header normalized to lowercase)

    return hmac.compare_digest(expected, signature_header.strip().lower())

 

 

# Example usage

if __name__ == "__main__":

    secret = "your-webhook-signature-token"

 

    # JSON webhook: raw_body is the JSON text as received

    json_body = '{"name":"Ann","id":42}'

 

    # Form-data webhook: raw_body is the url-encoded form string as received

    form_body = "name=Ann&note=hi+there"

 

    signature_from_header = "..."  # X-WEBINAR-SIGNATURE value

 

    is_valid = verify_signature(json_body, signature_from_header, secret)

print("Signature is valid!" if is_valid else "Signature is invalid!")

Java 

import javax.crypto.Mac;

import javax.crypto.spec.SecretKeySpec;

import java.nio.charset.StandardCharsets;

import java.security.MessageDigest;

 

public class WebinarSignatureValidator {

 

    /**

     * Verifies an X-WEBINAR-SIGNATURE header. Works for both JSON and

     * form-data webhooks — just pass the raw request body.

     *

     * @param rawBody         the raw HTTP request body as received (JSON text or

     *                        url-encoded form string); never parsed/re-serialized

     * @param signatureHeader value of the X-WEBINAR-SIGNATURE header

     * @param secret          the org's webhook signature key (token)

     * @return true if the signature is valid

     */

    public static boolean verifySignature(String rawBody, String signatureHeader, String secret) {

        if (signatureHeader == null || signatureHeader.isEmpty() || secret == null) {

            return false;

        }

        try {

            String body = rawBody != null ? rawBody : "";

            Mac mac = Mac.getInstance("HmacSHA256");

            mac.init(new SecretKeySpec(secret.getBytes(StandardCharsets.UTF_8), "HmacSHA256"));

            byte[] raw = mac.doFinal(body.getBytes(StandardCharsets.UTF_8));

 

            StringBuilder hex = new StringBuilder(raw.length * 2);

            for (byte b : raw) {

                hex.append(Character.forDigit((b >>> 4) & 0xF, 16));

                hex.append(Character.forDigit(b & 0xF, 16));

            }

            String expected = hex.toString();

 

            // Constant-time comparison (header normalized to lowercase)

            return MessageDigest.isEqual(

                    expected.getBytes(StandardCharsets.UTF_8),

                    signatureHeader.trim().toLowerCase().getBytes(StandardCharsets.UTF_8));

        } catch (Exception e) {

            return false;

        }

    }

 

    // Example usage

    public static void main(String[] args) {

        String secret = "your-webhook-signature-token";

 

        // JSON webhook: rawBody is the JSON text as received

        String jsonBody = "{\"name\":\"Ann\",\"id\":42}";

 

        // Form-data webhook: rawBody is the url-encoded form string as received

        String formBody = "name=Ann&note=hi+there";

 

        String signatureFromHeader = "..."; // X-WEBINAR-SIGNATURE value

 

        boolean valid = verifySignature(jsonBody, signatureFromHeader, secret);

        System.out.println(valid ? "Signature is valid!" : "Signature is invalid!");

    }

}

 


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                        Manage your brands on social media


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            Zoho Sheet Resources

                                                                             

                                                                                Zoho Forms Resources


                                                                                  Secure your business
                                                                                  communication with Zoho Mail


                                                                                  Mail on the move with
                                                                                  Zoho Mail mobile application

                                                                                    Stay on top of your schedule
                                                                                    at all times


                                                                                    Carry your calendar with you
                                                                                    Anytime, anywhere




                                                                                          Zoho Sign Resources

                                                                                            Sign, Paperless!

                                                                                            Sign and send business documents on the go!

                                                                                            Get Started Now




                                                                                                    Zoho TeamInbox Resources





                                                                                                              Zoho DataPrep Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • Workflows

                                                                                                                                      Zoho Webinar's Workflow Automation helps you eliminate repetitive manual tasks and gives you the flexibility to define exactly what happens when a webinar event occurs from executing custom business logic and updating records in connected ...
                                                                                                                                      Wherever you are is as good as
                                                                                                                                      your workplace

                                                                                                                                        Resources

                                                                                                                                        Videos

                                                                                                                                        Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                        eBooks

                                                                                                                                        Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                        Webinars

                                                                                                                                        Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                        CRM Tips

                                                                                                                                        Make the most of Zoho CRM with these useful tips.



                                                                                                                                          Zoho Show Resources