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.
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 sendmediaUrl.mediaUrlandcaption: a public URL of an image, video, audio or document, with an optional caption.buttons: up to 3 buttons of typequick_reply(text, id),url(text, url),call(text, phone) orcopy(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.