Discussions
SMS fails
over 1 year ago by Brian Zachary Abel
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer " -d '{"infer_country_code":true,"sender_group_id":"...","sender_group_type":"office","to_numbers":["+1xxxxxxxxxx"],"user_id":"...","text":"Hi, u have an appt tomm, Saturday, April 8; checkin typically 7:30-9, reply Y=confirm or N=cancel"}' 'https://www.dialpad.com/api/v2/sms' -L
{"name":"Not Found","message":"Template not found: api/v2/sms","code":0,"error":"Template not found: api/v2/sms","status":404}
I have been using a script that sends requests of this form for years and suddenly it stopped working
without the -L I get
301 Moved Permanently301 Moved Permanently
nginx