Menu

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

REST API: Public Keys Resource

Resource URI

/Credentials/PublicKeys/

Properties

Each PublicKey has the following properties:

account_sid
sid<AC> Not PII

AccountSid the Credential resource belongs to.

date_created
date_time<iso8601> Not PII

The date that this resource was created, given as GMT in ISO 8601 format.

date_updated
date_time<iso8601> Not PII

The date that this resource was updated, given as GMT in ISO 8601 format.

friendly_name

A human readable description of this resource, up to 64 characters.

sid
sid<CR> Not PII

A 34 character string that uniquely identifies this resource.

url
url Not PII

The URI for this resource, relative to https://accounts.twilio.com

List all Public Key Credentials

GET /Credentials/PublicKeys

Returns:

List of all Public Keys.

Retrieve Credentials

GET /Credentials/PublicKeys/{Sid}

Parameters

Sid
Required
get sid<CR> Not PII

The Credential Sid that uniquely identifies the Credential to fetch

Returns:

One specific credential.

Create Credentials

POST  /Credentials/PublicKeys

Parameters

PublicKey
Required
post pem_public_key Not PII

URL encoded representation of the public key, e.g. -----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----

AccountSid
Optional
post sid<AC> Not PII

The Subaccount this Credential should be associated with. Needs to be a valid Subaccount of the account issuing the request

FriendlyName
Optional
post string Not PII

A human readable description of this resource, up to 64 characters.

Returns:

Created credential instance.

Update Credentials

POST  /Credentials/PublicKeys/{Sid}

Parameters

Sid
Required
post sid<CR> Not PII

The Credential Sid that uniquely identifies the Credential to fetch

FriendlyName
Optional
post string Not PII

A human readable description of this resource, up to 64 characters.

Returns:

Updated credential instance.

Delete Credentials

DELETE  /Credentials/PublicKeys/{Sid}

Parameters

Sid
Required
delete sid<CR> Not PII

A 34 character string that uniquely identifies this resource.

Returns:

Empty response.

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.

Loading Code Sample...