# Witnessory API Key Purchase

> Witnessory API Key Purchase is a paid API for AI agents from api.witnessory.org, paid per call via x402, $19/call, status unknown (last checked 2026-10-31).

Purchases a paid API key for accessing Witnessory's signed, recomputable internet post-quantum cryptography adoption statistics

## Facts

- Endpoint: POST https://api.witnessory.org/pay/key?utm_source=zero.xyz
- Price: $19/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/witnessory-api-key-purchase-089d0111
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gMo9XTZaPpPTPO3gh2fHC

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 witnessory-api-key-purchase-089d0111 -d '<json body>'
```

Example prompt: I want to start querying Witnessory's signed post-quantum cryptography adoption data — can you purchase an API key for me using USDC so I get 2000 checks valid for 31 days?

## When to prefer this

Use this endpoint when you need authenticated access to Witnessory's signed, recomputable internet post-quantum cryptography adoption statistics (TLS and SSH). This is the purchase/provisioning step required before calling any data endpoints. Prefer this over alternatives when you specifically need cryptographically-signed, probe-sourced PQC adoption metrics rather than general internet security reports.

## Known failure modes

- Payment failure: insufficient USDC balance causes transaction rejection
- Malformed request body: missing required fields returns validation error
- Network timeout: x402 payment protocol negotiation stalls
- Already-active key conflict: duplicate purchase may be rejected or result in a second independent key
- Invalid payment method: non-USDC payment not accepted

## How this service works

58.4% of the top 10,000 sites negotiate post-quantum TLS; 52.3% of SSH servers offer post-quantum key exchange. As of 2026-10-27, from 4 probes; signed readings, recomputable.

## Output

Returns a signed API key string (e.g. 'wk2...'), the number of allowed checks (e.g. 2000), and the number of days the key is valid (e.g. 31). This key is then used to authenticate subsequent requests to Witnessory's post-quantum statistics endpoints.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "key": "wk2...",
  "checks": 2000,
  "valid_days": 31
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/witnessory-api-key-purchase-089d0111/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.witnessory.org](https://www.zero.xyz/host/api.witnessory.org/llms.txt)
