Menu

Expand
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?

CredentialPublicKey Resource

Resource URI

/Credentials/PublicKeys/

CredentialPublicKey properties

Names in REST API format
sid
sid<CR> Not PII

The unique string that that we created to identify the PublicKey resource.

account_sid
sid<AC> Not PII

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
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in RFC 2822 format.

date_updated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

url
url Not PII

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

Create a CredentialPublicKey resource

post
https://accounts.twilio.com/v1/Credentials/PublicKeys
Parameters
Names in REST API format
public_key
Required
post pem_public_key PII MTL: 0 DAYS

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

friendly_name
Optional
post string PII MTL: 0 DAYS

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

account_sid
Optional
post sid<AC> Not PII

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

        get
        https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
        Parameters
        Names in REST API format
        sid
        Path
        get sid<CR> Not PII

        The Twilio-provided string that uniquely identifies the PublicKey resource to fetch.

        Example 1
              
              
              
              

              Read multiple CredentialPublicKey resources

              get
              https://accounts.twilio.com/v1/Credentials/PublicKeys
              Example 1
                    
                    
                    
                    

                    Update a CredentialPublicKey resource

                    post
                    https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
                    Parameters
                    Names in REST API format
                    sid
                    Path
                    post sid<CR> Not PII

                    The Twilio-provided string that uniquely identifies the PublicKey resource to update.

                    friendly_name
                    Optional
                    post string PII MTL: 0 DAYS

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

                    Example 1
                          
                          
                          
                          

                          Delete a CredentialPublicKey resource

                          delete
                          https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
                          Parameters
                          Names in REST API format
                          sid
                          Path
                          delete sid<CR> Not PII

                          The Twilio-provided string that uniquely identifies the PublicKey resource to delete.

                          Example 1
                                
                                
                                
                                
                                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.