About this endpoint
What it does
Converts the JSON document retrieved from a public URL into a Zod schema file. The response is a downloadable binary file, with the file contents depending on the selected mode.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| mode | ENUM | No | Conversion output mode. Allowed values: annotated, clean, explain.Default: annotated. |
| output | String | No | Output name for the generated schema. Default: sample-output.Example: my-schema. |
| strict | ENUM | No | Strictness flag as a string. Allowed values: true, false.Default: false. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Publicly accessible URL pointing to a JSON resource. The URL must return application/json, text/plain, application/octet-stream, or binary/octet-stream, or the Content-Disposition / URL path must include .json.The JSON content must be a non-empty object. |
Response
Returns a binary file download. The output schema declares a top-level string with binary format: a downloadable Zod schema .ts file, or a JSON explain payload .json when mode=explain.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary content | String | Yes | Downloadable response body. File type: Zod schema .ts file, or .json explain payload when mode=explain. |


