Alby Developer Guide
User GuideDeveloper Portal
LndHub API
LndHub API
  • Introduction
    • ❔What is LndHub?
  • Building Lightning Apps
    • ⚡Accessing Alby via LndHub
Powered by GitBook
LogoLogo

Our content

  • Website
  • Blog
  • GitHub

Follow us

  • Nostr
  • Twitter / X
  • Youtube

Contact us

  • E-mail
  • Community Chat
  • Open Hours

Your bitcoin & nostr companion / from 🐝 with 🧡

On this page
  • Authentication
  • Paying an Invoice
  • API Documentation

Was this helpful?

  1. Building Lightning Apps

Accessing Alby via LndHub

Last updated 2 years ago

Was this helpful?

If you would like to send payments from your backend application, you can connect to your personal Alby account using the LndHub API.

This is only possible using an Alby hosted account, as these accounts are built on the LndHub accounting system.

In order to connect to your account via the LndHub API, you'll need your Alby account's connection credentials, which is the same as connecting a mobile wallet to your Alby account. We've created a guide .

Authentication

Your connection credentials are in the following format: lndhub://user:password@domain and can be used to authenticate with the Alby LndHub service. The domain is Alby's LndHub server, .

// POST https://ln.getalby.com/auth
{
  "login": "04f8996da763b7a969b1",
  "password": "5e884898da28047151d0"
}

Paying an Invoice

// Don't forget to add the Authorization header!
// Authorization: Bearer your_access_token_here
// POST https://ln.getalby.com/payinvoice
{
  "invoice": "lnbc1...."
}

API Documentation

The documentation for Alby's LndHub API and all available methods can be read here:

You can also read more about the LndHub API .

⚡
here
https://ln.getalby.com/
https://ln.getalby.com/swagger/index.html
here