ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiSwaps

Submarine swap — withdraw sats to a Bitcoin address

POST
/api/v1/swaps/submarine

Creates a Boltz swap and pays its invoice from your wallet. Boltz sends on-chain; track progress via the status endpoint. Set BOLTZ_ENABLED=false to disable platform-wide.

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

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

Response Body

Swap created + invoice paid

Example Request
curl -X POST 'http://localhost:3001/api/v1/swaps/submarine'
Example Response
Empty