Skip to content

Admin Settings API

Read and update LNbits server configuration at runtime via the Admin API.

Manage server-wide settings without restarting the instance.

Get Settings

GET /api/v1/admin/settings

Auth: Super User

Returns the current server configuration. Includes all configurable options.

Parameters

None.

Response 200

The response contains all server settings. Common fields include:

FieldTypeDescription
lnbits_site_titlestringInstance display name
lnbits_site_taglinestringTagline shown on the login page
lnbits_allow_new_accountsbooleanWhether new registrations are allowed
lnbits_admin_usersstring[]List of admin user IDs
lnbits_default_wallet_namestringDefault name for new wallets
lnbits_rate_limit_nointegerRate limit: requests per window
lnbits_rate_limit_unitstringRate limit window ("second", "minute", "hour")
lnbits_theme_optionsstring[]Available UI themes
lnbits_custom_logostringURL for custom logo
lnbits_denominationstringDisplay denomination ("sats", "msat", "BTC")
json
{
  "lnbits_site_title": "My LNbits",
  "lnbits_site_tagline": "Free and open-source Lightning wallet",
  "lnbits_allow_new_accounts": true,
  "lnbits_admin_users": ["user-uuid-1"],
  "lnbits_default_wallet_name": "LNbits wallet",
  "lnbits_rate_limit_no": 200,
  "lnbits_rate_limit_unit": "minute",
  "lnbits_theme_options": ["classic", "bitcoin", "mint"],
  "lnbits_custom_logo": "",
  "lnbits_denomination": "sats"
}

Update Settings

PUT /api/v1/admin/settings

Auth: Super User

Update configuration values at runtime without restarting. Only include the fields you want to change.

Parameters

Any settings field can be included in the request body. Common fields:

FieldTypeRequiredDescription
lnbits_site_titlestringNoInstance display name
lnbits_site_taglinestringNoLogin page tagline
lnbits_allow_new_accountsbooleanNoAllow new registrations
lnbits_admin_usersstring[]NoAdmin user IDs
lnbits_default_wallet_namestringNoDefault wallet name
lnbits_rate_limit_nointegerNoRate limit requests
lnbits_rate_limit_unitstringNoRate limit window
lnbits_denominationstringNoDisplay denomination

Response 200

Returns the full updated settings object (same format as Get Settings).

json
{
  "lnbits_site_title": "My LNbits",
  "lnbits_allow_new_accounts": false
}

Example:

bash
curl -X PUT https://your-lnbits.com/api/v1/admin/settings \
  -H "Authorization: Bearer SUPER_USER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "lnbits_site_title": "My LNbits Instance",
    "lnbits_allow_new_accounts": false,
    "lnbits_rate_limit_no": 100
  }'

TIP

Settings updated via the API take effect immediately and persist across restarts. They override values set in .env or environment variables.

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