ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiNwc connections

Pay a BOLT11 invoice from this wallet

POST
/api/v1/nwc-connections/{id}/pay

Executes pay_invoice over Nostr Wallet Connect. The wallet service must be online. Returns the payment preimage as proof.

Authorization

bearer

Path Parameters

id*string

Header Parameters

X-API-Version?string

API version for header-based versioning

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

Response Body

Payment sent

Example Request
curl -X POST 'http://localhost:3001/api/v1/nwc-connections/string/pay'
Example Response
Empty