Skip to content

Extensions API

Install, activate, and manage extensions via the LNbits API.

Install Extension

POST /api/v1/extension

Auth: Bearer token

Install an extension from a source repository.

Parameters

FieldTypeRequiredDescription
ext_idstringYesExtension identifier (e.g. "lnurlp")
source_repostringYesRepository source (e.g. "official" or a manifest URL)

Response 200

FieldTypeDescription
ext_idstringExtension identifier
namestringDisplay name
versionstringInstalled version
installedbooleanInstallation status
activebooleanWhether extension is active
json
{
  "ext_id": "lnurlp",
  "name": "LNURLp",
  "version": "1.0.0",
  "installed": true,
  "active": true
}

List Releases

GET /api/v1/extension/{ext_id}/releases

Auth: Bearer token

List available versions for an extension from its source repository.

Parameters

FieldTypeRequiredDescription
ext_idstring (path)YesExtension identifier

Response 200

Array of release objects:

FieldTypeDescription
versionstringRelease version
descriptionstringRelease notes
min_lnbits_versionstringMinimum LNbits version required
json
[
  {
    "version": "1.2.0",
    "description": "Added multi-wallet support",
    "min_lnbits_version": "0.12.0"
  },
  {
    "version": "1.1.0",
    "description": "Bug fixes and performance improvements",
    "min_lnbits_version": "0.11.0"
  }
]

Get Extension Details

GET /api/v1/extension/{ext_id}/details

Auth: Bearer token

Get detailed information about an installed extension.

Parameters

FieldTypeRequiredDescription
ext_idstring (path)YesExtension identifier

Response 200

FieldTypeDescription
ext_idstringExtension identifier
namestringDisplay name
versionstringInstalled version
descriptionstringExtension description
activebooleanWhether currently active
starsnumberAverage rating
review_countintegerNumber of reviews
json
{
  "ext_id": "lnurlp",
  "name": "LNURLp",
  "version": "1.0.0",
  "description": "Create LNURL-pay links",
  "active": true,
  "stars": 4.5,
  "review_count": 12
}

Activate / Deactivate

PUT /api/v1/extension/{ext_id}

Auth: Bearer token

Toggle an extension on or off for the current user.

Parameters

FieldTypeRequiredDescription
ext_idstring (path)YesExtension identifier
activebooleanYestrue to activate, false to deactivate

Response 200

json
{
  "ext_id": "lnurlp",
  "active": true
}

Uninstall Extension

DELETE /api/v1/extension/{ext_id}

Auth: Bearer token

Destructive Operation

Uninstalling removes the extension's database tables and all associated data. This action cannot be undone.

Parameters

FieldTypeRequiredDescription
ext_idstring (path)YesExtension identifier

Response 200

json
{
  "detail": "Extension uninstalled"
}

Submit Review

POST /api/v1/extension/{ext_id}/reviews

Auth: Bearer token

Submit a review and rating for an extension.

Parameters

FieldTypeRequiredDescription
ext_idstring (path)YesExtension identifier
ratingintegerYesRating from 1 to 5
commentstringNoReview text

Response 201

FieldTypeDescription
idstringReview ID
ext_idstringExtension identifier
ratingintegerSubmitted rating
commentstringReview text
json
{
  "id": "review-uuid",
  "ext_id": "lnurlp",
  "rating": 5,
  "comment": "Works great for my shop"
}

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