Skip to main content
POST
/
api
/
v1
/
keys
/
lookup
Lookup public key
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
    }
  }
}

Body

application/json
type
enum<string>
required
Available options:
email,
phone,
national_id,
bank_account
Example:

"email"

value
string
required

Response

Public key found

success
boolean
Example:

true

data
object