Post-quantum TLS check API

Connects to the domain on port 443 and sends one TLS 1.3 ClientHello that offers only the hybrid group X25519MLKEM768 (RFC 10024) and no key share, and reads which group the server names in its first reply. When it refuses, a second ClientHello with classical groups shows whether TLS 1.3 works at all. No key is exchanged, no handshake is completed and no HTTP is sent. Certificates are not checked.

Free in the browser, no code or account needed: Post-quantum TLS check.

GET https://api.lookproof.dev/v1/tls/pq-kex

Updated 2026-10-09

$0.01 per request

Examples use the Base (eip155:8453) network.

Input

Query parameters.

NameTypeRequiredLimitsDescription
domainstringYes1–1024 charactersThe domain to check, for example example.com.

Example request

curl -i 'https://api.lookproof.dev/v1/tls/pq-kex?domain=example.com'
import asyncio
import os

from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact import register_exact_evm_client


async def main() -> None:
    signer = EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"]))
    client = register_exact_evm_client(x402Client(), signer, networks="eip155:8453")
    async with x402HttpxClient(client) as http:
        response = await http.get('https://api.lookproof.dev/v1/tls/pq-kex', params={'domain': 'example.com'})
        response.raise_for_status()
        print(response.json())


asyncio.run(main())
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.EVM_PRIVATE_KEY);
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const response = await fetchWithPayment("https://api.lookproof.dev/v1/tls/pq-kex?domain=example.com");
console.log(await response.json());

curl: an unpaid request returns 402 with the price (PAYMENT-REQUIRED). The Python and JavaScript clients pay it and send the request again. Only ordinary wallets (EOA) can pay; smart-contract wallets get a 402 without charge. See payments. With an API key instead, add -H "Authorization: Bearer lp_live_..." to the curl request; see authentication.

Example response

{
  "checked_at": "2026-10-24T12:00:00Z",
  "data": {
    "address_family": "ipv4",
    "alert": null,
    "classic_group": null,
    "control_alert": null,
    "domain": "example.com",
    "hello_retry_request": true,
    "pq_group": "X25519MLKEM768",
    "result": "selects_pq_group",
    "tls13": true
  },
  "endpoint": "tls.pq_kex",
  "findings": [],
  "meta": {
    "cache_hit": false,
    "duration_ms": 42,
    "fresh_until": "2026-10-24T12:05:00Z",
    "observed_at": "2026-10-24T12:00:00Z",
    "resolver": null,
    "source": "dns"
  },
  "request_id": "req_aaaaaaaaaaaaaaaaaaaaaaaaaa",
  "schema_version": "1.0",
  "status": "ok"
}

Response fields

FieldMeaning
request_idUnique id of this request. Quote it when you contact support.
endpointThe endpoint id, for example mail.spf.
schema_versionVersion of the response format, currently 1.0.
checked_atWhen the check ran (ISO 8601, UTC).
statusok, info, warning or error from the worst finding, or unknown when the check was incomplete. unknown is not an error in the domain.
dataThe check's own data. Its fields are listed below.
findingsWhat was found: code, severity, message, explanation and evidence.
metaDuration, cache use, resolver and how long the result stays fresh.

Fields in data

FieldType
domainstring
resultone of selects_pq_group, does_not, error
address_familyone of ipv4, ipv6 or null
pq_groupstring or null
hello_retry_requestboolean or null
tls13boolean or null
classic_groupone of x25519, secp256r1, secp384r1 or null
alertinteger or null
control_alertinteger or null

Status codes

StatusCodeMeaningDo you pay?
200noneThe result is delivered, also when it has negative findings.Yes: charged once per payment; redelivery of the same payment is free
402nonePayment is required, or the attached payment was refused. The body states the price.No
400bad_requestThe request is malformed.No
409payment_in_progress, payment_bound_to_other_requestThis payment is already being processed, or it is bound to a different request. No new payment is taken.No
422invalid_inputThe input failed validation, with or without a payment; no payment terms are given and nothing is charged. A request with no input at all (the bare URL) gets a 402 whose error field names the missing input.No
429rate_limitedToo many requests from this IP address or payer.No
503busy, unavailable, payments_unavailable, check_failed, deadline_exceededThe service is busy or temporarily unavailable, or the check could not be completed (check_failed) or ran out of time (deadline_exceeded) on our side. Nothing is charged; retry after Retry-After.No

Errors use the common error body. See errors.

Findings this endpoint can return

TLS certificate (1)
DNS (1)
Pq (3)