cURL
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": {} }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Pay a BOLT11 invoice from the authenticated user wallet.
"lnbc10u1..."
"sats4ai.com"
100000
100
12000
Successful response