Skip to main content
POST
/
Agent
/
Crypto
/
CreateKey
Create Key
curl --request POST \
  --url https://{host}/Agent/Crypto/CreateKey \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "localName": "<string>",
  "namespace": "<string>",
  "id": "<string>",
  "nonce": "<string>",
  "keySignature": "<string>",
  "requestSignature": "<string>"
}
'
{
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Overview

Allows the client to create a cryptographic key on the server, and protect it with a password. The key will be stored encrypted on the server, protected with the key password. The creation of a key will require the user to provide the account password again.

Authentication

Requires a valid JWT bearer token.

Notes

This endpoint uses the request schema notation described in Pattern matching.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
localName
string
required
namespace
string
required
id
string
required
nonce
string
required
keySignature
string
required
requestSignature
string
required

Response

200 - application/json

Success

created
string<date-time>
required
updated
string<date-time>
required