Message a contact when a record enters a view
A view holds records ready to contact. The script sends the message, writes the id and timestamp back, and the record leaves the view, which makes the view itself the queue and the audit trail at once.
POST /messages/text Send a text message
curl --request POST \
--url https://api.wapito.com/v1/messages/text \
--header 'Authorization: Bearer wpt_YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{"to":"+15551234567","body":"Your order #4182 has shipped. Track it here: https://acme.example/t/4182","typing_time":3}'