published on in post

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.

  • SID and TOKEN are correct and verified 5 times
  • Auth method is correct and the error persists also via test on Postman
  • 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": "https://www.twilio.com/docs/errors/20003", "status": 401 } 

    enter image description here

    enter image description here

    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.

    ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobnBuY2mBeXyOra6ipJmkerS50macq6qfp3q0wMCtrKxlZGV%2Bbq%2FOnZxmamBlfXR5z6iqraWRow%3D%3D