cURL
curl --request POST \ --url https://openagents.com/api/agent-payments/invoice \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "amountSats": 1000, "description": "Fund agent wallet" } '
{ "data": {} }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Create a Lightning invoice from the authenticated user wallet.
1000
"Fund agent wallet"
Successful response