Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Cards Get card sensitive details

Get card sensitive details

Returns the full card number and CVV, encrypted to your RSA public key. The decrypted text is `{"pan": "...", "cvv": "..."}`; it has no expiry. Decrypt it only in a secure client, and never log it.

GEThttps://api.gravv.xyz/v1/cards/{card_id}/sensitive-detailsTry it
Api-Key

Path parameters

NameDescription
card_id:stringRequired
ID of the card

Headers

NameDescription
X-Client-Public-Key:stringRequired
Your RSA public key in PEM form (PUBLIC KEY or RSA PUBLIC KEY), then base64-encoded with the standard alphabet. Use a key of 2048 bits or more.

Response

Returns 200 OK. The encrypted details

NameDescription
data:object
Decrypt encrypted_key with your RSA private key (RSA-OAEP, SHA-256) to get an AES-256 key. Then decrypt ciphertext with AES-256-GCM using nonce (12 bytes); the last 16 bytes of ciphertext are the tag. All three values are standard base64.
Show 3 child attributesobject
error:null

Errors

StatusMeaning
200The encrypted details
400Missing or invalid key header, or an unknown card
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/cards/dce0192a-9b3d-440b-9500-33dc9ac8dc20/sensitive-details' \
--header 'Api-Key: <api-key>' \
--header 'X-Client-Public-Key: LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0K...'
Responseapplication/json
200400OK
{
"data": {
"encrypted_key": "string",
"nonce": "string",
"ciphertext": "string"
},
"error": {}
}