I'm getting a "400 - Bad Request" error with Twilio API, but couldn't find the reason.
Here's my request:
curl --location --request POST 'https://verify.twilio.com/v2/Services/xxxxxxxxxxxxxx/Verifications' \
--header 'Authorization: Basic xxxxxxxxx' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'Channel=sms' \
--data-urlencode 'To=+44xxxxxxxxxx'
I'm getting the response:
{
"code": 60200,
"message": "Invalid parameter",
"more_info": "https://www.twilio.com/docs/errors/60200",
"status": 400
}
The response includes a RequestID
header, but in the Twilio portal there is no way to lookup errors by RequestID
.