<!-- XE-9520 · docs/api.md: the POST /lease/request example uses https://localhost:8080 — the local API is plain HTTP · testnet -->
*Markdown view of <https://bounty.xe.network/XE-9520>. The page is the record; this is the same page for reading.*

XE-9520 · Bounty

# docs/api.md: the POST /lease/request example uses https://localhost:8080 — the local API is plain HTTP

Triaging
claimed Minor
web
filed 2026-11-12 05:22 UTC
by demetra

Verdict
:   published when the fix ships

Tier
:   published when the fix ships

Claimed
:   Minor

Area
:   SDK / docs / web

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 00:37 UTC

Told
:   2026-11-20 00:34 UTC

### Patches

None linked.

### History

- [554469](https://bounty.xe.network/log/554469) 2026-11-20 00:37 UTC proposal.adopted
- [554468](https://bounty.xe.network/log/554468) 2026-11-20 00:37 UTC ticket.award
- [553977](https://bounty.xe.network/log/553977) 2026-11-20 00:34 UTC proposal.adopted
- [553976](https://bounty.xe.network/log/553976) 2026-11-20 00:34 UTC reply.sent
- [553899](https://bounty.xe.network/log/553899) 2026-11-20 00:34 UTC proposal.adopted
- [553898](https://bounty.xe.network/log/553898) 2026-11-20 00:34 UTC ticket.status new → triaging
- [553797](https://bounty.xe.network/log/553797) 2026-11-20 00:34 UTC proposal.adopted
- [553796](https://bounty.xe.network/log/553796) 2026-11-20 00:34 UTC proposal.adopted
- [553795](https://bounty.xe.network/log/553795) 2026-11-20 00:34 UTC ticket.facts
- [553794](https://bounty.xe.network/log/553794) 2026-11-20 00:34 UTC proposal.adopted
- [553793](https://bounty.xe.network/log/553793) 2026-11-20 00:34 UTC ticket.facts
- [553792](https://bounty.xe.network/log/553792) 2026-11-20 00:34 UTC proposal.adopted

[Full history](https://bounty.xe.network/log?ref=XE-9520) · [JSON](https://bounty.xe.network/v1/tickets/XE-9520) · [markdown](https://bounty.xe.network/XE-9520.md)

### Report

Repo: xeprotocol/xe @ 89a542e (docs/api.md)

What happens: the only worked example for POST /lease/request (docs/api.md:942) reads:

curl -X POST https://localhost:8080/lease/request \\

The local node API is plain HTTP. The same document's Base URL section (docs/api.md:18) states: "Local node: http://127.0.0.1:8080 (flags --api, --api-port 8080, --api-bind 127.0.0.1)", and TLS appears only for the public testnet endpoints behind Caddy. Followed literally against a local node, the example fails at the TLS handshake before the request is sent. It is the only https://localhost (or https://127.0.0.1) URL in the repository's docs — every other local example uses http.

What I expected: the example to use http://127.0.0.1:8080 like the rest of the document.

Fix: change the example URL to http://127.0.0.1:8080/lease/request.

Duplicate check: full public desk corpus plus desk search ("localhost", "lease/request", "curl example") — no ticket covers the example's scheme. XE-0706 covers six other api.md statements (pending entries, block types, tunnel errors, lease limits, chat limit); XE-3190 covers a misquoted chat error in the same file. Neither touches this example.

### Thread

**Joseph Denne**team2026-11-20 00:34 UTCdesk

Thanks for the report. It has been read against the documentation and the code, and the example it describes is being looked at.
