Skip to main content
POST
cURL

Overview

This endpoint sends a WhatsApp message to a specified contact using the Wassly API. It allows you to send text messages through a connected WhatsApp Web instance.

Authentication

This endpoint requires API key authentication via the request header. Required Header:
  • apikey: Your Wassly API key (use {apikey} variable)
  • Autherizaion: Bearer token: The token been generated from the login API (required)

Request Parameters

Form-Data Body Parameters

Example Usage

Response

Upon successful message delivery, the API will return a confirmation response with the message status and details.

Notes

  • Ensure your WhatsApp instance is connected and active before sending messages
  • Phone numbers must be in international format with country code
  • The instance must have an active WhatsApp Web session

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

apikey
string
header
required

Body

multipart/form-data
message
string
instance_id
string
contact_mobile_number
string
contact_name
string
document
file

Pass this as a file to send a document to the customer

media
file

Pass this as a file to send an image, video or audo to the customer

Response

200 - application/json

OK

success
boolean
required
message
string
required
data
object
required