---
title: "JSDoc Generate (x402)"
method: GET
path: "/x402/v2/jsdoc-generate"
tags: ["x402"]
---

# JSDoc Generate (x402)

`GET /x402/v2/jsdoc-generate`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/jsdoc-generate`
- Auth: none required

Add JSDoc comments to JavaScript/TypeScript functions and classes. Infers param types, return types, and throws.

## Query parameters

- `code` string, required

## Response `200`

Success

- object
  - `tags_used` unknown[]
    - unknown
  - `documented_code` string
  - `functions_documented` integer

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
