REST API: Public Keys Resource

Resource URI

/Credentials/PublicKeys/

Properties

Each PublicKey has the following properties:

Name Description
account_sid

AccountSid the Credential resource belongs to. (not PII)

date_created

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

date_updated

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

friendly_name

A human readable description of this resource, up to 64 characters. (🔐 PII MTL: 0 days)

sid

A 34 character string that uniquely identifies this resource. (not PII)

url

The URI for this resource, relative to https://accounts.twilio.com (not PII)

List all Public Key Credentials

GET /Credentials/PublicKeys

Returns:

List of all Public Keys.

Retrieve Credentials

GET /Credentials/PublicKeys/{Sid}

Parameters

Name Description
Sid

Required. The Credential Sid that uniquely identifies the Credential to fetch (not PII)

Returns:

One specific credential.

Create Credentials

POST  /Credentials/PublicKeys

Parameters

Name Description
PublicKey

Required. URL encoded representation of the public key, e.g. -----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY----- (🔐 PII MTL: 0 days)

AccountSid

Optional. The Subaccount this Credential should be associated with. Needs to be a valid Subaccount of the account issuing the request (not PII)

FriendlyName

Optional. A human readable description of this resource, up to 64 characters. (🔐 PII MTL: 0 days)

Returns:

Created credential instance.

Update Credentials

POST  /Credentials/PublicKeys/{Sid}

Parameters

Name Description
Sid

Required. The Credential Sid that uniquely identifies the Credential to fetch (not PII)

FriendlyName

Optional. A human readable description of this resource, up to 64 characters. (🔐 PII MTL: 0 days)

Returns:

Updated credential instance.

Delete Credentials

DELETE  /Credentials/PublicKeys/{Sid}

Parameters

Name Description
Sid

Required. A 34 character string that uniquely identifies this resource. (not PII)

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.