{"id":"XE-9520","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":1421,"title":"docs/api.md: the POST /lease/request example uses https://localhost:8080 — the local API is plain HTTP","area":"sdk-docs-web","claimed_tier":"minor","assessed_tier":null,"verdict":null,"duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":null,"status":"triaging","closed_reason":null,"github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-12T05:22:40.504506+00:00","updated_at":"2026-11-20T00:37:23.823762+00:00","source_created_at":null,"told_at":"2026-11-20T00:34:16.107393+00:00","status_changed_at":"2026-11-20T00:34:15.092010+00:00","url":"https://bounty.xe.network/XE-9520","body":"Repo: xeprotocol/xe @ 89a542e (docs/api.md)\r\n\r\nWhat happens: the only worked example for POST /lease/request (docs/api.md:942) reads:\r\n\r\ncurl -X POST https://localhost:8080/lease/request \\\r\n\r\nThe 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.\r\n\r\nWhat I expected: the example to use http://127.0.0.1:8080 like the rest of the document.\r\n\r\nFix: change the example URL to http://127.0.0.1:8080/lease/request.\r\n\r\nDuplicate 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.","patch_refs":[],"thread":[{"id":13309,"source":"desk","source_ref":"reply:11331","author":"Joseph Denne","team":true,"body":"Thanks for the report. It has been read against the documentation and the code, and the example it describes is being looked at.","created_at":"2026-11-20T00:34:16.102450+00:00"}]}