# TLS Certificate Expiry 7-Day Check

> TLS Certificate Expiry 7-Day Check is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-02).

Checks whether the TLS/SSL certificate on port 443 for a given host or URL remains valid for at least 7 days, returning an ok_check boolean flag.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/tls-expiry-7?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tls-certificate-expiry-7-day-check-40350bd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dFZO1Hvp9c59Fj-k_KpFS

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-expiry-7-day-check-40350bd4 -d '<json body>'
```

Example prompt: Can you check if the TLS certificate for api.example.com is still valid for at least the next 7 days?

## When to prefer this

Use this endpoint when you need a quick binary yes/no on whether a TLS certificate will remain valid for at least 7 days, specifically against the port-443 threshold check. Prefer this over a full certificate detail lookup when you only need the expiry safety signal and not raw certificate metadata. It is purpose-built for automated monitoring pipelines and pre-deployment checks where a simple ok_check flag is sufficient.

## Known failure modes

- Host unreachable or DNS resolution failure — returns error indicating connection could not be established
- Certificate already expired — ok_check returns false
- Invalid or malformed host/URL input — validation error returned
- Port 443 not open or TLS handshake fails — connection error
- Payment not satisfied — HTTP 402 returned before processing

## How this service works

Call when an agent needs whether the port-443 certificate stays valid for at least 7 days. The threshold changes the ok_check bit. Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/tls-expiry-7 first.

## Output

Returns an ok_check boolean indicating whether the port-443 TLS certificate for the given host is valid for at least 7 days. A true value means the certificate is safe; false means it expires within the 7-day threshold or is already invalid.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 8,
   "description": "Public URL whose hostname is inspected. Provide url or host. Private targets are rejected."
  },
  "host": {
   "type": "string",
   "examples": [
    "example.com"
   ],
   "maxLength": 253,
   "minLength": 1,
   "description": "Public hostname such as example.com. The port and check are fixed by the SKU. Provide host or url."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tls-certificate-expiry-7-day-check-40350bd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
