GET /satsdice/api/v1/links
Headers
{"X-Api-Key": <invoice_key>}
Body (application/json)
Returns 200 OK (application/json)
[<satsdice_link_object>, ...]
Curl example
curl -X GET {{ request.base_url }}satsdice/api/v1/links -H
"X-Api-Key: {{ user.wallets[0].inkey }}"
GET
/satsdice/api/v1/links/<satsdice_id>
Headers
{"X-Api-Key": <invoice_key>}
Body (application/json)
Returns 201 CREATED (application/json)
{"lnurl": <string>}
Curl example
curl -X GET {{ request.base_url
}}satsdice/api/v1/links/<satsdice_id> -H "X-Api-Key: {{
user.wallets[0].inkey }}"
POST /satsdice/api/v1/links
Headers
{"X-Api-Key": <admin_key>}
Body (application/json)
{"title": <string>, "min_satsdiceable": <integer>,
"max_satsdiceable": <integer>, "uses": <integer>,
"wait_time": <integer>, "is_unique": <boolean>}
Returns 201 CREATED (application/json)
{"lnurl": <string>}
Curl example
curl -X POST {{ request.base_url }}satsdice/api/v1/links -d
'{"title": <string>, "min_satsdiceable": <integer>,
"max_satsdiceable": <integer>, "uses": <integer>,
"wait_time": <integer>, "is_unique": <boolean>}' -H
"Content-type: application/json" -H "X-Api-Key: {{
user.wallets[0].adminkey }}"
PUT
/satsdice/api/v1/links/<satsdice_id>
Headers
{"X-Api-Key": <admin_key>}
Body (application/json)
{"title": <string>, "min_satsdiceable": <integer>,
"max_satsdiceable": <integer>, "uses": <integer>,
"wait_time": <integer>, "is_unique": <boolean>}
Returns 200 OK (application/json)
{"lnurl": <string>}
Curl example
curl -X PUT {{ request.base_url
}}satsdice/api/v1/links/<satsdice_id> -d '{"title":
<string>, "min_satsdiceable": <integer>,
"max_satsdiceable": <integer>, "uses": <integer>,
"wait_time": <integer>, "is_unique": <boolean>}' -H
"Content-type: application/json" -H "X-Api-Key: {{
user.wallets[0].adminkey }}"
DELETE
/satsdice/api/v1/links/<satsdice_id>
Headers
{"X-Api-Key": <admin_key>}
Returns 204 NO CONTENT
Curl example
curl -X DELETE {{ request.base_url
}}satsdice/api/v1/links/<satsdice_id> -H "X-Api-Key: {{
user.wallets[0].adminkey }}"
GET
/satsdice/api/v1/links/<the_hash>/<lnurl_id>
Headers
{"X-Api-Key": <invoice_key>}
Body (application/json)
Returns 201 CREATED (application/json)
{"status": <bool>}
Curl example
curl -X GET {{ request.base_url
}}satsdice/api/v1/links/<the_hash>/<lnurl_id> -H
"X-Api-Key: {{ user.wallets[0].inkey }}"
GET
/satsdice/img/<lnurl_id>
Curl example
curl -X GET {{ request.base_url }}satsdice/img/<lnurl_id>"