Create a key collection version

Creates a version of the key collection. Use it to provide primary and secondary public keys to verify JWTs passed in client requests. If you don't already have the collectionId, run the List key collections operation and use the appropriate id value from the returned array. Also, to start using the public keys on staging or production, run the Activate this key collection version operation.

Path Params
integer
required

The identifier of the key collection.

Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params

Contains information that you need to provide when creating a key collection version.

string
length ≥ 1

A descriptive label for the key collection version.

string
required
length ≥ 1

The primary public key that you want to use to validate JWT signatures. You can use an RSA key that's between 1024 and 4096 bits long, an ECDSA key that uses the P-256 (secp256k1) curve. Use a key in PEM format, which presents base64-encoded data between the begin header and the end footer. Make sure to use the same encryption algorithm for the public keys in the primaryKey and secondaryKey members, either RSA or ECDSA_P_256. See Keys and JWT signing algorithms.

string
length ≥ 1

The secondary public key that you want to use to validate JWT signatures in case primaryKey fails. You can use an RSA key that's between 1024 and 4096 bits long, an ECDSA key that uses the P-256 (secp256k1) curve. Use a key in PEM format, which presents base64-encoded data between the begin header and the end footer. Make sure to use the same encryption algorithm for the public keys in the primaryKey and secondaryKey members, either RSA or ECDSA_P_256. See Key rotation and Keys and JWT signing algorithms.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json