# POST /Indoor/api/getEncryptDataBlock

**Resource:** [PIN and card security](../resources/PIN-and-card-security.md)
**Service that retrieves the encrypted data block**
**Operation ID:** `getEncryptDataBlock`

Encrypts a given data block using KMT service. Validates input DataBlock, retrieves encryption parameters from cache, calls _kmtServiceProxy.EncryptDataBlock() with KeyId, IV, and CBC mode, and returns GetEncryptDataBlockResponse containing EncryptedDataBlock.

## Request Body

Get Encrypt Data Block Request

**Required:** Yes

**Content Types:** `application/json`

**Schema:** [GetEncryptDataBlockRequest](../schemas/Get/GetEncryptDataBlockRequest.md)

## Responses

| Status | Description |
|--------|-------------|
| 200 | Success |
| 400 | (reference) |
| 404 | (reference) |
| 500 | (reference) |

**Success Response Schema:**

[GetEncryptDataBlockResponse](../schemas/Get/GetEncryptDataBlockResponse.md)

