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:

Names in PHP format
sid
sid<CR> Not PII

A 34 character string that uniquely identifies this resource.

accountSid
sid<AC> Not PII

AccountSid the Credential resource belongs to.

friendlyName

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

dateCreated
date_time<iso8601> Not PII

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

dateUpdated
date_time<iso8601> Not PII

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

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

Names in PHP format
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

Names in PHP format
publicKey
Required
post pem_public_key PII MTL: 0 DAYS

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

friendlyName
Optional
post string PII MTL: 0 DAYS

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

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

Returns:

Created credential instance.

Update Credentials

POST  /Credentials/PublicKeys/{Sid}

Parameters

Names in PHP format
sid
Required
post sid<CR> Not PII

The Credential Sid that uniquely identifies the Credential to fetch

friendlyName
Optional
post string PII MTL: 0 DAYS

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

Returns:

Updated credential instance.

Delete Credentials

DELETE  /Credentials/PublicKeys/{Sid}

Parameters

Names in PHP format
sid
Required
delete sid<CR> Not PII

A 34 character string that uniquely identifies this resource.

Returns:

Empty response.

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 browsing the Twilio tag on Stack Overflow.