WhatsApp send message API: build your request and send it
One POST request sends a template or a free-form message. Build yours below, check it against the rules, then copy it. Every field on this page comes from the Koverage API docs.
Build a WhatsApp send message API request
Pick a message kind, switch fields on or off and watch the JSON change. The checks on the right tell you what the API would reject.
Try 1001 with a template, or 2 with a text message, to see the checks fail.
This becomes context.message_id.
Every field of the WhatsApp send message API, as a tree
Read it from the top. Indented fields live inside the field above them. Only contacts is always required.
phoneIdstringoptionalWhich WhatsApp number sends the message. Leave it out and the first phone ID on your account is used.
typestringoptionalWhat you are sending: text, template, image, video, audio, document, sticker, location, reaction, contacts or interactive.
contactsarrayREQUIREDWho gets the message. One object per person.
msisdnstringrequiredThe phone number with country code, digits only. The dashboard example is 15551234567.
parametersobjectoptionalTemplate values. Koverage reads this only when type is template.
headerarrayoptionalItems shaped like { type, value }.
bodyarrayoptionalA list of strings for the template body.
buttonsarrayoptionalItems shaped like { index, url }.
contextobjectoptionalHolds message_id. Makes your message a reply to an earlier message.
textobjectif type = textHolds body and, optionally, preview_url.
bodystringrequiredThe message text. At most 4096 characters.
preview_urlbooleanoptionalLink preview setting for links inside body.
Two limits of the WhatsApp send message API
Free-form messages go to one person. Template messages can go to many. The text itself has a size limit.
text.body lengthAt most 4096 characterscontacts per request1 contactcontacts per requestUp to 1000 by defaultHow template parameters fill a message
Template values go inside each contact, under parameters. Koverage reads them only when type is template. Each contact can have its own values.
Each colour matches a part of the message. Body values go in the order of the variables in your approved template. The three dots in type, value and url are placeholders. Copy real values from your template and dashboard docs.
Reply to one message with context
Add context with the message_id of the earlier message. With type set to text, this makes your message a reply. The older type value reply does the same and is deprecated.
Use a message id you saved from an earlier message. Switch the builder to Reply to see the full body.
Eleven message types in the WhatsApp send message API
The type field picks what you send. This page builds text, reply and template requests. For the other types, follow the body fields in your dashboard API docs.
textFree-form texttemplateApproved templateimageMediavideoMediaaudioMediadocumentMediastickerMedialocationreactioncontactsvCards via contact_cardsinteractive
What to do before and after you send
The send call has neighbours in the same API. These are the ones that matter most. The exact paths are in your dashboard API docs.
Remember: a “success” answer from the WhatsApp send message API is acceptance, not delivery.
Preflight checklist for your first live send
Tick each item as you finish it. It takes two minutes and removes the common mistakes.
WhatsApp send message API: your questions answered
What is the WhatsApp send message API endpoint?
Send a POST request to https://dashboard.koverage.in/api/v2/whatsapp/message. Add the header Authorization: Bearer YOUR_API_KEY and the header Content-Type: application/json. The body is JSON.
Which fields are required?
contacts is always required. It is an array, and every item needs an msisdn. When type is text, the text object with a body is also required. phoneId, type, context and the other fields are optional.
How many people can I message in one request?
A free-form message takes one contact per request. A template message can take many contacts. The default limit is 1000 contacts per request. Split a bigger list into batches.
What does "status": "success" mean?
It means Koverage accepted your request. It does not mean the message reached the phone. Delivery happens next on WhatsApp. Use the delivery report endpoint or webhooks to follow it.
What happens if I leave out phoneId?
Koverage uses the first phone ID on your account. If you have more than one WhatsApp number, set phoneId so the right number sends the message.
How do I reply to a customer message?
Add a context object with the message_id of the earlier message. With type text, this makes your message a reply. The old type reply still exists but is deprecated.
Which message types can I send?
The dashboard docs list text, template, image, video, audio, document, sticker, location, reaction, contacts and interactive. The contacts type sends vCards.
Where do I get the API key?
Open the API docs in your Koverage dashboard. The key is shown at the top, and a Regenerate Key button is next to it. Keep the key on your server and never put it in browser code.
Send your first message with the WhatsApp send message API
Get your key, build a request here and send it from your server. Want to test without code? Try the Postman collection.