Menu

Expand
Rate 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

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/PublicKeys \
    -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
PublicKeys Manage user provided public keys.
Rate this page:

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 by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

Loading Code Sample...
        
        
        

        Thank you for your feedback!

        Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        thanks-feedback-gif