Skip to contentSkip to navigationSkip to topbar
On this page

REST API: Credentials


The Credentials API helps you manage Public Keys or Amazon Web Services (AWS) credentials in your Twilio account.


API Base URL

api-base-url page anchor

All URLs in the Credentials API reference documentation use the following base URL:

1
https://accounts.twilio.com/v1/Credentials
2

The API is served over HTTPS. To ensure data privacy, unencrypted HTTP isn't supported.


To authenticate requests to the Twilio APIs, Twilio supports HTTP Basic authentication(link takes you to an external page). Use your API key as the username and your API key secret as the password. You can create an API key either in the Twilio Console or using the API.

Note: Twilio doesn't recommend using your Account SID and Auth Token in production. For local testing, you can use your Account SID as the username and your Auth token as the password. You can find your Account SID and Auth Token in the Twilio Console(link takes you to an external page).

Learn more about Twilio API authentication.

1
curl -G https://accounts.twilio.com/v1/Credentials/PublicKeys \
2
-u $TWILIO_API_KEY:$TWILIO_API_KEY_SECRET

To interact with the Credentials endpoints, consider using the Twilio Helper Libraries.


The Credentials API contains the following resources:

ResourceDescription
PublicKeysManage user-provided public keys.
AWSManage user-provided AWS credentials.