The Twilio REST API uses Basic Auth to authenticate your request.
You are required to set your AccountSid
as username and Auth Token
as password in the Authorization header for each request.
How to get your AccountSid and Auth token
Step 1: Sign in or sign up to create your Twilio account.
Step 2: Navigate to your dashboard and scroll to the 'Account Info' section.

Step 3: Get your AccountSid
and Auth Token
and keep them in a secured place.

Warning
Your
Auth token
contains sensitive information. Therefore, you must keep it secured.