Docs / WhatsApp API

WhatsApp API

Send messages, templates, and manage WhatsApp Business API

WhatsApp API

The WhatsApp API allows you to send messages, templates, and receive webhooks through the WhatsApp Business Platform.

Base URL

https://api.apimw.com/v1/whatsapp

Features

  • Text Messages - Send plain text messages
  • Template Messages - Send pre-approved notification templates
  • Media Messages - Send images, documents, audio, and video
  • Interactive Messages - Buttons, lists, and quick replies
  • Delivery Status - Track message delivery and read receipts
  • Webhooks - Receive incoming messages and status updates

Endpoints

Method Endpoint Description
POST /messages/send Send a text message
POST /messages/template Send a template message
GET /messages/{id} Get message status
GET /templates List available templates
POST /templates Create a new template
GET /analytics Get messaging analytics

Message Types

Text Messages

Simple text messages can be sent within the 24-hour customer service window.

Template Messages

Pre-approved templates are required to initiate conversations outside the 24-hour window.

Media Messages

Supported media types:

  • Images (JPEG, PNG) - up to 5MB
  • Documents (PDF) - up to 100MB
  • Audio (MP3, OGG) - up to 16MB
  • Video (MP4) - up to 16MB

Prerequisites

Before using the WhatsApp API:

  1. Connect your WhatsApp Business Account in the Console
  2. Verify your business with Meta
  3. Create and get templates approved (for notifications)

In This Section

POST Send Message

Send a text message via WhatsApp

POST Send Template

Send a pre-approved template message

GET Get Message Status

Check the delivery status of a message

GET List Templates

Get all available message templates

GET Analytics

Get WhatsApp messaging analytics and statistics