# OpenAPI Audit (Lint + Validate + Security)

> OpenAPI Audit (Lint + Validate + Security) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Runs a bundled OpenAPI spec audit workflow — linting, payload validation, and security checks — against a spec URL in a single x402-paid call

## Facts

- Endpoint: POST https://agent402.tools/api/skill/openapi-audit
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openapi-audit-lint-validate-security-dbcad0a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4AHA8hG_iNZ6vYw5rmZt_

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-audit-lint-validate-security-dbcad0a4 -d '<json body>'
```

Example prompt: Can you audit my OpenAPI spec at https://api.example.com/openapi.json — lint it, validate a sample payload, and flag any security issues all in one pass?

## When to prefer this

Choose this endpoint when you want a comprehensive one-shot OpenAPI audit covering linting, payload validation, and security in a single paid call — rather than running three separate tools manually. Ideal for CI/CD pipelines, pre-deployment checks, or when you need actionable spec quality feedback quickly without chaining multiple API calls.

## Known failure modes

- Invalid or unreachable spec URL returns a fetch/network error
- Malformed JSON or YAML spec causes a parse error
- Spec that is not a valid OpenAPI document returns a format error
- Rate limiting or payment failure via x402 protocol prevents execution
- Timeout if the spec URL is very large or slow to respond

## How this service works

Bundled execution of the OpenAPI spec audit workflow - Lint an OpenAPI spec and validate a sample payload against it - catch schema errors in one pass. One x402 payment runs 3 underlying tools (openapi-lint, openapi-validate-payload, openapi-security-summary); partial-success per step.

## Output

A bundled audit report covering: lint warnings and errors from the OpenAPI spec, payload validation results against the spec's schemas, and security findings — all returned from a single call that runs three underlying tools (openapi-lint, openapi-validate-payload, openapi-security).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL of the OpenAPI spec (JSON or YAML)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "url": "https://petstore3.swagger.io/api/v3/openapi.json"
  },
  "pack": "openapi-audit",
  "steps": [
   {
    "ok": true,
    "slug": "openapi-lint",
    "result": {}
   },
   {
    "ok": true,
    "slug": "openapi-validate-payload",
    "result": {}
   },
   {
    "ok": true,
    "slug": "openapi-security-summary",
    "result": {}
   }
  ],
  "summary": "3/3 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openapi-audit-lint-validate-security-dbcad0a4/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)
