Whatsapp Text
Reach users globally on the world's most popular messaging platform to send messages in any format as you need. This Whatsapp Text messsage can only be sent to the users after they initiated the chat.
On this page
Request
The request contains form data with target phone number and message in text format.
Curl Example
curl --location --request POST 'https://api.motict.com/v1/wa/unmasking/message' \
--header 'Authorization: api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"from": "+628123456789",
"to": "+628123456781",
"recipient_type": "individual",
"preview_url": true,
"type": "text",
"text": {
"body": "Hi John Doe, How was your day?"
}
}'
Parameters
Name | Type | Required | Description |
---|---|---|---|
api_key | String | Yes | API key credential will be provided by Motict team. |
from | String | Yes |
Your Whatsapp business phone number. Phone numbers are in E.164 format (e.g., +6285123456790) |
to | String | Yes |
Target phone number or group id. Phone numbers are in E.164 format (e.g., +6285123456790) |
recipient_type | String | Yes | (individual/group) Destination group number use group, destination personal number use individual |
preview_url | String | No | Default: true |
type | String | Yes | Type of message |
text.body | String | Yes | Message content should be send to the user. |
Response
The response contains JSON body with message status whether the request is success or error. And also the message id that has been sent to the user.
Body
{
"message": "success",
"data": {
"id": "76034341-89aa-4da2-bc09-1db5dff632e4"
}
}
Parameters
Name | Type | Description |
---|---|---|
id | String | Whatsaap Message ID will be used as call identifier for each request |
message | String | Success or error message. For error response, check Error section for mor details |