Menu

Expand
Rate this page:

CredentialPublicKey Resource

Resource URI

/Credentials/PublicKeys/

CredentialPublicKey properties

Resource Properties 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
Parameters 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
Loading Code Sample...
        
        

        Create a Public Key

        Fetch a CredentialPublicKey resource

        get
        https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
        Parameters
        Parameters 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
        Loading Code Sample...
              
              

              Fetch a Public Key

              Read multiple CredentialPublicKey resources

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

                    Read Public Keys

                    Update a CredentialPublicKey resource

                    post
                    https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
                    Parameters
                    Parameters 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
                    Loading Code Sample...
                          
                          

                          Update a Public Key

                          Delete a CredentialPublicKey resource

                          delete
                          https://accounts.twilio.com/v1/Credentials/PublicKeys/{Sid}
                          Parameters
                          Parameters 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
                          Loading Code Sample...
                                
                                

                                Delete a Public Key

                                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 by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

                                Loading Code Sample...
                                      
                                      
                                      

                                      Thank you for your feedback!

                                      Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

                                      Sending your feedback...
                                      🎉 Thank you for your feedback!
                                      Something went wrong. Please try again.

                                      Thanks for your feedback!

                                      thanks-feedback-gif