---
title: "Get Encrypted Data"
method: POST
path: "/api/v1/cards/{publicToken}/encrypted"
tags: ["Cards"]
---

# Get Encrypted Data

`POST /api/v1/cards/{publicToken}/encrypted`

## Path parameters

- `publicToken` string, required

## Request body

- GetEncryptedCardRequest — Request class for Retrieve Encrypted Card
  - `key` string, required — Base 64 encoded, encrypted key
  - `paddingMode` 'PKCS1_5' | 'PKCS2_2', nullable — Padding mode
  - `encryptionKeyLength` 'Rsa2048' | 'Rsa4096', nullable — Key length
  - `hashingAlgorithm` 'Sha256' | 'Sha512', nullable — Hashing Algorithm

## Response `200`

Success

- EncryptedCardResponse — Response from secure api encryped endpoint
  - `iv` string, nullable — The encryption IV, stored in Base64.
  - `encryptedPayload` string, nullable — Encrypted data, stored in Base64
  - `signatureOfPayloadAndIv` string, nullable — The signature of the encrypted payload and IV

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Server Error

---

[API](https://skmtc.dev/thredd/apis/core-cards.md) · [All operations](https://skmtc.dev/thredd/apis/core-cards/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thredd/core-cards/revisions/841f62def5bf/schema)
