cURL
Whatsapp Web API
Send WhatsApp Message
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
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | No | The text message content to send to the recipient, Required only when you wont send a document or a media |
instance_id | string | Yes | The unique identifier of your WhatsApp instance. This ID is obtained when you create a WhatsApp instance |
contact_mobile_number | string | Yes | The recipient’s phone number in international format (e.g., +country_codemobile_number). Must include country code with + prefix |
contact_name | string | No | Optional display name for the contact |
document | file | No | Optional when you want to send a document |
media | file | No | Optional when you want to image, video or audio |
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
multipart/form-data

