Documentation
HTTP API Documentation
https://api.waapi.me
Send message
This request allows you to send a simple text message through WaAPI instance. Use this method when you need to send a basic text message through the bot to specific contact.
Request
This section provides an example HTTP request for sending a text message. Ensure that the correct instance ID, recipient’s phone number, and message content are specified in the request body to ensure the message is delivered properly.
POSThttps://api.waapi.me/message/send
Headers
When making this request, it`s important to include Authorization HTTP header
Authorization: <YOUR_API_KEY>
Body
Here, you’ll find an example JSON request data and a detailed table that describes each field.
Field | Required | Default | Type | Description |
---|---|---|---|---|
instanceId | yes | - | string|uuid(4) | Instance(bot) id |
phone | yes | - | string|phone | Recipient phone number |
body | yes | - | string|min:4|max:60 | Message body |
Response
Here, you’ll find an example JSON response and a detailed table that describes each field. The JSON response confirms the successful creation of the bot instance and includes key details, like the instance ID and initial configuration settings. Refer to the table to understand each field’s meaning and format.
Field | Type | Description |
---|---|---|
id | string | Message id |
instanceId | string|uuid | Instance(bot) id |
from | string | From phone number |
to | string | To phone number |
body | string | Message body |
status | string|enum | Message status |
type | string|enum | Message direction type, from instance or to instance |
error | string|null | Error message |
read | boolean | If true message was read by recipient |