register_signing_key
Registers an RSA public key (2048-bit or larger, PEM) used to sign payment-decision requests. Keys are immutable per tenant; rotate by registering a new key_id. Returns key_id and registered=true. Use before decide_supplier_payment and use the same tenant/paying wallet for registration and decision. This is not a supplier check, API-key creation or payment authorization. Keep the RSA private key local; a conflicting existing key_id returns a conflict. Inspect and approve the registration fee before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_id | Yes | Caller-chosen RSA public-key identifier, unique within your tenant. Reuse it in signature.key_id; rotate with a new ID. | |
| public_key_pem | Yes | PEM-encoded RSA public key, at least 2048 bits. Never send a private key, wallet key or certificate. |