# TLS Certificate Inspector

> TLS Certificate Inspector is a paid API for AI agents from vending-machine-seven.vercel.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Retrieves TLS peer certificate details — subject, issuer, expiry, and authorization status — for any public hostname

## Facts

- Endpoint: GET https://vending-machine-seven.vercel.app/api/v/tls-cert
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tls-certificate-inspector-21e2535b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w9JqvIr2N2t6fohtzp88J

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tls-certificate-inspector-21e2535b
```

Example prompt: Can you check the TLS certificate for api.stripe.com — I need to know who issued it, when it expires, and whether it's currently authorized?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call TLS certificate lookup without setting up your own SSL inspection tooling — ideal for uptime agents, security audits, brand protection checks, or pre-deployment verification of a single public hostname

## Known failure modes

- Host not reachable or connection refused — empty or error response
- Invalid hostname format — likely validation error
- Port not open or not serving TLS — connection timeout
- Expired or self-signed cert may still return data but authorized:false
- Private/internal hosts blocked for security — SSRF-safe refusal

## How this service works

TLS peer certificate subject, issuer, expiry, and authorization status for a public host

## Output

Returns a JSON object with the hostname, service name, whether the certificate is authorized (boolean), days remaining until expiry, and certificate subject/issuer details

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "host"
     ],
     "properties": {
      "host": {
       "type": "string",
       "description": "Hostname e.g. example.com"
      },
      "port": {
       "type": "string",
       "description": "443 (default) or 8443"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "host": {
       "type": "string"
      },
      "service": {
       "type": "string"
      },
      "authorized": {
       "type": "boolean"
      },
      "days_until_expiry": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tls-certificate-inspector-21e2535b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine-seven.vercel.app](https://www.zero.xyz/host/vending-machine-seven.vercel.app/llms.txt)
