# OpenAPI Contract Audit

> OpenAPI Contract Audit is a paid API for AI agents from api.ikoles.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Audits an inline OpenAPI 3.0/3.1 JSON document for contract completeness and consistency, returning a deterministic 0-100 score plus a detailed issue list.

## Facts

- Endpoint: POST https://api.ikoles.dev/v1/openapi-audit
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openapi-contract-audit-2e50dcbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bB_5Fuv4ygmjZgjxmdx_S

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 openapi-contract-audit-2e50dcbf -d '<json body>'
```

Example prompt: Can you audit this OpenAPI 3.1 spec for me and give it a completeness score? I want to know about any missing response definitions, duplicate operation IDs, undefined security schemes, or unresolved local references.

## When to prefer this

Choose this endpoint when you need a deterministic, reproducible quality score for an OpenAPI 3.0 or 3.1 contract and want a structured breakdown of specific defects (missing responses, duplicate IDs, bad path params, undefined security, unresolved refs) rather than a general linting pass. Ideal for CI/CD gates, API governance workflows, or reviewing third-party specs before integration.

## Known failure modes

- Invalid or malformed JSON document returns a parsing error
- External references are not fetched and will be flagged as unresolved
- OpenAPI versions other than 3.0 or 3.1 may produce incomplete results
- Very large documents may hit payload size limits
- Missing required 'document' field returns a validation error

## How this service works

Audit an inline OpenAPI 3.0 or 3.1 JSON document for contract completeness and consistency. Returns a deterministic 0-100 score, bounded issue list, operation and schema inventory, duplicate operation IDs, missing summaries/responses, path-parameter defects, undefined security schemes, and unresolved local references.

## Output

Returns a deterministic 0-100 completeness score, a bounded list of issues categorized by type (missing summaries, missing responses, path-parameter defects, undefined security schemes, unresolved local references, duplicate operation IDs), and an inventory of all operations and schemas found in the document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "document": {
   "type": "object",
   "description": "Inline OpenAPI 3.0 or 3.1 JSON document; external references are not fetched"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openapi-contract-audit-2e50dcbf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.ikoles.dev](https://www.zero.xyz/host/api.ikoles.dev/llms.txt)
