Developers Hub

DEVELOPERSDeveloper hub

WhatsApp API for developers: connect your apps and send messages with one API

Your website, CRM and ERP can talk to WhatsApp through one HTTPS and JSON API. Send templates and free-form messages, run campaigns and receive customer replies.

HTTPS + JSONBearer keyWebhooks7 code samples
POST /api/v2/whatsapp/message
curl -X POST "https://dashboard.koverage.in/api/v2/whatsapp/message" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "text",
    "contacts": [{ "msisdn": "15551234567" }],
    "text": { "body": "Hello!" }
  }'
Response success
{
  "status": "success",
  ...
}

Accepted means Koverage took your request. Delivery to the phone happens next, on WhatsApp.

How your systems reach WhatsAppRequests go out. Replies and events come back as webhooks.
Your website, CRM, ERP and apps call the Koverage API, which sends messages to WhatsApp and the customer. Replies return as webhooks to your server.WebsiteForms and checkoutCRMLeads and dealsERPOrders and invoicesYour appAny backendKoverage APIPOST /api/v2/whatsapp/messageBearer keyJSONWebhooksTemplates · Free-form · CampaignsFlows · Contacts · Delivery reportsWhatsAppBusiness messagingCustomerReplies return as message_received webhooks to your serverYour website, CRM, ERP and apps call the Koverage API, which sends messages to WhatsApp and the customer. Replies return as webhooks.WebsiteCRMERPYour appKoverage APIPOST /api/v2/whatsapp/messageBearer keyJSONWebhooksTemplates · Free-form · Campaigns · FlowsWhatsAppReplies return as webhooks to your server
01Get started

Your first WhatsApp message, in five steps

The WhatsApp API for developers needs a key and one request. Here is the whole road, from account to replies.

  1. 1

    Set up your account

    Create your Koverage account and connect a WhatsApp number to the API.

    Account + WhatsApp number
  2. 2

    Copy your API key

    Open the API docs in your dashboard. Your key is at the top of the page.

    Authorization: Bearer KEY
  3. 3

    Send your first request

    POST JSON with a type, a contact and a message. Use any language above.

    POST /api/v2/whatsapp/message
  4. 4

    Check what happened

    Your call tells you it was accepted. Look up the delivery report to see delivery.

    GET delivery report
  5. 5

    Listen for replies

    Give Koverage your server address. Each customer reply arrives as a webhook.

    event: message_received
02Before you send

Which message can you send? One question decides.

With the WhatsApp API for developers, free-form replies work only while a chat is open. Otherwise you start with a template.

Ask first

Did this customer message you in the last 24 hours?

GET: check the 24 hour window
YES: window open

Send a free-form message

Reply in your own words. The type can be:

textimagevideoaudiodocumentstickerlocationreactioncontactsinteractive
1 contact per request4096 characters in a text body
NO: window closed

Send a template message

Use a template made for your account. Each recipient can have their own header, body and button values.

type: templateparameters.headerparameters.bodyparameters.buttons
1000 recipients per request, by default
Always neededYour API keyA WhatsApp number on the APIA customer who agreed to hear from you
03Message lifecycle

Accepted does not mean delivered

In the WhatsApp API for developers, your API response and the delivery on WhatsApp are two different moments. Track both.

Zone 1 · API acceptanceYou see this in your API response
Your serverPOST the message
Koverage checksKey, JSON and required fields
AcceptedResponse: “status”: “success”
RejectedAn error comes back. See Error Codes in your docs.
Accepted ≠ delivered
Zone 2 · Delivery on WhatsAppThis happens after your request
Sent to WhatsAppKoverage hands the message over
Delivered to the phoneThe customer has it
Not deliveredFor example, the phone cannot receive it
ReadThe customer opened the chat
GETFetch a single message’s delivery report to see how one message ended up.

Exact status names and error codes are listed in the delivery report and Error Codes pages of your dashboard docs.

04Webhooks

How customer replies reach your server

You do not need to keep asking for new messages. The WhatsApp API for developers calls your server when something arrives.

Swipe sideways →

A customer reply travels from WhatsApp to Koverage and then to your server as a message_received webhook. Your server can answer with the send message API.CustomerWhatsAppKoverageYour server1Sends a reply2Delivers it3message_receivedJSON payload4Send message API5Passes it on6Reply arrives

POSTmessage_received

event_type
The kind of event, such as text or button_reply
event
The details for that event type
text
Readable message text. Empty if there is none
from
The sender’s number
msg_id
The platform’s message id
timestamp
An ISO date

event_type values

textmedialocationcontactsreactiontemplate_buttonbutton_replylist_replynfm_replyorderreferralsystemunsupportederror
Reply to one message: send it again with context.message_id set to the msg_id you received.
05Capabilities

Everything the WhatsApp API for developers can do

Select a block to see its endpoints. All of them use the same Bearer key.

Map of Koverage API capabilities: messaging, campaigns, contacts, delivery reports, WhatsApp Flows and media. Select one to see its endpoints.KoverageAPIMessagingSend and manageCampaignsFollow and controlContactsBlock and unblockDelivery reportsKnow what happenedWhatsApp FlowsForms inside chatMediaFiles and images

Tap a block

Messaging

Send one template or free-form message to one or more contacts. Use it for alerts, receipts, OTP-style notices and replies.

  • POSTSend one WhatsApp message (template or free-form) to one or more contacts
  • POSTMark an inbound message as read

The full and current endpoint list is in the API docs in your dashboard.

06What teams build

Five flows you can build this week

Each flow uses only the endpoints and webhooks shown above, so you can build it with the WhatsApp API for developers today.

Order updatesYour ERP
  1. Order status changes
  2. Your server sends a template
  3. You read the delivery report
Support repliesHelpdesk
  1. Webhook: event_type text
  2. Your helpdesk opens a ticket
  3. Agent replies with context.message_id
Lead follow-upWebsite + CRM
  1. Form is submitted
  2. Template with a button
  3. Webhook: button_reply
  4. CRM moves the lead
Flow data captureWhatsApp Flows
  1. Webhook: nfm_reply
  2. You read Flow completions
  3. Save in your database
Campaign controlBulk sends
  1. Send a template campaign
  2. Read the status funnel
  3. Cancel the unsent rest
  4. Or move the date
Your systemKoverage API callWebhook to youCustomer on WhatsApp

WhatsApp API for developers: your questions answered

Is a successful API response the same as message delivery?

No. A success response means Koverage accepted your request. The message is then handled by WhatsApp. Use the delivery report endpoint to see what happened to one message.

What do I need before I send my first message?

A Koverage account, a WhatsApp number on the API, your API key and a customer who agreed to hear from you. Then send a POST request with your key as a Bearer token.

When can I send a free-form message?

When the 24 hour customer-service window is open. The API has an endpoint that checks this for a contact. Free-form types go to one contact per request.

When must I use a template?

When the window is closed, or when you start the chat. A template request can include many recipients, up to 1000 by default, and each recipient can have its own parameters.

Which languages can I use?

Any language that can send an HTTPS request. The examples above show cURL, PHP, Python, Node.js, Java, Go and C#.

How do I receive customer replies?

Koverage calls your server with a message_received webhook for each incoming event. It includes event_type, event, text, from, msg_id and timestamp.

How do I reply to one specific message?

Send a message and pass the earlier message id in context.message_id.

Where do I find my API key?

In the API docs in your Koverage dashboard. It sits at the top of the page, next to a Regenerate Key button.

Build your WhatsApp integration with Koverage

Get your key and send your first message with the WhatsApp API for developers. There is no platform fee, and you pay only for messages. See pricing.

Scroll to Top