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.
All URLs in the reference documentation use the following base URL:
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.
curl -G https://accounts.twilio.com/v1/Credentials/PublicKey \ -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:
|PublicKey||Manage user provided public keys.|