Skip to main content

API reference

SSL / TLS Inspector

SSL / TLS Inspector: Inspect SSL/TLS certificate and configuration. Published endpoints, request parameters, JSON responses and authentication.

Release v1.2.0 · This reference describes the release shown here. Console shows the current published configuration.

Technical limits
ⓘThese limits apply unless an endpoint lists different limits.
Timeout
15 s
Request body
16 KiB
Response body
512 KiB

Inspect SSL/TLS certificate and configuration

POST/ssl/v1/inspect

Perform a live read-only TLS handshake against a public hostname and inspect the leaf certificate, full presented chain, expiration, hostname match, trust verification, TLS version, cipher suite, and security grade. For HTTP-capable TLS services on any allowlisted port, also read bounded HEAD / response headers on the same connection without following redirects or reading bodies. HTTP failures do not affect the TLS result or grade. Completed handshakes count as one billable request; invalid input, unsafe addresses, timeouts, and unreachable hosts are not charged.

$0.002 / requestHow billing works ↗

Parameters

This operation has no published parameters.

Request body

Request fields

NameTypeRequiredDescription
domainstringNoPublic domain or hostname to inspect (Unicode or Punycode).
include_pembooleanNoWhen true, include PEM-encoded certificates on each chain entry and full concatenated chain_pem (default false).
portintegerNoOptional TLS port (default 443; allowed: 443, 8443, 465, 993, 995, 636, 853).
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "domain": "antapi.dev",
  "include_pem": false,
  "port": 443
}

Success response200

Fields inside data

NameTypeRequiredDescription
certificateobjectNoLeaf server certificate details.
chainobject[]NoFull certificate chain presented by the server starting with the leaf certificate.
chain_pemstringNoConcatenated PEM-encoded certificate chain (leaf to root/intermediate); returned only when include_pem is true.
connectionobjectNoNegotiated TLS handshake parameters.
domainobjectNoInput and normalized target domain and port.
httpobjectNoBest-effort HEAD response headers on the same TLS connection; does not affect the SSL score.
summaryobjectNoOverall SSL/TLS status, grade, score, and prioritized issues.
verificationobjectNoCertificate chain and hostname verification status.
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "code": 0,
  "data": {
    "certificate": {
      "crl_distribution_points": [
        "string"
      ],
      "days_remaining": 59,
      "expired": false,
      "is_ca": false,
      "issuer": {
        "common_name": "antapi.dev",
        "country": [
          "string"
        ],
        "organization": [
          "string"
        ],
        "organizational_unit": [
          "string"
        ]
      },
      "issuing_certificate_urls": [
        "string"
      ],
      "not_after": "2027-01-30T00:00:00Z",
      "not_before": "2026-11-01T00:00:00Z",
      "not_yet_valid": false,
      "ocsp_servers": [
        "string"
      ],
      "pem": "string",
      "public_key_algorithm": "ECDSA",
      "public_key_bits": 256,
      "sans": [
        "string"
      ],
      "self_signed": false,
      "serial_number": "04A1B2C3D4E5",
      "sha256_fingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "signature_algorithm": "ECDSA-SHA256",
      "subject": {
        "common_name": "antapi.dev",
        "country": [
          "string"
        ],
        "organization": [
          "string"
        ],
        "organizational_unit": [
          "string"
        ]
      },
      "version": 3
    },
    "chain": [
      {
        "crl_distribution_points": [
          "string"
        ],
        "days_remaining": 59,
        "expired": false,
        "is_ca": false,
        "issuer": {
          "common_name": "antapi.dev",
          "country": [
            "string"
          ],
          "organization": [
            "string"
          ],
          "organizational_unit": [
            "string"
          ]
        },
        "issuing_certificate_urls": [
          "string"
        ],
        "not_after": "2027-01-30T00:00:00Z",
        "not_before": "2026-11-01T00:00:00Z",
        "not_yet_valid": false,
        "ocsp_servers": [
          "string"
        ],
        "pem": "string",
        "public_key_algorithm": "ECDSA",
        "public_key_bits": 256,
        "sans": [
          "string"
        ],
        "self_signed": false,
        "serial_number": "04A1B2C3D4E5",
        "sha256_fingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "signature_algorithm": "ECDSA-SHA256",
        "subject": {
          "common_name": "antapi.dev",
          "country": [
            "string"
          ],
          "organization": [
            "string"
          ],
          "organizational_unit": [
            "string"
          ]
        },
        "version": 3
      }
    ],
    "chain_pem": "string",
    "connection": {
      "alpn": "h2",
      "cipher_suite": "TLS_AES_128_GCM_SHA256",
      "fetched_at": "2026-12-02T01:00:00Z",
      "handshake_ms": 82,
      "ip": "104.21.48.10",
      "ocsp_stapled": true,
      "port": 443,
      "tls_version": "TLS 1.3"
    },
    "domain": {
      "input": "antapi.dev",
      "normalized": "antapi.dev",
      "port": 443,
      "unicode": "antapi.dev"
    },
    "http": {
      "error_code": "timeout",
      "headers": [
        {
          "name": "string",
          "values": [
            "string"
          ]
        }
      ],
      "method": "string",
      "protocol": "string",
      "status": "available",
      "status_code": 0,
      "url": "string"
    },
    "summary": {
      "grade": "A",
      "issues": [
        {
          "code": "CERT_EXPIRING_SOON",
          "component": "certificate",
          "message": "Certificate expires in 14 days.",
          "severity": "medium"
        }
      ],
      "score": 100,
      "status": "valid"
    },
    "verification": {
      "chain_length": 2,
      "chain_valid": true,
      "error": "",
      "hostname_matches": true,
      "trusted": true
    }
  },
  "error": ""
}