ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiProviders

Create a new provider connection

POST
/api/v1/providers

type=lnbits (BYO external wallet via URL + keys) has been removed — external wallets connect exclusively via NWC (POST /nwc-connections).

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
name*string

Provider name

Length3 <= length <= 100
type*string

Provider type

Value in"lnbits""nwc""lnd"
url*string

Provider URL

adminKey?string

Admin API key (for LNbits)

invoiceKey?string

Invoice API key (for LNbits)

apiKey?string

API key or connection string (for other providers)

projectId?string

Associated project ID

Response Body

Provider created successfully

Example Request
curl -X POST 'http://localhost:3001/api/v1/providers' \  -H 'Content-Type: application/json' \  -d '{  "name": "LNbits Production",  "type": "lnbits",  "url": "https://lnbits.example.com"}'
Example Response
Empty