The API uses credentials consisting of an Account SID and an Auth Token to authenticate requests. You can view and manage your API keys in the platform.

Your credentials carry many privileges, so be sure to keep them secure! Do not share your credentials in publicly accessible areas such as GitHub, client-side code, etc.

Authentication to the API is performed via HTTP Basic Auth. Provide your Account SID as the basic auth username and your Auth Token as the basic auth password.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests with an incorrect authentication will also fail and will return a Status Code of 401.

Basic Auth

curl '<AccountSID>/<Object>' \
	-u '<AccountSID>:<AuthToken>'