Skip to content

NWC Provider API

API endpoints for the NWC Provider extension.

Live API Explorer

If you have a running LNbits instance, the interactive API docs are the fastest way to explore and test:

  • Swagger UI: https://your-lnbits.com/docs
  • ReDoc: https://your-lnbits.com/redoc

These are auto-generated from your running version and always up to date.

Base URL

https://your-lnbits.com/nwcprovider/api/v1/

Authentication

Key TypeHeaderAccess
Admin keyX-Api-KeyFull access (create, update, delete)
Invoice keyX-Api-KeyRead-only access (list, get)

Endpoints

MethodPathAuthDescription
GET/nwcprovider/api/v1/InvoiceList all items
GET/nwcprovider/api/v1/{id}InvoiceGet a specific item
POST/nwcprovider/api/v1/AdminCreate a new item
PUT/nwcprovider/api/v1/{id}AdminUpdate an item
DELETE/nwcprovider/api/v1/{id}AdminDelete an item

Note

This is the standard CRUD pattern. The actual resource names and additional endpoints may vary. Check the Swagger UI on your instance for the exact paths and request/response schemas.

Example

bash
# List items
curl https://your-lnbits.com/nwcprovider/api/v1/ \
  -H "X-Api-Key: YOUR_INVOICE_KEY"

# Create item
curl -X POST https://your-lnbits.com/nwcprovider/api/v1/ \
  -H "X-Api-Key: YOUR_ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "example"}'

For AI Agents

Fetch the full OpenAPI spec from any running instance:

GET https://your-lnbits.com/openapi.json

Filter for paths starting with /nwcprovider/ to isolate this extension's endpoints.

News · Shop · SaaS · Telegram · Released under the MIT License.