Introduction
REST API
- WhatsApp
- Message
Webhooks
Chatbot with API
Message
Send Text Message
Sends a text message to a MyAlice customer in any platform
POST
/
stable
/
open
/
customers
/
send-text-message
curl --request POST \
--url https://api.myalice.ai/stable/open/customers/send-text-message \
--header 'Content-Type: application/json' \
--header 'X-Myalice-Api-Key: <api-key>' \
--data '{
"customer_id": "1022",
"text": "Hi"
}'
{
"id": "<string>",
"project_id": 123,
"timestamp": "<string>",
"function_name": "<string>",
"message": "<string>",
"status": "<string>",
"extra": {
"timestamp": "<string>",
"project_id": 123,
"platform_id": 123,
"customer_id": 123,
"customer_phone": "<string>",
"template_id": "<string>",
"template_name": "<string>",
"source": "<string>",
"success": true,
"report": {
"messaging_product": "<string>",
"contacts": [
{
"input": "<string>",
"wa_id": "<string>"
}
],
"messages": [
{
"id": "<string>",
"message_status": "<string>"
}
]
}
}
}
Authorizations
Body
application/json
Text to send
The body is of type object
.
Response
200
application/json
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.myalice.ai/stable/open/customers/send-text-message \
--header 'Content-Type: application/json' \
--header 'X-Myalice-Api-Key: <api-key>' \
--data '{
"customer_id": "1022",
"text": "Hi"
}'
{
"id": "<string>",
"project_id": 123,
"timestamp": "<string>",
"function_name": "<string>",
"message": "<string>",
"status": "<string>",
"extra": {
"timestamp": "<string>",
"project_id": 123,
"platform_id": 123,
"customer_id": 123,
"customer_phone": "<string>",
"template_id": "<string>",
"template_name": "<string>",
"source": "<string>",
"success": true,
"report": {
"messaging_product": "<string>",
"contacts": [
{
"input": "<string>",
"wa_id": "<string>"
}
],
"messages": [
{
"id": "<string>",
"message_status": "<string>"
}
]
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.