Developers · API v1.0.0

Hello24 Custom API

Build WhatsApp messaging and webhook integrations with the Hello24 Custom API.

Quick start

  • Messaging

    Send template messages and session text messages with a simple REST API.

  • Webhooks

    Receive incoming customer messages and real-time message status updates.

  • Authentication

    Secure every request with the API key from your Hello24 portal.

  • Examples

    Request and response examples and curl commands for every endpoint.

  1. Generate an API key

    Log in to the Hello24 portal and open Integrations → Custom API Integration.

  2. Configure a webhook

    Register your HTTPS endpoint to receive incoming messages and message status events.

  3. Send your first message

    Send an approved WhatsApp template message to start a conversation with your customer.

  4. Receive webhook events

    Process incoming customer messages and delivery events in real time.

Authentication

Every API request must include your Hello24 API key in the HELLO24_API_KEY request header.

Generate your API key in the Hello24 portal under Integrations → Custom API Integration.

Keep your key secret. Your API key gives full access to your account's messaging APIs. Never put it in client-side code, mobile apps or public repositories; always call the API from your own server.

Overview

The Hello24 API enables applications to communicate with customers over WhatsApp using the WhatsApp Business Platform.

Features

  • Send WhatsApp Template Messages
  • Send Plain Text Messages
  • Configure Webhooks
  • Receive Incoming Customer Messages
  • Receive Message Status Events (Sent, Delivered, Read and Failed)

Base URL

https://api.hello24.in/prod

All API endpoints are versioned.

Current API version:

/v1

Example endpoint:

POST https://api.hello24.in/prod/v1/sendTemplateMessage

Authentication

Every API request must include your Hello24 API key in the request header.

Header:

HELLO24_API_KEY: YOUR_API_KEY

API keys can be generated from the Hello24 Portal under:

Integrations → Custom API Integration

Response Format

The API always returns JSON.

Successful requests return:

  • code = SUCCESS

Failed requests return:

  • code = FAILURE

For message sending APIs, an HTTP 200 response only indicates that Hello24 successfully received your request.

Always inspect the response body to determine whether the message was accepted or rejected.

Webhooks

After configuring a webhook URL, Hello24 sends HTTP POST requests to your endpoint for:

  • Incoming customer messages
  • Message sent
  • Message delivered
  • Message read
  • Message failed

Your webhook endpoint should respond with HTTP 200 after successfully processing each event.

Phone Number Format

Phone numbers should include the country code without spaces or special characters.

Example:

919876543210

Messages

Send WhatsApp messages to customers.

Includes template messages and free-form text messages.

POST/v1/sendTemplateMessage

Send a WhatsApp template message

Sends a pre-approved WhatsApp template message to a recipient.

Template messages can be used to:

  • Start a new conversation with a customer.
  • Re-engage customers after the 24-hour customer service window has expired.
  • Send transactional, authentication or marketing notifications using approved WhatsApp templates.

Each request references an approved template and can optionally include values for template variables.

Template Components

A template may contain one or more of the following components:

Component Required Description
Header No Text, image, video or PDF document.
Body Usually Variables used in the template body.
CTA Buttons No Dynamic parameters for call-to-action buttons.
Quick Reply Buttons No Options customers can tap to send a predefined response.

The values supplied in the request must match the template definition approved in WhatsApp Business Manager.

Recipient Number

Provide the recipient's WhatsApp number in international format without spaces or special characters.

Example:

919876543210

Response

An HTTP 200 OK response only confirms that Hello24 successfully received your request.

Always inspect the response body:

  • code = SUCCESS indicates the message was accepted for delivery.
  • code = FAILURE indicates the message was rejected. The response contains one or more errors describing the reason.

Headers

HELLO24_API_KEYrequiredstringYour Hello24 API key.
Content-Typestringapplication/json

Body

templateNamerequiredstringName of the approved WhatsApp template including the language code. Example: welcome_message (en) Example: welcome_message (en)
paramsTemplateParamsValues supplied for the variables defined in the approved WhatsApp template. Include only the components used by the template.
params.headerarray of stringHeader variables or media URL.
params.bodyarray of stringBody variables in template order.
params.buttonsarray of stringDynamic URL values for CTA buttons.
params.quick_reply_buttonsarray of stringPayload values for quick reply buttons.
phonerequiredstringRecipient phone number in international format. Example: 919876543210

Responses

  • 200 Request processed successfully.
  • 403 Invalid API key or unauthorized request.

POST/v1/sendTextMessage

Send a WhatsApp text message

Sends a plain text WhatsApp message to a recipient.

Text messages can only be sent when there is an active customer service conversation with the recipient. The conversation remains active for 24 hours after the customer's last message.

If no active conversation exists, use the Send Template Message endpoint to initiate a new conversation.

Recipient Number

Provide the recipient's WhatsApp number in international format without spaces or special characters.

Example:

919876543210

Response

An HTTP 200 OK response only confirms that Hello24 successfully received your request.

Always inspect the response body:

  • code = SUCCESS indicates the message was accepted for delivery.
  • code = FAILURE indicates the message could not be sent.

Headers

HELLO24_API_KEYrequiredstringYour Hello24 API key.
Content-Typestringapplication/json

Body

messageTextrequiredstringPlain text message to send to the recipient. Example: Hi. I am a plain text message.
phonerequiredstringRecipient's WhatsApp number including country code. Example: 919876543210

Responses

  • 200 Message request processed successfully.
  • 403 Invalid API key or unauthorized request.

Webhooks

Configure webhook endpoints to receive message lifecycle events.

POST/v1/setWebhook

Configure a webhook endpoint

Registers a webhook URL to receive WhatsApp webhook events.

Once configured, Hello24 will send HTTP POST requests to this endpoint whenever a subscribed WhatsApp event occurs, including:

  • Incoming customer messages
  • Message sent
  • Message delivered
  • Message read
  • Message failed

The webhook URL must:

  • Use HTTPS.
  • Be publicly accessible.
  • Respond with HTTP 200 OK after successfully processing each webhook event.

Headers

HELLO24_API_KEYrequiredstringYour Hello24 API key.
Content-Typestringapplication/json

Body

urlrequiredstringPublic HTTPS endpoint that will receive webhook events from Hello24. Format: uri. Example: https://example.com/webhook

Responses

  • 200 Webhook configuration request processed successfully.
  • 403 Invalid API key or unauthorized request.

POST/v1/removeWebhook

Remove the configured webhook

Removes the currently configured webhook endpoint for the authenticated account.

After the webhook is removed, Hello24 will stop sending all webhook events, including incoming customer messages and message status updates.

To resume receiving webhook events, configure a new webhook using the Set Webhook endpoint.

Headers

HELLO24_API_KEYrequiredstringYour Hello24 API key.

Responses

  • 200 Webhook removal request processed successfully.
  • 403 Invalid API key or unauthorized request.

POSTYour webhook URL

Webhook callback payload

This section describes the HTTP POST payloads that Hello24 sends to your configured webhook URL.

Your application should expose an HTTPS endpoint capable of receiving these webhook events.

Hello24 currently sends webhook events for:

  • Incoming customer messages
  • Message sent
  • Message delivered
  • Message read
  • Message failed

Message status events can be correlated with your original Send Message API request using the returned WhatsApp message ID.

Your webhook endpoint should return HTTP 200 OK after successfully processing each event.

Payload Hello24 sends

IncomingMessageWebhook

messaging_productrequiredstringExample: whatsapp
metadatarequiredobject
metadata.display_phone_numberstringExample: 918056585189
contactsrequiredarray of object
contacts[].profileobject
contacts[].profile.namestringExample: V
contacts[].wa_idstring
contacts[].user_idstring
messagesrequiredarray of IncomingMessage
messages[].fromstring
messages[].from_user_idstring
messages[].idstring
messages[].timestampstring
messages[].typestringExample: text
messages[].textobject
messages[].text.bodystring

MessageStatusWebhook

messaging_productrequiredstringExample: whatsapp
metadatarequiredobject
metadata.display_phone_numberstringExample: 918056585189
contactsrequiredarray of object
contacts[].profileobject
contacts[].profile.namestringExample: V
contacts[].wa_idstring
contacts[].user_idstring
statusesrequiredarray of MessageStatus
statuses[].idstring
statuses[].statusstring: sent | delivered | read | failed
statuses[].timestampstring
statuses[].recipient_idstring
statuses[].recipient_user_idstring
statuses[].conversationobject
statuses[].conversation.idstring
statuses[].conversation.expiration_timestampstring
statuses[].conversation.originobject
statuses[].conversation.origin.typestringExample: service

What your endpoint should return

  • 200 Return HTTP 200 after successfully processing the webhook event.
  • 400 Invalid webhook payload.

Models

The data structures used in requests, responses and webhooks.

Contact

inputrequiredstringPhone number provided in the request. Example: 919876543210
wa_idrequiredstringWhatsApp ID of the recipient. Example: 919876543210

Message

idrequiredstringUnique WhatsApp message identifier. Example: gBEGkXQRF3gGAgl4jbPFezZT6XX

Meta

api_statusrequiredstringExample: stable
versionrequiredstringExample: 2.43.2

ApiError

coderequiredintegerExample: 1013
titlerequiredstringExample: Primary Reason
detailsrequiredstringExample: Detailed error description

TemplateParams

Values supplied for the variables defined in the approved WhatsApp template.

Include only the components used by the template.

headerarray of stringHeader variables or media URL.
bodyarray of stringBody variables in template order.
buttonsarray of stringDynamic URL values for CTA buttons.
quick_reply_buttonsarray of stringPayload values for quick reply buttons.

SendTemplateMessageRequest

templateNamerequiredstringName of the approved WhatsApp template including the language code. Example: welcome_message (en) Example: welcome_message (en)
paramsTemplateParamsValues supplied for the variables defined in the approved WhatsApp template. Include only the components used by the template.
params.headerarray of stringHeader variables or media URL.
params.bodyarray of stringBody variables in template order.
params.buttonsarray of stringDynamic URL values for CTA buttons.
params.quick_reply_buttonsarray of stringPayload values for quick reply buttons.
phonerequiredstringRecipient phone number in international format. Example: 919876543210

SendMessageSuccessResponse

coderequiredstring: SUCCESS
datarequiredobject
data.contactsrequiredarray of Contact
data.contacts[].inputrequiredstringPhone number provided in the request. Example: 919876543210
data.contacts[].wa_idrequiredstringWhatsApp ID of the recipient. Example: 919876543210
data.messagesrequiredarray of Message
data.messages[].idrequiredstringUnique WhatsApp message identifier. Example: gBEGkXQRF3gGAgl4jbPFezZT6XX
data.metarequiredMeta
data.meta.api_statusrequiredstringExample: stable
data.meta.versionrequiredstringExample: 2.43.2

SendMessageFailureResponse

When code is FAILURE

coderequiredstring: FAILURE
errorrequiredstringExample: The provided input parameters are invalid.

When code is FAILURE

coderequiredstring: FAILURE
datarequiredstringExample: Given Params ... does not match the template.

When code is FAILURE

coderequiredstring: FAILURE
datarequiredobject
data.errorsarray of ApiError
data.errors[].coderequiredintegerExample: 1013
data.errors[].titlerequiredstringExample: Primary Reason
data.errors[].detailsrequiredstringExample: Detailed error description
data.metaMeta
data.meta.api_statusrequiredstringExample: stable
data.meta.versionrequiredstringExample: 2.43.2

IncomingMessageWebhook

messaging_productrequiredstringExample: whatsapp
metadatarequiredobject
metadata.display_phone_numberstringExample: 918056585189
contactsrequiredarray of object
contacts[].profileobject
contacts[].profile.namestringExample: V
contacts[].wa_idstring
contacts[].user_idstring
messagesrequiredarray of IncomingMessage
messages[].fromstring
messages[].from_user_idstring
messages[].idstring
messages[].timestampstring
messages[].typestringExample: text
messages[].textobject
messages[].text.bodystring

MessageStatusWebhook

messaging_productrequiredstringExample: whatsapp
metadatarequiredobject
metadata.display_phone_numberstringExample: 918056585189
contactsrequiredarray of object
contacts[].profileobject
contacts[].profile.namestringExample: V
contacts[].wa_idstring
contacts[].user_idstring
statusesrequiredarray of MessageStatus
statuses[].idstring
statuses[].statusstring: sent | delivered | read | failed
statuses[].timestampstring
statuses[].recipient_idstring
statuses[].recipient_user_idstring
statuses[].conversationobject
statuses[].conversation.idstring
statuses[].conversation.expiration_timestampstring
statuses[].conversation.originobject
statuses[].conversation.origin.typestringExample: service

IncomingMessage

fromstring
from_user_idstring
idstring
timestampstring
typestringExample: text
textobject
text.bodystring

MessageStatus

idstring
statusstring: sent | delivered | read | failed
timestampstring
recipient_idstring
recipient_user_idstring
conversationobject
conversation.idstring
conversation.expiration_timestampstring
conversation.originobject
conversation.origin.typestringExample: service

WebhookBase

messaging_productrequiredstringExample: whatsapp
metadatarequiredobject
metadata.display_phone_numberstringExample: 918056585189
contactsrequiredarray of object
contacts[].profileobject
contacts[].profile.namestringExample: V
contacts[].wa_idstring
contacts[].user_idstring