I am sending you curl api options how to send message to client along with variable update and how to send trigger along with variable update.
curl --location 'https://beta.promptchat.com/api/integrations/send-message' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer WngfHtIGg46EmiNRRrXe2oqEtFR6Zy8x64wFkQlO3aJmPNi60j0aChXarkOd7kFg' \
--data '{
"phone": "380963554316",
"text": "Test sms from Postman",
"attachment": {
"type": "1",
"mime": "1",
"url": "https://beta.promptchat.com/storage/chats/GgFkzi7xhDYR7i7f.mp3"
},
"variables": {
"city": "Paris"
}
}'
curl --location 'https://beta.promptchat.com/api/integrations/trigger-event' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer WngfHtIGg46EmiNRRrXe2oqEtFR6Zy8x64wFkQlO3aJmPNi60j0aChXarkOd7kFg' \
--data '{
"phone": "+380963554316",
"trigger": "b-day",
"variables": {
"city": "Rome"
}
}'