# CodePulse API – SSL Certificate Expiry Checker

> CodePulse API – SSL Certificate Expiry Checker is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Checks the SSL/TLS certificate validity and expiry date for a given domain, returning issuer, validity status, and expiration timestamp.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/network/ssl-expiry
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-ssl-certificate-expiry-checker-cc3605bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HSIBYAnllcoAJvNN6unkH

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 codepulse-api-ssl-certificate-expiry-checker-cc3605bc -d '<json body>'
```

Example prompt: Can you check whether the SSL certificate for api.myapp.com is still valid and tell me when it expires?

## When to prefer this

Use this endpoint when you need a quick, low-cost, pay-per-call SSL certificate status check without setting up your own monitoring infrastructure. Ideal for agents that need to verify certificate validity on demand, audit third-party domains, or trigger alerts before expiry. Prefer this over full certificate scanning tools when you only need validity, issuer, and expiry date for a single domain at $0.01 per call.

## Known failure modes

- Domain does not exist or is unreachable — may return supported: false or an error
- Domain uses a self-signed or untrusted certificate — may still return data but with warnings
- Cached data may be slightly stale, indicated by data_as_of field
- Malformed domain input (e.g. including protocol prefix) may cause a validation error
- Very new domains with no certificate may return empty or unsupported results

## How this service works

Checks domain certificate logs on CertSpotter for SSL expiry dates and issuers.

## Output

Returns a JSON object with: `valid` (boolean indicating whether the cert is currently valid), `issuer` (the certificate authority name), `not_after` (ISO 8601 expiry timestamp), `warnings` (any notable issues), `supported` (whether the domain supports SSL), `confidence` (data reliability level), and `data_as_of` (freshness indicator for cached results).

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Target domain name"
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "valid": true,
   "issuer": "Google Trust Services",
   "not_after": "2026-09-12T12:00:00Z"
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-ssl-certificate-expiry-checker-cc3605bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
