Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

REST API: Credentials


The Credentials REST API allows you to upload Public Keys to Twilio and manage them. The first product that takes advantage of Public Keys is Public Key Client Validation.


API Base URL

api-base-url page anchor

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


_10
https://accounts.twilio.com/v1

All requests to the Credentials REST API are served over HTTPS. Unencrypted HTTP is not supported.


HTTP requests to the REST API are protected with HTTP Basic authentication like other REST APIs provided by Twilio. To learn more about how Twilio handles authentication, please refer to our security documentation. In short, you will use your Twilio account SID as the username and your auth token as the password for HTTP Basic authentication.


_10
curl -G https://accounts.twilio.com/v1/Credentials/PublicKeys \
_10
-u '[YOUR ACCOUNT SID]:[YOUR AUTH TOKEN]'

You can find your account SID and auth token in the admin console. Alternately, you can also use API keys and secrets to authenticate REST API requests - you can manage API key pairs in the console also.


You can use the Twilio Helper Libraries to interact with the Credentials REST endpoints.


Here are the resources you will be interacting with via the REST API:

ResourceDescription
PublicKeysManage user provided public keys.

Rate this page: