Twilio Sms Error - Status 401, Code 20003 - Postman

Twilio Sms Error - Status 401, Code 20003 - Postman

I'm trying to send SMS using Twilio from my PHP code and Postman but it always returns the error below. I confirm everything is correctly set and everything was working months ago.

  1. SID and TOKEN are correct and verified 5 times
  2. Auth method is correct and the error persists also via test on Postman
  3. The query is correct and it is the same as the test SMS sent from the Twilio console

Error:

{
"code": 20003,
"message": "Authenticate",
"more_info": "",
"status": 401
}
3

1 Answer

It seems the account sid used for Basic Auth is different from the one shown in the URL. Try to align the two of them and it should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.