Does the Twilio SMS API take a request in JSON format? The example in the Twilio API docs uses URL encoded POST format, as does this community post which uses web form encoding (application/x-www-form-urlencoded).
Using curl with the -d option also defaults to application/x-www-form-urlencoded.