Hypersender

Messaging APIs

WhatsApp APISend and receive from your own numberSMS gateway appApproved on Google Play, Android 9 to 16OTP APICodes and WhatsApp sign-in links

Build with it

MCP serverWhatsApp and SMS from your AI assistantIntegrationsn8n, AI assistants and SDKsWhatsApp API pricingPlans, and per-message costs comparedDocsAPI reference and setup guides
SDKsLaravelNode.jsPythonGon8n

WhatsApp

CRM integrationPayment remindersOrder updatesWhatsApp OTPIncoming message webhooksWhatsApp AI chatbotCustomer serviceWhatsApp automationMessaging from LaravelClaude to WhatsAppChatGPT integrationZapier and MakeWhatsApp surveys

SMS

Appointment remindersSMS OTPFilter and tag SMSSMS forwardingSMS gateway appAndroid SMS gateway
All use cases
WhatsApp link generatorA short chat link with a ready message, a QR code with your logo and a button for your website.WhatsApp message templatesReady messages for orders, appointments and payments, with a builder that checks them against Meta's rules.WhatsApp text formatterBold, italic, strikethrough, lists and quotes, with keyboard shortcuts and a live iPhone preview.SMS character counterCharacters, SMS parts and GSM-7 or Unicode, plus the characters that make a message longer.Phone validatorCheck if a number is valid, see its country and line type, and copy it in E.164 or WhatsApp format. Works on lists too.Phone number formatterTurn a messy list into one format: E.164, international, national or WhatsApp chat IDs, ready to copy or download.Phone number extractorPaste any text, an email or a spreadsheet and get every phone number in it, cleaned up and without repeats.CSV to VCF converterTurn a CSV file or cells copied from Excel into a VCF file you can import to your phone's contacts.vCard QR code generatorA QR code that saves your name, number, email and website to the phone that scans it.Webhook testerA free webhook URL that shows every request live, with custom responses and Meta's WhatsApp verification.Name decorationStylish versions of a name in English or Arabic for PUBG, Free Fire, Instagram and TikTok.
All free tools

Company

BlogGuides, tutorials and comparisonsAlternativesHypersender vs WATI, Twilio and moreAbout HypersenderWho we are and how we workFAQsShort answers to common questions

Community

Latest postNovember 30, 2026WhatsApp Business API Pricing: Meta Rates and BSP FeesWhatsApp Business API pricing for 2026: Meta's per-message rates by category and country, what Twilio and WATI add, and a worked monthly bill.Read the post
PricingDocs
Sign InGet Started
Hypersender

Product

  • Features
  • Use cases
  • MCP server
  • Pricing
  • WhatsApp API pricing
  • SDKs
  • Integrations
  • Docs

Free tools

  • WhatsApp link generator
  • WhatsApp message templates
  • WhatsApp text formatter
  • SMS character counter
  • Phone validator
  • Webhook tester
  • Name decoration
  • All tools

Resources

  • About Hypersender
  • FAQ
  • Blog
  • Alternatives
  • Discord
  • WhatsApp

Legal

  • Terms and Conditions
  • Privacy Policy
Featured onFeatured on LaunchAFFeatured on LaunchAFFeatured on Twelve ToolsFeatured on Twelve Tools

© 2026 Hypersender. All rights reserved.

GET IT ONGoogle Play
HypersenderHypersenderHypersenderHypersenderHypersender
All articles

Developer guides

What Is a Webhook? How Webhooks Work, With Examples

What is a webhook: an HTTP request an app sends to your URL when an event happens. How webhooks work, with a real payload to test for free.

Hypersender·November 29, 2026·3 min read
What Is a Webhook? How Webhooks Work, With ExamplesWhat Is a Webhook? How Webhooks Work, With Examples
On this page
  1. How a webhook works
  2. A webhook example
  3. Webhook vs API
  4. How to receive a webhook
  5. How to test a webhook
  6. When a webhook doesn't arrive
  7. Webhooks in WhatsApp and SMS

On this page

  1. How a webhook works
  2. A webhook example
  3. Webhook vs API
  4. How to receive a webhook
  5. How to test a webhook
  6. When a webhook doesn't arrive
  7. Webhooks in WhatsApp and SMS

What is a webhook? It's an HTTP request that one app sends to a URL you choose, the moment something happens, such as a payment going through or a customer replying on WhatsApp. Instead of your code asking "anything new?" every few seconds, the other app tells you.

People also call it a callback URL or a reverse API. They all mean the same thing: you give a service a URL, and it POSTs to that URL when an event fires.

How a webhook works

  1. You give the service a URL. In its dashboard or API you add something like https://example.com/webhooks/payments and pick the events you care about.
  2. Something happens. A customer pays, a file finishes uploading, a message arrives.
  3. The service sends a request. Usually a POST with a JSON body describing the event, plus headers that say what it is and prove where it came from.
  4. Your server answers. You return a 2xx status within a few seconds. Most services treat anything else, or no answer, as a failure and try again later.

That's the whole mechanism. A webhook is just an HTTP request going the other way: the service calls you, instead of you calling the service.

A webhook example

Hypersender sends this when your WhatsApp number receives a message and the message.any event is on:

http
POST /webhooks/whatsapp HTTP/1.1
Host: example.com
Content-Type: application/json
Authorization: your-webhook-secret
 
{
  "event": "message.any",
  "data": {
    "payload": {
      "from": "201000000002@c.us",
      "fromMe": false,
      "body": "Is order #1042 on its way?",
      "hasMedia": false
    }
  }
}

Every webhook has the same three parts:

  • Method and URL: almost always POST, to the URL you registered.
  • Headers: the content type, often the event name, and something to prove the sender: a shared secret, as here, or a signature such as Stripe's Stripe-Signature or Meta's X-Hub-Signature-256.
  • Body, called the payload: the event data, usually JSON. Some older services send form fields instead, like From=...&Body=....

Webhook vs API

An API answers when you ask. A webhook calls you when something happens.

With only an API, you'd poll: ask for new messages every ten seconds, which is 8,640 requests a day per number, almost all of them returning nothing. A webhook sends one request per event and arrives within a second.

Most integrations use both: the API to send and fetch, webhooks to hear about changes. There's a longer comparison in webhook vs API.

How to receive a webhook

The receiving end is a normal route in your app. This Flask handler accepts the WhatsApp event above:

python
import hmac, os
from flask import Flask, abort, request
 
app = Flask(__name__)
SECRET = os.environ["HYPERSENDER_WEBHOOK_SECRET"]
 
@app.post("/webhooks/whatsapp")
def whatsapp_webhook():
    if not hmac.compare_digest(request.headers.get("Authorization", ""), SECRET):
        abort(401)
    event = request.get_json()
    if event["event"] == "message.any" and not event["data"]["payload"]["fromMe"]:
        queue_reply(event["data"]["payload"])  # do the real work in a background job
    return {"ok": True}

Four habits keep webhook handlers reliable:

  • Check the sender first. Compare the secret or verify the signature before you trust the body. The URL alone isn't a secret.
  • Answer fast. Return 200 straight away and do slow work, like calling other APIs, in a queue. A handler that takes 30 seconds gets retried and runs twice.
  • Expect duplicates. Retries mean the same event can arrive more than once. Store an event ID, or make the action safe to repeat.
  • Don't rely on order. Two events can arrive out of sequence, such as "delivered" before "sent". Use timestamps when order matters.

How to test a webhook

The hard part of webhooks is seeing what arrives before your handler exists. A webhook tester solves that: it gives you a temporary URL, you paste it into the service, trigger an event, and read the exact method, headers and body in your browser. Then you write the handler against the real payload instead of the docs' example.

The free Hypersender tester also answers Meta's verification request (hub.challenge), so you can paste it straight into the WhatsApp Cloud API settings and see real message payloads. You can set the status code it returns, too, to check how a service retries after a 500.

When your handler runs on your own machine, a tunnel such as ngrok gives it a public HTTPS address. Webhook services can't reach localhost.

When a webhook doesn't arrive

  • The URL isn't public. It must be reachable from the internet over HTTPS. localhost, private IPs and self-signed certificates usually fail.
  • Your server answers with an error or too slowly. Check the service's delivery log. Hypersender's Webhook Logs show every attempt, your server's response, and a button to resend.
  • The event isn't selected. Many services only send the events you ticked.
  • A firewall or bot protection blocks it. Allow the service's IP range, or exclude the webhook route from challenges.

Webhooks in WhatsApp and SMS

For messaging, webhooks are how your app hears back. With Hypersender, incoming WhatsApp messages, delivery and read receipts, reactions, and every SMS your Android phone receives reach your server as webhooks. The WhatsApp webhook guide lists the events and how to answer them, and the WhatsApp bot in Python builds a complete bot on top of one.

Get a free webhook URL to see a request arrive, or start a Hypersender trial to receive your own WhatsApp messages by webhook. The first 14 days are free.

Keep reading

Webhook vs API: The Difference, With ExamplesWebhook vs API: The Difference, With Examples

Developer guides

Webhook vs API: The Difference, With Examples

Webhook vs API: an API answers when you ask, a webhook calls you when something happens. When to use each, with WhatsApp and SMS examples.

November 29, 2026·2 min read

By Hypersender

Send WhatsApp Message From Google Sheets With Apps ScriptSend WhatsApp Message From Google Sheets With Apps Script

Developer guides

Send WhatsApp Message From Google Sheets With Apps Script

Send WhatsApp message from Google Sheets: a free Apps Script that sends one message per row from your own number, with an SMS version.

November 28, 2026·3 min read

By Hypersender

Free SMS API: Send Texts Through Your Own Android PhoneFree SMS API: Send Texts Through Your Own Android Phone

Developer guides

Free SMS API: Send Texts Through Your Own Android Phone

Is there a free SMS API? The honest options, and how to send SMS from your own Android phone and SIM with a REST API, free for 28 days.

November 28, 2026·3 min read

By Hypersender

Start Sending WhatsApp and SMS Messages Today

Start a free trial: 14 days for WhatsApp and 28 days for SMS, with up to 100 messages a day.

Contact SalesGet Started