I'm trying to create a Custom Connector on Power Automate to send Whatsapp messages via Twilio. The problem is that Twilio API requires POST x-www-form-urlencoded content-type as per Twilio's documentation:
curl -X POST https://api.twilio.com/2010-04-01/Accounts/<accountID>/Messages.json \
--data-urlencode "From=whatsapp:+14155238886" \
--data-urlencode "Body=Hello there" \
--data-urlencode "To=whatsapp:+15005550006" \
-u <accountID>:<accountKey>
Thus, the raw payload Twilio expects is:
From=whatsapp%3A%2B14155238886&Body=Hello%20There&To=whatsapp%3A%2B15005550006
Once the sample analyzer of Custom Connector only accepts JSON formatted body, it gives a "invalid Json format" error message when the raw payload above is placed.
It works with no problem in Postman.
How could I handle those parameter in order to ingest it into Custom Connecter builder?
Thanks

Report
All responses (
Answers (