From 405a2f0776d7eaf1f0f1fd0127410c6d705ffcb7 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Fri, 30 Aug 2024 12:15:29 +0100 Subject: [PATCH] fix decode info (#2655) Closes #1837 --- lnbits/core/templates/core/_api_docs.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lnbits/core/templates/core/_api_docs.html b/lnbits/core/templates/core/_api_docs.html index 3e6d1f0d2..20081bf02 100644 --- a/lnbits/core/templates/core/_api_docs.html +++ b/lnbits/core/templates/core/_api_docs.html @@ -176,18 +176,16 @@ >POST /api/v1/payments/decode -
Headers
- {"X-Api-Key": "{{ wallet.inkey }}"}
Body (application/json)
- {"invoice": <string>} + {"data": <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"