Hi there,
I'm integrating WhatsApp Cloud API to Power Automate. Below is what's in place
- WhatsApp Number (Business)
- Meta Developer Account
- WhatsApp Business App created in Meta
- WhatsApp Cloud API enabled
- Power Automate environment
I have created a trigger in Power automate (When an HTTP request is received) and added response action.
- When an HTTP request is received
- Schema
-
{
"type": "object",
"properties": {
"hub.mode": {
"type": "string"
},
"hub.verify_token": {
"type": "string"
},
"hub.challenge": {
"type": "string"
}
}
}
- Condition
- @equals(triggerOutputs()['queries']['hub.verify_token'], 'WhatsApp-Co-webhook')
-
- Response
- Code: 200
- Body: triggerOutputs()['queries']['hub.challenge']
ON META CONFIGURATION:
- Callback URL: defaultxxx.e3.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/xxx/triggers/manual/paths/invoke?api-version=1
- Verify token: WhatsApp-Co-webhook
I tested with Postman and it returns a challenge number but with Meta it keeps saying:
The callback URL or verify token couldn't be validated. Please verify the provided information or try again later.
I checked some topics and they suggest to use xxx.logic.azure.com:443 url.
Please help me. What is it that I'm missing in my code or configuration in Power Automate?