# AISkills402: OpenAPI Operation Object From An Example Call

> AISkills402: OpenAPI Operation Object From An Example Call is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Downloads a SKILL.md file that teaches an AI agent how to generate an OpenAPI Operation Object from an example HTTP call, purchased once via x402 micropayment in USDC on Base.

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/openapi-operation-from-example/file?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-openapi-operation-object-from-an-example-call-3d217966
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_232wqKPiUukj4ObDZXhro

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 aiskills402-openapi-operation-object-from-an-example-call-3d217966
```

Example prompt: Buy me the 'openapi-operation-from-example' SKILL.md file from AISkills402 using a GET request so I can teach you how to generate OpenAPI Operation Objects from real example API calls.

## When to prefer this

Choose this endpoint when an AI agent needs a tested, reusable SKILL.md instruction file specifically for generating OpenAPI Operation Objects from example HTTP calls, and you want a one-time purchase model with permanent ownership and free re-downloads rather than a subscription or per-use API. Ideal for agent pipelines that need to self-document APIs or scaffold OpenAPI specs from live traffic.

## Known failure modes

- Payment not settled on Base — transaction pending or failed, receipt shows settled:false
- Invalid or missing required input fields (type or method) — 400 Bad Request
- Method not allowed — only GET and HEAD are accepted
- Insufficient USDC balance to cover $0.01 micropayment via x402
- Network timeout during blockchain settlement
- Redownload token expired or invalid when re-fetching

## How this service works

OpenAPI Operation Object From An Example Call — Writes one OpenAPI 3.1 operation object, as bare JSON, from an example request, an example response and rules given in words - parameters with the right location, requirement flag and type, a request body, and a response per status the person actually showed. Uses the 3.1 forms, not the 3.0 ones - a field that may be null is a type list with "null" (never nullable), a path parameter is always required, a status is a quoted key, an identifier writt…

## Output

Returns a JSON object containing the SKILL.md file (name, UTF-8 content, SHA256 hash), the skill's name and identifier, a version string, a blockchain settlement receipt with transaction hash, and a redownload URL and token for future free re-downloads of the same or updated versions.

## 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"
     ],
     "type": "string"
    },
    "headers": {
     "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": {
  "ok": true,
  "file": {
   "name": "SKILL.md",
   "content": "<the SKILL.md file>",
   "encoding": "utf-8"
  },
  "name": "OpenAPI Operation Object From An Example Call",
  "skill": "openapi-operation-from-example",
  "sha256": "<sha256 of SKILL.md>",
  "receipt": {
   "tx": "0x<settlement transaction>",
   "settled": true
  },
  "version": "1.0.0",
  "redownload": {
   "url": "<api>/v1/purchases/<token>",
   "token": "<64 hex chars>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-openapi-operation-object-from-an-example-call-3d217966/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
