I'm using Twilio messaging service to send SMS e.g:
curl --location --request POST 'https://api.twilio.com/2010-04-01/Accounts/REDACTED/Messages.json' \
--header 'Authorization: Basic REDACTED' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'Body=test' \
--data-urlencode 'MessagingServiceSid=REDACTED' \
--data-urlencode 'To=REDACTED'
For testing purposes, I want to route all incoming messages sent to the messaging service to a flow built in Twilio studio, so that I can route/forward the messages somewhere else. For the sake of simplicity, let's just say I want to forward all messages to my own mobile phone number.
I've created a studio flow and copied the web hook URL from the trigger
The web hook URL is of the form; https://webhooks.twilio.com/v1/Accounts/{account-id}/Flows/{flow-id}
I've configured the messaging services to use the above web hook URL as shown below
... but it's not getting through to my studio flow (or at least I don't think it is - I'm not seeing any logs in the studio):
FYI. my messaging service has a single sender (which is a US phone number) and the To
number specified on the request IS receiving the SMS. Ideally the number specified on the request does not receive the SMS, but the flow would be executed to forward the message to my own number...
I believe what I'm attempting to do is possible, so what am I doing wrong?