Docs

Virtual cards

Reveal card details

POST/api/cards/{id}/reveal

Read the number and security code of an active card, encrypted to a public key you send.

Request

JSON
{ "publicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A…\n-----END PUBLIC KEY-----\n" }

publicKey is an RSA public key of at least 2048 bits, as PEM text or as the Base64 of that PEM. A private key is refused, and the key you sent should be treated as exposed.

Response 200

JSON
{
  "ok": true,
  "data": {
    "cardId": "b2c11d1d-50ef-4efb-b6c9-ed668e19055c",
    "algorithm": "RSA-OAEP-SHA256",
    "pan": "CHR9GwH/6v3brTgkHmcnqOtI3Cp7UickHJk+OKpsEbC1inNNYuSwcUmx…",
    "cvv2": "C61DKViaAWL5xXatYqX+lxXc6p0IJKLwd8H7u/sVauoGKIs5JO0vlqVz…",
    "expiryMonth": 10,
    "expiryYear": 2029,
    "cardholderName": "EVA JANSEN"
  }
}

pan and cvv2 are Base64 ciphertext: decrypt each with your private key using RSA-OAEP with SHA-256 for both the hash and the mask function. The expiry and the name on the card are not secret on their own and arrive as they are.

The answer is never stored, never replayed for an Idempotency-Key and never cached, and it is useless without your private key. A new call gives a new ciphertext of the same number.

The quickstart decrypts it in Python, Node.js and OpenSSL.