Email delivery and reputation

TLS-RPT report analyser API

Drop daily .json.gz, .gz, .zip, or .json SMTP TLS-RPT attachments from Google, Microsoft, and other mail senders straight from your inbox - or paste raw RFC 8460 JSON - for a plain-English breakdown of TLS session counts, MTA-STS and DANE policy status, and every failure code. Compressed attachments unpack automatically with built-in archive-bomb protection and no account required.

POSTapi.middle.network/v1/tools/tls-rpt-reports
1 unit a callLive lookup

Request body

Send JSON: { "input": { … } } with these fields. Fields not listed are ignored.

  • textstringoptional
    Raw SMTP TLS-RPT report JSON (RFC 8460 object with date-range and policies). Provide either text or file.
    Up to 1,048,576 characters
  • filestringoptional
    Base64-encoded SMTP TLS-RPT report file (.json, .gz, .json.gz, or .zip, max 1 MB binary / 2 MB uncompressed). Provide either file or text.
    Up to 1,500,000 characters
  • filenamestringoptional
    Optional original filename (for example google.com!example.com!1700000000!1700086400!001.json.gz).
    Up to 255 characters

Response

The same result shape every tool uses. status is the worst finding, summary and each finding come in plain and tech, and data holds the raw TLS-RPT report analyser detail.

  • 200The test ran. RateLimit headers show what’s left today.
  • 400The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).
  • 401No API key, or the key is not valid or was revoked.
  • 403The tool sends active traffic at the target and requires a Pro or Team API key (activeTool), or the target’s owner has asked not to be tested (optedOut).
  • 429Too many checks: per minute, per day, or at the same target.
  • 503The server is at its concurrent-run limit. Try again in a few seconds.
Request
curl -X POST https://api.middle.network/v1/tools/tls-rpt-reports \
  -H "Authorization: Bearer $MN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{}}'
$result = Invoke-RestMethod -Method Post `
  -Uri "https://api.middle.network/v1/tools/tls-rpt-reports" `
  -Headers @{ Authorization = "Bearer $env:MN_API_KEY" } `
  -ContentType "application/json" `
  -Body '{"input":{}}'
$result.status; $result.summary.plain
const res = await fetch("https://api.middle.network/v1/tools/tls-rpt-reports", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MN_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"input":{}}),
});
const result = await res.json();
console.log(result.status, result.summary.plain);
import os, requests

res = requests.post("https://api.middle.network/v1/tools/tls-rpt-reports",
    headers={"Authorization": f"Bearer {os.environ['MN_API_KEY']}"},
    json={"input": {}})
result = res.json()
print(result["status"], result["summary"]["plain"])
body := bytes.NewBufferString("{\"input\":{}}")
req, _ := http.NewRequest("POST", "https://api.middle.network/v1/tools/tls-rpt-reports", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("MN_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
io.Copy(os.Stdout, res.Body)
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("MN_API_KEY"));
using var content = new StringContent("{\"input\":{}}", Encoding.UTF8, "application/json");
var res = await http.PostAsync("https://api.middle.network/v1/tools/tls-rpt-reports", content);
Console.WriteLine(await res.Content.ReadAsStringAsync());
200 response
{
  "tool": "tls-rpt-reports",
  "target": null,
  "status": "pass",
  "summary": {
    "tech": "…",
    "plain": "…"
  },
  "findings": [
    {
      "level": "pass",
      "tech": "…",
      "plain": "…"
    }
  ],
  "data": {},
  "ms": 420,
  "at": "2026-01-01T00:00:00.000Z"
}

Put your key in MN_API_KEY. No key yet? Here’s how to get one. More in this group: MX lookup, Blacklist check, Email header analyser, SMTP test.

Try it without code

The same test runs free in your browser, no key needed.

Open the TLS-RPT report analyser