cURL
curl --request POST \ --url https://api.digitalreceiptprotocol.org/api/v1/onboarding/generate-keys
{ "success": true, "data": { "keyId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz3...", "privateKey": "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDP...", "algorithm": "RSA-OAEP-256" } }
Generate an RSA-2048 key pair for a new user. The private key should be securely stored by the client and never transmitted again after this response.
Key pair generated successfully
true
Show child attributes