Hi all,
I have a twilio integration, that worked fine for the past few years, and is no longer working.
It authenticates, but the "To": number does not go thru.
Can anyone help? Thx, J
Integration JSON Data:
{
"name": "TankWatchTwilio",
"data": "{"n":"+1234567890", "m":"TANK WATCH - LOW LEVEL ALERT!!! Tank is 44 percent full."}",
"ttl": 60,
"published_at": "2021-07-15T15:00:08.911Z",
"coreid": "mycoreid",
"userid": "myuserid",
"version": 44,
"public": false,
"productID": 5031
}
The Request Sent:
POST /2010-04-01/Accounts/myuserid/Messages?Body=TANK%20WATCH%20-%20LOW%20LEVEL%20ALERT%21%21%21%20HTank%20is%2044%20percent%20full.&To=%2B1234567890&From=%2B1%20234%20567%20890 HTTP/1.1
User-Agent: ParticleBot/1.1 (https://docs.particle.io/webhooks)
host: api.twilio.com
content-type: application/x-www-form-urlencoded
authorization: Basic QUNjYmRmMTU5MDBlODBjZmZkMjhhM2RlYjg1MjhmYTU1YzplNjE0YTM0NDZkZWUxMjk4YmZiYjAyYWIxZTE2M2Q5ZA==
content-length: 317
Connection: keep-alive
The response:
HTTP/1.1 400 Bad Request
<?xml version='1.0' encoding='UTF-8'?>
Date: Thu, 15 Jul 2021 15:01:09 GMT
Content-Type: application/xml
Content-Length: 253
Connection: keep-alive
Twilio-Request-Id: myuserid
Twilio-Request-Duration: 0.037
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since
Access-Control-Allow-Methods: GET, POST, DELETE, OPTIONS
Access-Control-Expose-Headers: ETag
Access-Control-Allow-Credentials: true
X-Powered-By: AT-5000
X-Shenanigans: none
X-Home-Region: us1
X-API-Domain: api.twilio.com
Strict-Transport-Security: max-age=31536000
21604
A 'To' phone number is required.Error 21604 | Twilio400