Skip to content
Fourohtwo

Part of the Domain Web Trust family

api.macaroonnetwork.com/execute/domain-ssl-check-v1

Part of the Domain Web Trust family: live TLS handshake against a domain's HTTPS port, useful for confirming a domain has a valid, current certificate before an agent interacts with a website or merchant. Reports certificate validity, issuer/subject, and validity window (including days until expiry). Performed via a real TLS connection at request time -- no third-party certificate-transparency dat

BaseAnswering
POSThttps://api.macaroonnetwork.com/execute/domain-ssl-check-v1

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.macaroonnetwork.com/execute/domain-ssl-check-v1", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":{"domain":"example.com"},"predicate":{"conditions":[{"field":"$.has_valid_certificate","operator":"eq","type":"field_changed","value":true},{"field":"$.is_expired","operator":"eq","type":"field_changed","value":false}],"type":"all"}}),
});
console.log(await res.json());

Example input

{
  "input": {
    "domain": "example.com"
  },
  "predicate": {
    "conditions": [
      {
        "field": "$.has_valid_certificate",
        "operator": "eq",
        "type": "field_changed",
        "value": true
      },
      {
        "field": "$.is_expired",
        "operator": "eq",
        "type": "field_changed",
        "value": false
      }
    ],
    "type": "all"
  }
}

More from Macaroon NetworkProvider status