POST | Encrypt
  • 1 minute to read
  • Dark
    Light
  • PDF

POST | Encrypt

  • Dark
    Light
  • PDF

Article summary

Encryption Key Creation

Creates a new encryption key based on the parameters provided in the request body.

Endpoint

POST /iso/sctm/encryption/key

Request body

{
  "name": "Chave-API-Example",
  "description": "Example description for the encryption key created via API.",
  "algorithm": "aes128-gcm96",
  "expiration_date": "2024-08-18T11:15:00Z"
}

Fields

FieldTypeDescription
nameStringName of the encryption key.
descriptionStringDetailed description of the key.
algorithmStringThe encryption algorithm to be used (for example, aes128-gcm96).
expiration_dateStringDate and time of expiration of the key (ISO 8601 format).

Expected Response

{
  "code": 200,
  "response": {
    "status": 200,
    "message": "Encryption key created successfully",
    "error": false,
    "error_code": 0
  },
  "id": "xxxx"
}

Fields

FieldTypeDescription
codeIntegerHTTP status code.
responseObjectResponse to the creation of the cryptographic key. Contains the key creation data.
statusIntegerOperation status code.
messageStringConfirmation message.
errorBooleanError indicator.
error_codeIntegerSpecific error code.
idStringUnique identifier of the created key.

Was this article helpful?

What's Next