cURL
curl --request POST \ --url https://api.digitalreceiptprotocol.org/api/v1/keys/lookup \ --header 'Content-Type: application/json' \ --data ' { "type": "email", "value": "[email protected]" } '
{ "success": true, "data": { "publicKey": { "keyId": "550e8400-e29b-41d4-a716-446655440000", "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A...", "userId": "550e8400-e29b-41d4-a716-446655440001", "algorithm": "RSA-OAEP-256", "status": "active", "createdAt": "2025-12-15T12:00:00Z", "rotatedAt": null } } }
Retrieve a user’s public key by their identifier. This is used by merchants to encrypt receipts for a specific customer.
email
phone
national_id
bank_account
"email"
"[email protected]"
Public key found
true
Show child attributes
"550e8400-e29b-41d4-a716-446655440000"
Base64-encoded public key
"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."
"550e8400-e29b-41d4-a716-446655440001"
RSA-OAEP-256
ECDH-P256
"RSA-OAEP-256"
active
rotated
revoked
"active"
"2025-12-15T12:00:00Z"
null