Skip to main content
POST
/
api
/
payments
/
invoice
Create a Lightning invoice from the authenticated user's wallet.
curl --request POST \
  --url https://openagents.com/api/payments/invoice \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amountSats": 1000,
  "description": "Fund agent wallet"
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Create a Lightning invoice from the authenticated user wallet.

amountSats
integer
required
Example:

1000

description
string | null
Example:

"Fund agent wallet"

Response

Successful response

data
object