Schema Endpoints for Integrations & LLMs
This page lists the most relevant schema endpoints for integrations, SDKs and LLM-based tools.
Important
- The JSON Schema format usually provides the best guidance and validation quality for LLMs.
- However, JSON Schema responses are also the largest and can consume many tokens.
- For small models (e.g.
gpt-5-minior similar), we recommend using TypeScript or Zod variants to keep prompts compact.
Overview
All schema endpoints support different output formats via the type query parameter:
type=json(default)type=tstype=zod
If type is omitted, json is used.
Schema Endpoint Quick Reference
Base URL: https://api.json2doc.com
-
List all schemas
-
Document schema
-
Section schema
-
Template schema