Skip to main content

Create a key-pair

POST /api/key-pairs creates a key-pair resource

Required scope: clients:manage:all

Request Body REQUIRED
key_pair object
id string
public_key string
is_default boolean
Responses
200
Schema OPTIONAL
data object OPTIONAL
id string OPTIONAL
public_key string OPTIONAL
is_default boolean OPTIONAL
201
Schema OPTIONAL
data object OPTIONAL
id string OPTIONAL
public_key string OPTIONAL
is_default boolean OPTIONAL
400

Bad request.

Schema OPTIONAL
errors object OPTIONAL
401

The client is unauthorized to access this resource.

Schema OPTIONAL
code string
message string
403

The client is forbidden to access this resource.

Schema OPTIONAL
code string
message string
422

The request payload is invalid.

Schema OPTIONAL
errors object OPTIONAL