AccountsPublic Key

Create Credential Public Key

POST
/v1/Credentials/PublicKeys

Create a new Public Key Credential

Authorization

accountSid_authToken
AuthorizationBasic <token>

In: header

Request Body

application/x-www-form-urlencoded

PublicKey*string

A URL encoded representation of the public key. For example, -----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----

FriendlyName?string

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

AccountSid?string

The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request

Match^AC[0-9a-fA-F]{32}$
Length34 <= length <= 34

Response Body

application/json

curl -X POST "https://example.com/v1/Credentials/PublicKeys" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'AccountSid=ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&FriendlyName=friendly_name&PublicKey=public_key'
{  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "date_created": "2015-07-31T04:00:00Z",  "date_updated": "2015-07-31T04:00:00Z",  "friendly_name": "friendly_name",  "sid": "CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "url": "https://accounts.twilio.com/v1/Credentials/PublicKeys/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}