Blog/CenGHL's WhatsApp API: Send Messages and Receive Webhooks from Your Own Apps
Tutorial5 min readOctober 25, 2026

CenGHL's WhatsApp API: Send Messages and Receive Webhooks from Your Own Apps

Use CenGHL's REST API to send WhatsApp text, media and buttons from your own systems, and receive incoming messages on a webhook.

Try CenGHL free for 7 days

Connect WhatsApp to GHL in 5 minutes. No Meta API needed.

Start free →

What the API is for

Besides GoHighLevel, you can send WhatsApp messages from your own apps — a booking system, an e-commerce store, an internal tool — through the WhatsApp numbers connected to a CenGHL sub-account. And you can receive the incoming messages on your own URL.

Developer API section in CenGHL with the masked API key, usage examples and the optional webhook URL

Your API key

Go to Settings → API in the sub-account. Copy the key (it starts with cenghl_) and keep it secret: it lets anyone send messages from your numbers. If it leaks, click Revoke. "Usage examples" shows ready-to-copy code for text, media, buttons and choosing the number.

Send a message

POST https://app.cenghl.com/api/v1/messages/send with the header Authorization: Bearer YOUR_API_KEY and a JSON body:

  • to (required): the recipient's phone with country code, e.g. +34600000000.
  • message: the text. Required unless you send mediaUrl.
  • mediaUrl and caption: a public URL of an image, video, audio or document, with an optional caption.
  • buttons: up to 3 buttons of type quick_reply (text, id), url (text, url), call (text, phone) or copy (text, code).
  • instanceId: the WhatsApp number to send from. If you leave it out, the default connected number is used, or else the first connected one.

A successful call returns {"ok": true, "instanceId": "…"}.

Receive incoming messages

Fill in Webhook URL and click Save webhook. CenGHL will send a POST to that URL for each incoming message, with a JSON like:

{
  "event": "message.received",
  "instanceId": "…",
  "locationId": "…",
  "from": "+34600000000",
  "message": "Hi!",
  "attachments": ["https://…"],
  "contactId": "…",
  "ad": {
    "sourceId": "120210000000000000",
    "sourceUrl": "https://fb.me/…",
    "ctwaClid": "…",
    "title": "Black Friday 50%"
  },
  "timestamp": "2026-10-25T10:00:00.000Z"
}

attachments only appears when the message includes a file. contactId is the contact's ID in GoHighLevel. ad only appears when the contact writes from a Meta Click-to-WhatsApp ad: sourceId is the ad ID, which you can look up in the Meta Marketing API to get its campaign. Messages keep arriving in GoHighLevel as usual; the webhook is an extra copy.

Frequently asked questions

Where do I get the API key?

In Settings → API of each sub-account in your CenGHL panel.

Which number does the message go out from?

From the one you set in instanceId. Without it, from the sub-account's default connected number or, failing that, the first connected one.

How many buttons can I send?

Up to 3 per message: quick reply, link, call or copy code.

Do incoming messages stop reaching GoHighLevel if I use the webhook?

No. They keep arriving in GoHighLevel; the webhook is an additional copy for your system.

What do I do if my key leaks?

Click Revoke in Settings → API and generate a new one. The old key stops working right away.

Ready to get started?

7-day free trial. No Meta API. No per-message fees. Cancel anytime.

Start your free trial →