ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiAi account

Enable NWC auto-topup with threshold, amount and daily cap

POST
/api/v1/ai/auto-topup

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Request Body

application/json
  1. body
nwcConnectionId*string

NWC connection id to pay auto-topups from

thresholdSats*number

Trigger auto-topup when balance falls below (sats)

topupSats*number

Amount to top up per trigger (sats)

dailyCapSats*number

Max auto-topup spend per UTC day (sats)

Response Body

Example Request
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