Skip to main content

Encrypt data

POST /api/v1/Utilities/encrypt

Description

This endpoint is used to encrypt data.

Tags: Utilities
URL: /api/v{version}/Utilities/encrypt ApiKey: No API key required
Content-Type: text/plain, application/json, text/json
Parameters:

  • version: string, required

  • Accept-Language: header, optional, change the default response message language from English(en) to French(fr) or English(en)

Body Parameters:

  • Data: string, required, the data to encrypt

Response:

  • Success, returns an encrypted string.

Error Codes:

  • 400: Bad Request

Example:
JSON

POST /api/v1/Utilities/encrypt
{
"Data": "sensitiveData"
}

Plain Text

HTTP/1.1 200 OK
{
"EncryptedData": "abc123"
}

/api/v1/Utilities/encrypt

Headers

Content-TypeValue
Accept-Language

Headers

Content-TypeValue
Content-Typeapplication/json

Body (raw)

{
"plainText": `<string>`
}

Response: 200

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /api/v1/Utilities/encrypt \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!