Company

Create encryption key

Create a new encryption key for a company.

post/v2/company/encryption-keys

Request

  • Base URL
    https://api.sandbox.eu.bandyer.com
  • URL
    https://api.sandbox.eu.bandyer.com/v2/company/encryption-keys
  • Auth
    API key in header apikey

Request body

public_keystring required

The public key must be a valid RSA(any size) in PEM format, use \n to separate each line and concatenate it in one row.

Example request

{
  "public_key": "-----BEGIN PUBLIC KEY-----\nline1\nline2\n-----END PUBLIC KEY-----"
}

Response

key_idstring

Key id.

creation_datestring date-time

Creation date of the key.

Example response

{
  "creation_date": "2023-01-01T00:00:00Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.