# Docs to OpenAPI Skeleton Generator

> Docs to OpenAPI Skeleton Generator is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.525/call, status unknown (last checked 2026-09-16).

Converts documentation (plain text, markdown, or other doc formats) into a structured OpenAPI skeleton specification

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_b01a9e914fd04024/purchase
- Price: $0.525/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docs-to-openapi-skeleton-generator-eb2a208c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-wXT3Snz2dWWNspFwJK7g

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 docs-to-openapi-skeleton-generator-eb2a208c -d '<json body>'
```

Example prompt: Take my API documentation — it's a markdown file describing endpoints, request params, and response formats for a REST API — and generate an OpenAPI skeleton from it so I can use it as a starting point for a full spec.

## When to prefer this

Use this endpoint when you have existing API documentation in prose, markdown, or other unstructured formats and need a machine-readable OpenAPI skeleton as a starting scaffold. Ideal for bootstrapping OpenAPI spec creation without writing YAML by hand. Prefer this over manual spec authoring or generic LLM prompting when you want a structured, async job-based conversion with a trackable result.

## Known failure modes

- Invalid or unparseable documentation input returns an error status
- Insufficient API description detail may produce an incomplete or empty OpenAPI skeleton
- Payment failure via x402 protocol prevents job creation
- Timeout or processing failure returns a failed status on the job
- Ambiguous documentation with no recognizable endpoint patterns may yield minimal output

## How this service works

Purchase: Docs to OpenAPI Skeleton

## Output

Returns a job_id, a status string indicating processing state, and a thread_id for tracking the async conversion job. The actual OpenAPI skeleton document is likely retrieved separately using the job_id once the job completes.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docs-to-openapi-skeleton-generator-eb2a208c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
