Skip to main content
POST
/
api
/
payments
/
pay
Pay a BOLT11 invoice from the authenticated user's wallet.
curl --request POST \
  --url https://openagents.com/api/payments/pay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "invoice": "lnbc10u1...",
  "host": "sats4ai.com",
  "maxAmountMsats": 100000,
  "maxAmountSats": 100,
  "timeoutMs": 12000
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Pay a BOLT11 invoice from the authenticated user wallet.

invoice
string
required
Example:

"lnbc10u1..."

host
string | null
Example:

"sats4ai.com"

maxAmountMsats
integer | null
Example:

100000

maxAmountSats
integer | null
Example:

100

timeoutMs
integer | null
Example:

12000

Response

Successful response

data
object