# SSL Certificate Check

> SSL Certificate Check is a paid API for AI agents from api.bakhour.ca, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Retrieves SSL/TLS certificate validity details (not_before, not_after) for a given hostname via HTTP GET

## Facts

- Endpoint: GET https://api.bakhour.ca/ssl/check
- 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/ssl-certificate-check-e957880f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cLE2CHd9z5lOnAJXA2V6H

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 ssl-certificate-check-e957880f
```

Example prompt: Can you check the SSL certificate for stripe.com and tell me when it expires and when it was issued?

## When to prefer this

Use this endpoint when you need a quick, deterministic lookup of SSL certificate validity dates for a single hostname without setting up your own TLS inspection tooling. Ideal for agents monitoring certificate expiry or validating third-party domains at low cost ($0.005 per call).

## Known failure modes

- Invalid or unreachable hostname returns an error or empty response
- Hostname without SSL certificate may return an error
- Malformed input (missing hostname query param) returns a 400-level error
- Payment failure (insufficient USDC balance) results in a 402 response before the request is processed

## How this service works

Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.

## Output

Returns a JSON object containing the hostname queried, the certificate's not_before date (when it became valid), and the not_after date (when it expires).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "hostname"
     ],
     "properties": {
      "hostname": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hostname": "openai.com",
  "not_after": "Example",
  "not_before": "Example"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ssl-certificate-check-e957880f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bakhour.ca](https://www.zero.xyz/host/api.bakhour.ca/llms.txt)
