CredentialPublicKey Resource
Resource URI
/Credentials/PublicKeys/
CredentialPublicKey properties
Resource Properties in REST API format | |
---|---|
sid
|
The unique string that that we created to identify the PublicKey resource. |
account_sid
|
The SID of the Account that created the Credential that the PublicKey resource belongs to. |
friendly_name
|
The string that you assigned to describe the resource. |
date_created
|
The date and time in GMT when the resource was created specified in RFC 2822 format. |
date_updated
|
The date and time in GMT when the resource was last updated specified in RFC 2822 format. |
url
|
The URI for this resource, relative to |
Create a CredentialPublicKey resource
https://accounts.twilio.com/v1/Credentials/PublicKeys
Parameters
Parameters in REST API format | |
---|---|
public_key
Required
|
A URL encoded representation of the public key. For example, |
friendly_name
Optional
|
A descriptive string that you create to describe the resource. It can be up to 64 characters long. |
account_sid
Optional
|
The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request |
Example 1
Fetch a CredentialPublicKey resource
https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The Twilio-provided string that uniquely identifies the PublicKey resource to fetch. |
Example 1
Read multiple CredentialPublicKey resources
https://accounts.twilio.com/v1/Credentials/PublicKeys
Example 1
Update a CredentialPublicKey resource
https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The Twilio-provided string that uniquely identifies the PublicKey resource to update. |
friendly_name
Optional
|
A descriptive string that you create to describe the resource. It can be up to 64 characters long. |
Example 1
Delete a CredentialPublicKey resource
https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
Parameters
Parameters in REST API format | |
---|---|
sid
Path
|
The Twilio-provided string that uniquely identifies the PublicKey resource to delete. |
Example 1
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.