cURL
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>" } ] } } }
Sends a text message to a MyAlice customer in any platform
Text to send
The Id of the customer in MyAlice, can be found in MyAlice Dashboard or API/Webhook call
"1022"
Text message to be sent
"Hi"
Successful operation
Show child attributes