Keys

Create an identity key pair.

post
/key/create

This endpoint creates an identity key pair associated with the user's account for custodian-mode clients.

Authorizations
x-api-keystringRequired
Query parameters
typestring · enumOptional

Key type of the identity key pair to create.

Possible values:
Responses
200

The request was successful.

application/json
post
/key/create

Import an identity key pair.

post
/key/import

This endpoint imports an identity key pair associated with the user's account for custodian-mode clients.

Authorizations
x-api-keystringRequired
Body
aliasstringOptional
typestring · enumOptionalPossible values:
privateKeyHexstringOptional
Responses
200

The request was successful.

application/json
post
/key/import

Fetch an identity key pair.

get
/key/read/{kid}

This endpoint fetches an identity key pair's details for a given key ID. Only the user account associated with the custodian-mode client can fetch the key pair.

Authorizations
x-api-keystringRequired
Path parameters
kidstringRequired

Key ID of the identity key pair to fetch.

Responses
200

The request was successful.

application/json
get
/key/read/{kid}

Convert a key to a W3C Verification Method.

get
/key/{kid}/verification-method

This endpoint converts a stored key (by key ID) into a W3C Verification Method format.

Authorizations
x-api-keystringRequired
Path parameters
kidstringRequired

Key ID of the identity key pair to convert.

Query parameters
verificationMethodTypestring · enumRequired

Type of verification method to use for the DID. See DID Core specification for more details. Only the types listed below are supported.

Possible values:
controllerstringOptional

Controller DID of the verification method

idstringOptional

Verification Method Id Fragment

Responses
200

The request was successful.

application/json
get
/key/{kid}/verification-method

Last updated

Was this helpful?