ApiProviders
Create a new provider connection
POST
type=lnbits (BYO external wallet via URL + keys) has been removed — external wallets connect exclusively via NWC (POST /nwc-connections).
bearerX-API-Version?stringAPI version for header-based versioning
Default
"1"Value in
"1""2"application/json- body
name*stringProvider name
Length
3 <= length <= 100type*stringProvider type
Value in
"lnbits""nwc""lnd"url*stringProvider URL
adminKey?stringAdmin API key (for LNbits)
invoiceKey?stringInvoice API key (for LNbits)
apiKey?stringAPI key or connection string (for other providers)
projectId?stringAssociated project ID
Provider created successfully
curl -X POST 'http://localhost:3001/api/v1/providers' \ -H 'Content-Type: application/json' \ -d '{ "name": "LNbits Production", "type": "lnbits", "url": "https://lnbits.example.com"}'Example Response
Empty