ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiScrub

Create or replace the scrub rule

PUT
/api/v1/scrub/rule

Every incoming payment above the reserve forwards automatically to the destination lightning address. Splits run first; scrub sees what settles.

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

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

Response Body

Example Request
curl -X PUT 'http://localhost:3001/api/v1/scrub/rule'
Example Response200
Empty