How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

BTCPay Server Lightning (Store) API

Lightning (Store) operations

BTCPay Server Lightning (Store) API is one of 31 APIs that BTCPay Server publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Lightning (Store). The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, a GitHub repository, authentication docs, and rate-limit docs.

This API exposes 13 operations across 11 paths, and defines 20 schemas. It is described by OpenAPI 3.0.0, at version v1.

Requests are made against a single base URL, https://{btcpay-host}.

13 operations 11 paths 20 schemas 8 GET5 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
v1
Base URL
https://{btcpay-host}/api/v1
Authentication
API Key, HTTP Basic
License
Resource Areas
1

Authentication & Security 2

BTCPay Server Lightning (Store) API declares 2 security schemes for authenticating requests. An API key is passed in the header as Authorization (API_Key). It accepts HTTP basic authentication (Basic). By default, every request must be authenticated.

  • API_Key — BTCPay Server API key. Format: 'token {apiKey}'
  • Basic — HTTP Basic Authentication with email and password

Paths & Operations 13

Across 11 paths, the API surfaces 13 operations — 8 GET, 5 POST. Each is listed below with its method, path, parameters, and response codes.

Lightning (Store) 13

Lightning (Store) operations

GET
/api/v1/stores/{storeId}/lightning/{cryptoCode}/info
Get node information
StoreLightningNodeApi_GetInfo 2 params → 200503404
GET
/api/v1/stores/{storeId}/lightning/{cryptoCode}/balance
Get node balance
StoreLightningNodeApi_GetBalance 2 params → 200503404
GET
/api/v1/stores/{storeId}/lightning/{cryptoCode}/histogram
Get node balance histogram
StoreLightningNodeApi_GetHistogram 2 params → 200503404
POST
/api/v1/stores/{storeId}/lightning/{cryptoCode}/connect
Connect to lightning node
StoreLightningNodeApi_ConnectToNode 2 params body → 200422400503404
GET
/api/v1/stores/{storeId}/lightning/{cryptoCode}/channels
Get channels
StoreLightningNodeApi_GetChannels 2 params → 200404
POST
/api/v1/stores/{storeId}/lightning/{cryptoCode}/channels
Open channel
StoreLightningNodeApi_OpenChannel 2 params body → 200422400503404
POST
/api/v1/stores/{storeId}/lightning/{cryptoCode}/address
Get deposit address
StoreLightningNodeApi_GetDepositAddress 2 params → 200503404
GET
/api/v1/stores/{storeId}/lightning/{cryptoCode}/payments/{paymentHash}
Get payment
StoreLightningNodeApi_GetPayment 3 params → 200503404
GET
/api/v1/stores/{storeId}/lightning/{cryptoCode}/invoices/{id}
Get invoice
StoreLightningNodeApi_GetInvoice 3 params → 200503404
POST
/api/v1/stores/{storeId}/lightning/{cryptoCode}/invoices/pay
Pay Lightning Invoice
StoreLightningNodeApi_PayInvoice 2 params body → 200202422400503404
GET
/api/v1/stores/{storeId}/lightning/{cryptoCode}/invoices
Get invoices
StoreLightningNodeApi_GetInvoices 4 params → 200401503default
POST
/api/v1/stores/{storeId}/lightning/{cryptoCode}/invoices
Create lightning invoice
StoreLightningNodeApi_CreateInvoice 2 params body → 200400503404
GET
/api/v1/stores/{storeId}/lightning/{cryptoCode}/payments
Get payments
StoreLightningNodeApi_GetPayments 4 params → 200401503default

Schemas 20

The contract defines 20 schemas that model the data the API accepts and returns. The most detailed are LightningInvoiceData (10 properties), LightningNodeInformationData (9 properties), LightningPaymentData (8 properties), LightningChannelData (6 properties). Each schema is shown below with its type and property counts.

LightningInvoiceStatus
string
LightningPaymentStatus
string
LightningPaymentData
object
8 properties
LightningInvoiceData
object
10 properties
ConnectToNodeRequest
object
1 property
TimeSpanSeconds
A span of times in seconds
LightningNodeInformationData
object
9 properties
LightningChannelData
object
6 properties
CreateLightningInvoiceRequest
object
5 properties
OffchainBalanceData
object
4 properties
LightningNodeBalanceData
object
2 properties
UnixTimestamp
number
A unix timestamp in seconds
PayLightningInvoiceRequest
object
5 properties
ProblemDetails
object
Description of an error happening during processing of the request
2 properties
TimeSpan
number
OpenLightningChannelRequest
object
3 properties
OnchainBalanceData
object
3 properties
HistogramData
object
Histogram data for wallet balances over time
4 properties
StoreId
string
Store ID of the item
ValidationProblemDetails
array
An array of validation errors of the request

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

btcpay-lightning-store-api-openapi.yml Raw ↑

Other APIs BTCPay Server publishes across the network.

BTCPay Server API Keys API
BTCPay Server Apps API
BTCPay Server Authorization API
BTCPay Server Crowdfund API
BTCPay Server Files API
BTCPay Server Health API
BTCPay Server Invoices API
BTCPay Server Lightning address API
BTCPay Server Lightning (Internal Node) API
BTCPay Server Miscelleneous API
BTCPay Server Notifications (Current User) API
BTCPay Server Payment Requests API
Where this information came from

This is an independent, third-party profile of BTCPay Server Lightning (Store) API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.