WhatsApp send message API

POSTSend message API

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.

POSThttps://dashboard.koverage.in/api/v2/whatsapp/message
AuthorizationBearer YOUR_API_KEY
Content-Typeapplication/json
Required fieldcontacts
Answer“status”: “success”
success means Koverage accepted the request. The message is not delivered yet.
01Request builder

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.

1Message kind

2Recipients

Try 1001 with a template, or 2 with a text message, to see the checks fail.

3Message text
0 / 4096
4Earlier message

This becomes context.message_id.

•Optional fields
Checks before you sendReady
    02Request body

    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.

    • phoneIdstringoptional

      Which WhatsApp number sends the message. Leave it out and the first phone ID on your account is used.

    • typestringoptional

      What you are sending: text, template, image, video, audio, document, sticker, location, reaction, contacts or interactive.

    • contactsarrayREQUIRED

      Who gets the message. One object per person.

      • msisdnstringrequired

        The phone number with country code, digits only. The dashboard example is 15551234567.

      • parametersobjectoptional

        Template values. Koverage reads this only when type is template.

        • headerarrayoptional

          Items shaped like { type, value }.

        • bodyarrayoptional

          A list of strings for the template body.

        • buttonsarrayoptional

          Items shaped like { index, url }.

    • contextobjectoptional

      Holds message_id. Makes your message a reply to an earlier message.

    • textobjectif type = text

      Holds body and, optionally, preview_url.

      • bodystringrequired

        The message text. At most 4096 characters.

      • preview_urlbooleanoptional

        Link preview setting for links inside body.

    03Limits

    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 characters
    01024204830724096
    Free-form: contacts per request1 contact
    12505007501000
    Template: contacts per requestUp to 1000 by default
    12505007501000
    04Templates

    How 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.

    Header valueparameters.header
    Hi Aman, your order 1042 is out for delivery.parameters.body: one string per variable
    Track orderparameters.buttons: index + url

    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.

    05Replies

    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.

    Is my order on the way?Earlier message
    context.message_id
    Is my order on the way?
    Yes. It is out for delivery today.Your reply
    “type”: “text”, “context”: { “message_id”: “MESSAGE_ID” }, “text”: { “body”: “Yes. It is out for delivery today.” }

    Use a message id you saved from an earlier message. Switch the builder to Reply to see the full body.

    06Message types

    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 text
    • templateApproved template
    • imageMedia
    • videoMedia
    • audioMedia
    • documentMedia
    • stickerMedia
    • location
    • reaction
    • contactsvCards via contact_cards
    • interactive
    Built on this pageSee your dashboard API docs
    07Around the call

    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.

    Before
    POST
    Upload mediaUpload media to Meta ahead of a send.
    GET
    Check the 24-hour windowSee if the customer-service window is open before a free-form message.
    Send messagePOST
    After
    GET
    Delivery reportFetch one message’s delivery report.
    POST
    Mark as readMark an inbound message as read.
    HOOK
    Customer repliesReplies arrive on your server as a webhook.

    Remember: a “success” answer from the WhatsApp send message API is acceptance, not delivery.

    08Preflight

    Preflight checklist for your first live send

    Tick each item as you finish it. It takes two minutes and removes the common mistakes.

    0/7items ready

    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.

    Scroll to Top