Skip to main content
POST
/
api
/
v1
/
lightning
/
pay
Send a Lightning payment
curl --request POST \
  --url https://api.example.com/api/v1/lightning/pay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "destination": "<string>",
  "amount_sat": 1,
  "comment": "<string>"
}
'
{
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://second.tech/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Base64url-encoded auth token

Body

application/json
destination
string
required

The invoice, offer, or lightning address to pay

amount_sat
integer<int64> | null

The amount to send (in satoshis). Optional for bolt11 invoices with amount. This must be higher than the minimum fee laid out in server-configured LightningSendFees [blocked]. The wallet must also contain enough funds to cover the amount plus any fees.

Required range: x >= 0
comment
string | null

An optional comment, only supported when paying to lightning addresses

Response

Returns success message, optionally with preimage if payment was immediately settled

message
string
required

Success message