ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiWatch only

Import an xpub (watch-only wallet)

POST
/api/v1/watchonly/wallets

Parses + validates the xpub (xpub/ypub/zpub, or tpub/upub/vpub on testnet), stores it encrypted, and derives the first receive addresses. Zero private key material.

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

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

Response Body

Wallet imported

Example Request
curl -X POST 'http://localhost:3001/api/v1/watchonly/wallets'
Example Response201
Empty