ApiAi account
Enable NWC auto-topup with threshold, amount and daily cap
POST
bearerX-API-Version?stringAPI version for header-based versioning
Default
"1"Value in
"1""2"application/json- body
nwcConnectionId*stringNWC connection id to pay auto-topups from
thresholdSats*numberTrigger auto-topup when balance falls below (sats)
topupSats*numberAmount to top up per trigger (sats)
dailyCapSats*numberMax auto-topup spend per UTC day (sats)
curl -X POST 'http://localhost:3001/api/v1/ai/auto-topup' \ -H 'Content-Type: application/json' \ -d '{ "nwcConnectionId": "string", "thresholdSats": 500, "topupSats": 5000, "dailyCapSats": 20000}'Example Response201
Empty