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
Examples use the Base (eip155:8453) network.
Input
Query parameters.
| Name | Type | Required | Limits | Description |
|---|---|---|---|---|
domain | string | Yes | 1–1024 characters | The 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
| Field | Meaning |
|---|---|
request_id | Unique id of this request. Quote it when you contact support. |
endpoint | The endpoint id, for example mail.spf. |
schema_version | Version of the response format, currently 1.0. |
checked_at | When the check ran (ISO 8601, UTC). |
status | ok, info, warning or error from the worst finding, or unknown when the check was incomplete. unknown is not an error in the domain. |
data | The check's own data. Its fields are listed below. |
findings | What was found: code, severity, message, explanation and evidence. |
meta | Duration, cache use, resolver and how long the result stays fresh. |
Fields in data
| Field | Type |
|---|---|
domain | string |
result | one of selects_pq_group, does_not, error |
address_family | one of ipv4, ipv6 or null |
pq_group | string or null |
hello_retry_request | boolean or null |
tls13 | boolean or null |
classic_group | one of x25519, secp256r1, secp384r1 or null |
alert | integer or null |
control_alert | integer or null |
Status codes
| Status | Code | Meaning | Do you pay? |
|---|---|---|---|
| 200 | none | The result is delivered, also when it has negative findings. | Yes: charged once per payment; redelivery of the same payment is free |
| 402 | none | Payment is required, or the attached payment was refused. The body states the price. | No |
| 400 | bad_request | The request is malformed. | No |
| 409 | payment_in_progress, payment_bound_to_other_request | This payment is already being processed, or it is bound to a different request. No new payment is taken. | No |
| 422 | invalid_input | The 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 |
| 429 | rate_limited | Too many requests from this IP address or payer. | No |
| 503 | busy, unavailable, payments_unavailable, check_failed, deadline_exceeded | The 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)
- Error
TLS_UNAVAILABLENo TLS connection to the domain on port 443 could be made.
DNS (1)
- Error
DNS_DOMAIN_UNRESOLVABLENo DNS resolver could resolve the name.
Pq (3)
- Warning
PQ_KEX_INCONCLUSIVEThe server's reply did not show which key exchange group it selects. - Info
PQ_KEX_MISSINGThe server does not select the post-quantum key exchange group X25519MLKEM768. - Info
PQ_KEX_NO_TLS13The server did not accept TLS 1.3 with a common key exchange group.
- CAA record check API
- DNS resolver comparison API
- DNSSEC check API
- HTTPS record check API
- IDN converter API
- DNS lookup API
- Name server check API
- DNS provider lookup API
- SOA record check API
- DNS TTL check API
- Domain verification records API
- Wildcard DNS check API
- Zone file checker API
- Domain health check API
- RDAP domain lookup API
- Set-Cookie parser API
- CSP header parser API
- HSTS header parser API
- Security headers check API
- CIDR calculator API
- IP in CIDR check API
- IP address info API
- IP range to CIDR API
- Subnet calculator API
- BIMI record check API
- BIMI record parser API
- Mail configuration check API
- Bulk mail configuration check API
- DKIM record check API
- DKIM selector finder API
- DMARC check API
- DMARC record parser API
- Email header analyzer API
- MTA-STS and TLS-RPT check API
- MTA-STS policy parser API
- MX lookup API
- Mail provider detection API
- Reverse DNS check for mail servers API
- SPF check API
- SPF flattening check API
- SPF record parser API
- Email spoofing check API
- TLS-RPT check API
- TLS-RPT record parser API
- Site health check API
- TLS certificate check API
- CSR decoder API
- PEM certificate decoder API
- Free retry of failed bulk items API