Wallet ID: {{ wallet.id }}
Admin key: {{ wallet.adminkey }}
Invoice/read key: {{ wallet.inkey }}
GET /api/v1/wallet
Headers
{"X-Api-Key": "{{ wallet.inkey }}"}
Returns 200 OK (application/json)
{"id": <string>, "name": <string>, "balance":
<int>}
Curl example
curl {{ request.base_url }}api/v1/wallet -H "X-Api-Key:
{{ wallet.inkey }}"
POST /api/v1/payments
Headers
{"X-Api-Key": "{{ wallet.inkey }}"}
Body (application/json)
{"out": false, "amount": <int>, "memo": <string>}
Returns 201 CREATED (application/json)
{"payment_hash": <string>, "payment_request":
<string>}
Curl example
curl -X POST {{ request.base_url }}api/v1/payments -d '{"out": false,
"amount": <int>, "memo": <string>, "webhook":
<url:string>}' -H "X-Api-Key: {{ wallet.inkey }}" -H
"Content-type: application/json"
POST /api/v1/payments
Headers
{"X-Api-Key": "{{ wallet.adminkey }}"}
Body (application/json)
{"out": true, "bolt11": <string>}
Returns 201 CREATED (application/json)
{"payment_hash": <string>}
Curl example
curl -X POST {{ request.base_url }}api/v1/payments -d '{"out": true,
"bolt11": <string>}' -H "X-Api-Key:
{{ wallet.adminkey }}" -H "Content-type:
application/json"
POST
/api/v1/payments/decode
Headers
{"X-Api-Key": "{{ wallet.inkey }}"}
Body (application/json)
{"invoice": <string>}
Returns 200 (application/json)
Curl example
curl -X POST {{ request.base_url }}api/v1/payments/decode -d
'{"data": <bolt11/lnurl, string>}' -H "X-Api-Key:
{{ wallet.inkey }}" -H "Content-type: application/json"
GET
/api/v1/payments/<payment_hash>
Headers
{"X-Api-Key": "{{ wallet.inkey }}"}
Returns 200 OK (application/json)
{"paid": <bool>}
Curl example
curl -X GET {{ request.base_url
}}api/v1/payments/<payment_hash> -H "X-Api-Key:
{{ wallet.inkey }}" -H "Content-type: application/json"