Twilio REST API Error - Authentication

I get the following error when trying to place calls using the Twilio REST API .

https://www.twilio.com/docs/api/rest

HTTP/1.1 401 Unauthorized 
Server: nginx 
Date: Thu, 10 May 2012 16:50:48 GMT 
Content-Type: application/xml 
Connection: close 
WWW-Authenticate: Basic realm="Twilio API" 
Etag: 
Last-Modified: 
Content-Length: 233 

401 Authenticate 20003 
http://www.twilio.com/docs/errors/20003

I googled but didn't find anything. Has anyone had this problem?

What I put on the API call: -

$url = 'https://api.twilio.com/2010-04-01/Accounts/ACdxxxxxxx/Calls';

From => +1415xxxxxx 
To => +1646xxxxx
Url => http://173.201.xx.xx/Test/Twilio/twilio_test.php
+3
source share
2 answers

(Twilio employee is here.)

Error 401 is usually related to when you should authenticate, but did not have or did not have a place with it.

Can you provide the complete code snippet that you use to place the call? Are you using one of our examples or something else?

+4
source

Your seed and token must be erroneous. Check the configuration file.

+2
source

All Articles