Configured messages
Send a configured message
POST
Send a message configured on the number by name, filling its placeholders with params.
HTTPBearerheader
AuthorizationBearer <token>phone_number*stringYour WhatsApp number, digits only, e.g. 393401234567.
application/json- body
receiver*stringRecipient, country code and number, digits only, e.g. 393331112222.
Match
^\d{6,15}$message*stringName of the configured message to send.
Length
1 <= length <= 128params?Values for the message's placeholders, by name.
Properties
properties <= 50OK
application/json- response
status*stringok when the message was built and queued.
[key: string]?anycurl -X POST 'https://api.wapiu.ai/v1/numbers/393401234567/commands/simplified-send' \ -H 'Content-Type: application/json' \ -d '{ "message": "promo", "params": { "name": "Ada", "sconto": 20 }, "receiver": "393331234567"}'Example Response
{ "status": "ok"}