# API Health Check (Bundled: Liveness + Headers + TLS)

> API Health Check (Bundled: Liveness + Headers + TLS) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Runs a bundled three-tool health check on an HTTPS API endpoint — liveness probe, response headers inspection, and TLS certificate status — in a single x402 payment.

## Facts

- Endpoint: POST https://agent402.tools/api/skill/api-health
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-health-check-bundled-liveness-headers-tls-1de46e58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KWUk_jz4_M0JZH3P6jzNK

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 api-health-check-bundled-liveness-headers-tls-1de46e58 -d '<json body>'
```

Example prompt: Can you run a full health check on https://api.example.com/v1/status — I need to know if it's live, what response headers it returns, and whether the TLS certificate is valid?

## When to prefer this

Choose this endpoint when you need a comprehensive, one-shot API health assessment covering availability, HTTP metadata, and TLS integrity simultaneously. It is more cost-efficient than calling three separate tools individually, and ideal for pre-integration checks, uptime monitoring triggers, or security posture validation of third-party APIs. Best when all three dimensions (liveness, headers, certificate) are needed together.

## Known failure modes

- URL is not reachable or times out — partial success returned with liveness failure noted
- Invalid or non-HTTPS URL provided — validation error before checks run
- TLS certificate is expired or self-signed — returned as data, not an error
- Endpoint returns non-2xx status — liveness check reports the actual status code
- Network-level block prevents connection — connection refused or DNS failure reported

## How this service works

Bundled execution of the API health check workflow - Is this API endpoint healthy? Liveness check, response headers, and TLS certificate status in one pass. One x402 payment runs 3 underlying tools (http-check, http-headers, tls-cert); partial-success per step.

## Output

Returns combined results from three checks: (1) HTTP liveness — whether the endpoint responds and with what status code; (2) response headers — key HTTP headers returned by the server; (3) TLS certificate status — validity, expiry, and issuer details. All three results are returned in a single response for the cost of one $0.06 USDC x402 payment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "API endpoint URL to check (https://…)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "url": "https://api.github.com"
  },
  "pack": "api-health",
  "steps": [
   {
    "ok": true,
    "slug": "http-check",
    "result": {}
   },
   {
    "ok": true,
    "slug": "http-headers",
    "result": {}
   },
   {
    "ok": true,
    "slug": "tls-cert",
    "result": {}
   }
  ],
  "summary": "3/3 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-health-check-bundled-liveness-headers-tls-1de46e58/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
