About this endpoint
What it does
Converts the JSON document available at a public URL into a Zod schema. The request takes a source url, and the response shape depends on the mode query parameter.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| mode | ENUM | No | Allowed values: annotated, clean, explain.<br>Default: annotated. |
| strict | ENUM | No | Allowed values: true, false.<br>Default: false. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Publicly accessible URL pointing to a JSON resource. The URL must return a content-type of 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 JSON object. The schema includes optional meta, schema, and assumptions fields. The documented output schema does not specify a single concrete success status code.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| meta | Object | No | Request metadata. Contains mode and strict when present. |
| meta.mode | ENUM | No | Allowed values: annotated, clean, explain. |
| meta.strict | Boolean | No | Whether strict mode was applied. |
| schema | String | No | The generated Zod schema as a string, without annotations. |
| assumptions | String Array | No | Human-readable list of assumptions applied during schema generation. |
Notes
The mode query parameter defaults to annotated when omitted. The strict query parameter defaults to false when omitted.