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 (Internal Node) API

Lightning (Internal Node) operations

BTCPay Server Lightning (Internal Node) 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 (Internal Node). 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 19 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 19 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 (Internal Node) 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 (Internal Node) 13

Lightning (Internal Node) operations

GET
/api/v1/server/lightning/{cryptoCode}/info
Get node information
InternalLightningNodeApi_GetInfo 1 param → 200503404
GET
/api/v1/server/lightning/{cryptoCode}/balance
Get node balance
InternalLightningNodeApi_GetBalance 1 param → 200503404
GET
/api/v1/server/lightning/{cryptoCode}/histogram
Get node balance histogram
InternalLightningNodeApi_GetHistogram 1 param → 200503404
POST
/api/v1/server/lightning/{cryptoCode}/connect
Connect to lightning node
InternalLightningNodeApi_ConnectToNode 1 param body → 200422400503404
GET
/api/v1/server/lightning/{cryptoCode}/channels
Get channels
InternalLightningNodeApi_GetChannels 1 param → 200404
POST
/api/v1/server/lightning/{cryptoCode}/channels
Open channel
InternalLightningNodeApi_OpenChannel 1 param body → 200422400404
POST
/api/v1/server/lightning/{cryptoCode}/address
Get deposit address
InternalLightningNodeApi_GetDepositAddress 1 param → 200503404
GET
/api/v1/server/lightning/{cryptoCode}/payments/{paymentHash}
Get payment
InternalLightningNodeApi_GetPayment 2 params → 200503404
GET
/api/v1/server/lightning/{cryptoCode}/invoices/{id}
Get invoice
InternalLightningNodeApi_GetInvoice 2 params → 200503404
POST
/api/v1/server/lightning/{cryptoCode}/invoices/pay
Pay Lightning Invoice
InternalLightningNodeApi_PayInvoice 1 param body → 200202422400503404
GET
/api/v1/server/lightning/{cryptoCode}/invoices
Get invoices
InternalLightningNodeApi_GetInvoices 3 params → 200401503default
POST
/api/v1/server/lightning/{cryptoCode}/invoices
Create lightning invoice
InternalLightningNodeApi_CreateInvoice 1 param body → 200400503404
GET
/api/v1/server/lightning/{cryptoCode}/payments
Get payments
InternalLightningNodeApi_GetPayments 3 params → 200401503default

Schemas 19

The contract defines 19 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
ValidationProblemDetails
array
An array of validation errors of the request

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

btcpay-lightning-internal-node-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 (Store) 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 (Internal Node) 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.