Wablas Send Message icon

Wablas Send Message

Send WhatsApp messages and media using Wablas API

Wablas Send Message

AI-generated

Summary

Send a WhatsApp message, media, or document to a phone number via the Wablas API.

Inputs

  • action — Type of request to perform; one of send-message, send-audio, send-image, send-document, send-video (default: send-message).
  • phone (required) — Destination phone number in international format (e.g., +15551234567). Must contain only digits, + or - and be 9‑40 characters.
  • message — Text message body; required when action is send-message.
  • fileUrl — Public HTTPS URL of an audio, image, document, or video file; required for media actions.
  • caption — Optional caption for images, videos, or documents.
  • isGroup — Set to true to send to a group instead of an individual contact.

Output shape

a single JSON object representing the API response

On success the response is returned as a single-element array; on failure the array contains an error object with status and message.

Examples

Example 1: Send a text message to a contact

action=send-message, phone=+15551234567, message=Hello, isGroup=false

Example 2: Send an image to a group with caption

action=send-image, fileUrl=https://example.com/pic.jpg, caption=Group picture, isGroup=true

Discussion