# Aizamon OpenAPI Spec Linter

> Aizamon OpenAPI Spec Linter is a paid API for AI agents from aizamon.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Validates an OpenAPI JSON specification by checking version, paths, and presence of at least one 2xx response, returning a structured lint score and issue list.

## Facts

- Endpoint: GET https://aizamon.com/x402/v1/spec-lint?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aizamon-openapi-spec-linter-4542f86a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P2tTMvMqjbEpTQXb486wH

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 aizamon-openapi-spec-linter-4542f86a
```

Example prompt: Can you lint this OpenAPI JSON for me and tell me what's wrong with it? I want to know if it has valid version info, correct paths, and at least one 2xx response defined.

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.02) automated lint pass on an OpenAPI JSON document — especially to verify version field, path structure, and presence of 2xx responses. Ideal for CI pipelines, pre-publish checks, or agent workflows that generate OpenAPI specs and need to self-validate. Not a full schema compliance tool; use it for rapid structural checks rather than exhaustive validation.

## Known failure modes

- Missing or invalid 'q' query parameter returns an error
- Non-JSON or malformed OpenAPI input may produce a low score with multiple issues
- Network or payment settlement failure returns a 402 Payment Required
- Empty or null OpenAPI JSON may fail schema validation before linting begins

## How this service works

Aizamon is an operator-run Canadian shop: $5 emailed security summaries via Stripe, Tor tooling for Cursor, and redacted developer telemetry. Named support. Clear terms.

## Output

A JSON object containing: 'ok' (boolean success flag), 'sku' (SKU_AG_SPEC_01), 'protocol' (x402), and 'result.openapi' with a numeric score and an array of issue strings describing problems found (e.g. 'missing 2xx response', version errors, path problems).

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "OpenAPI JSON. Checks version, paths, and one 2xx response."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "sku": {
       "type": "string"
      },
      "result": {
       "type": "object"
      },
      "protocol": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "sku": "SKU_AG_SPEC_01",
  "result": {
   "openapi": {
    "score": 2,
    "issues": [
     "missing 2xx response"
    ]
   }
  },
  "protocol": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aizamon-openapi-spec-linter-4542f86a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aizamon.com](https://www.zero.xyz/host/aizamon.com/llms.txt)
