cURL
curl --request POST \ --url https://api.digitalreceiptprotocol.org/api/v1/onboarding/generate-keys \ --header 'Content-Type: application/json' \ --data '{}'
{ "success": true, "data": { "keyId": "550e8400-e29b-41d4-a716-446655440000", "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A...", "privateKey": "MIIEvQIBADANBgkqhkiG9w0BAQEFAASC...", "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.
No request body required
The body is of type object.
object
Key pair generated successfully
true
Show child attributes
Unique identifier for the key pair
"550e8400-e29b-41d4-a716-446655440000"
Base64-encoded RSA public key
"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."
Base64-encoded RSA private key (store securely!)
"MIIEvQIBADANBgkqhkiG9w0BAQEFAASC..."
RSA-OAEP-256
"RSA-OAEP-256"