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

X-Myalice-Api-Key
string
headerrequired

Body

application/json
customer_id
string
required

The Id of the customer in MyAlice, can be found in MyAlice Dashboard or API/Webhook call

text
string
required

Text message to be sent

Response

200 - application/json
id
string
required
project_id
integer
required
timestamp
string
required
function_name
string
required
message
string
required
status
string
required
extra
object
required