API Reference
safe-tls exposes a minimal JSON API. Clients connect over HTTPS and the server captures the TLS ClientHello before responding, so every response reflects the capabilities of the exact connection that made the request.
Base URL
All endpoints are served over HTTPS on the configured address (default :8443). The UI and API share the same origin.
Authentication
No authentication is required. CORS is open (Access-Control-Allow-Origin: *).
Endpoints
Usage from a REST client
Any HTTP client that performs its own TLS handshake can be inspected — curl, fetch, Go's http.Client, etc. If you are behind a corporate proxy that intercepts TLS you will see the proxy's ClientHello, not your own.
curl -sk /api/inspect | jq .