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

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

https://accounts.twilio.com/v1

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

Authentication

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.

Twilio Helper Libraries

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

Resources

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

Resource Description
PublicKey Manage user provided public keys.

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.