Register or replace the org's receive-only Lightning receiver for priced routes
Admin/owner-only, with step-up or fresh SIWX. Takes a Nostr Wallet Connect pairing (nwc_uri) on a node the organization controls. Before storing anything the gateway probes it: get_info must answer with a node public key on mainnet or testnet, make_invoice must be permitted, a pairing that permits pay_invoice (or any other spending method) is refused, and a one-satoshi test invoice must commit to the description hash the gateway supplies and be signed by the reported node. A failed check answers 422 LIGHTNING_RECEIVER_PROBE_FAILED with details.check naming it (get_info, can_spend, make_invoice, description_hash, signer, network). The pairing is stored encrypted, returned by no read, and used only to mint invoices for routes priced on lightning / lightning-testnet; sats settle on the organization's own node and Run402 never holds a spending credential or a preimage. Replacing a receiver rotates receiver_id. Audited; the organization is notified.
Request
- Base URL: https://api.run402.com
- URL: https://api.run402.com/orgs/v1/{org_id}/lightning-receiver
- Auth: one of:
- HTTP bearer
- API key in header SIGN-IN-WITH-X
- API key in header x-admin-key
Path parameters
Request body
Response
Receiver replaced (a new receiver_id).
Changes
No recorded changes to this operation across all 1 revision of this API.