# Create a new Public Key Credential **POST /v1/Credentials/PublicKeys** Create a new Public Key Credential User provided public keys ## Servers - https://accounts.twilio.com: https://accounts.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Body: application/x-www-form-urlencoded (object) - **PublicKey** (string) A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----` - **FriendlyName** (string) A descriptive string that you create to describe the resource. It can be up to 64 characters long. - **AccountSid** (string) The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request ## Responses ### 201 Created #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **sid** (string | null) The unique string that that we created to identify the PublicKey resource. - **account_sid** (string | null) The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Credential that the PublicKey resource belongs to. - **friendly_name** (string | null) The string that you assigned to describe the resource. - **date_created** (string(date-time) | null) The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. - **date_updated** (string(date-time) | null) The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. - **url** (string(uri) | null) The URI for this resource, relative to `https://accounts.twilio.com` [Powered by Bump.sh](https://bump.sh)