# BRAINIAC Certificate Expiry Inventory

> BRAINIAC Certificate Expiry Inventory is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-12).

Analyzes a supplied list of TLS/SSL certificates and reports their expiry status, days remaining, and compliance findings for each host.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/network-intelligence/certificate-expiry-inventory?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-certificate-expiry-inventory-fea9b7b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B00eGkz1hO4cjAOdj1y7B

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 brainiac-certificate-expiry-inventory-fea9b7b5 -d '<json body>'
```

Example prompt: I have a CSV list of our TLS certificates with their hostnames and expiry dates — can you analyze it and tell me which ones are already expired or expiring within the next 30 days, as of today?

## When to prefer this

Use this endpoint when you have a pre-existing inventory of certificates (from a certificate manager, CMDB, or log export) and need to classify their expiry status in bulk without performing live network scans. Ideal for compliance reporting, renewal prioritization, and audit preparation where you control the input data. Prefer alternatives if you need live TLS handshake verification or active scanning of hosts you haven't yet enumerated.

## Known failure modes

- Malformed or unrecognized CSV/JSON input returns parsing errors
- Missing or ambiguous notAfter dates result in items being unclassifiable
- Very large inventories (>10,000 items) may be truncated or rejected
- If asOf date is not parseable, the analysis reference date may default to current time or fail
- No network scanning is performed, so live certificate state is not verified — only supplied data is analyzed

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a structured inventory of each certificate with its status (expired, expiring_soon, valid), days remaining, issuer, common name, notAfter/notBefore dates, and a findings array flagging compliance issues. Also returns aggregate counts (expiredCount, expiringSoonCount, certificateCount) and metadata about whether public TLS inspection or DNS was used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "fileBase64"
   ],
   "properties": {
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json",
      "application/octet-stream"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "logs": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "host": {
      "type": "string",
      "maxLength": 253
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "message": {
      "type": "string",
      "maxLength": 4000
     },
     "facility": {
      "type": "string",
      "maxLength": 80
     },
     "severity": {
      "type": "string",
      "maxLength": 40
     },
     "sourceIp": {
      "type": "string",
      "maxLength": 80
     },
     "destinationIp": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 10000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "text/plain",
       "text/csv",
       "application/json",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "configs": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "key": {
      "type": "string",
      "maxLength"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "C1",
    "host": "www.example.com",
    "issuer": "Example CA",
    "source": "Caller-supplied inventory",
    "status": "expiring_soon",
    "notAfter": "2026-12-01T00:00:00.000Z",
    "notBefore": "2025-01-01T00:00:00.000Z",
    "commonName": "www.example.com",
    "serialNumber": "",
    "daysRemaining": 26.125,
    "fingerprintSha256": "",
    "daysRemainingSupplied": true,
    "privateNetworkScanned": false
   },
   {
    "id": "C2",
    "host": "legacy.example.com",
    "issuer": "Example CA",
    "source": "Caller-supplied inventory",
    "status": "expired",
    "notAfter": "2026-10-15T00:00:00.000Z",
    "notBefore": "2024-01-01T00:00:00.000Z",
    "commonName": "legacy.example.com",
    "serialNumber": "",
    "daysRemaining": -20.875,
    "fingerprintSha256": "",
    "daysRemainingSupplied": true,
    "privateNetworkScanned": false
   }
  ],
  "status": "inventoried",
  "findings": [
   {
    "code": "cert_status",
    "kind": "conflict",
    "detail": "Certificate is expiring_soon (26.125 days from asOf).",
    "subject": "C1"
   },
   {
    "code": "cert_status",
    "kind": "conflict",
    "detail": "Certificate is expired (-20.875 days from asOf).",
    "subject": "C2"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Network logs, latency/packet-loss samples, DNS answers, BGP routes, certificates, configs, reputation labels, and incidents are copied only from labeled fields supplied by the caller, or from optional key-free public DNS / public TLS port-443 inspection when explicitly requested.",
   "Private, loopback, link-local, and documentation addresses are never contacted. Private networks are not scanned.",
   "No intrusive security testing is performed and no paid reputation API is used.",
   "IP reputation uses only caller-supplied labels/observations. Missing reputation data is not invented.",
   "Infrastructure health reports aggregate only sections for which records were supplied or optionally fetched."
  ],
  "expiredCount": 1,
  "apiKeyRequired": false,
  "certificateCount": 2,
  "paidProviderUsed": false,
  "publicDnsQueried": false,
  "expiringSoonCount": 1,
  "publicTlsInspected": false,
  "paidReputationApiUsed": false,
  "privateNetworkScanned": false,
  "intrusiveScanPerformed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-certificate-expiry-inventory-fea9b7b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
