> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete Document Schema

> Full JSON Schema for Autype documents — all element types, sections, styling, variables, citations, and abbreviations.

The complete document schema covers the entire Autype document structure. Use it to validate or construct any document JSON before sending it to the API.

<Card title="Download Schema" icon="braces" href="https://autype.com/llm-resources/document-schema.json">
  JSON Schema (draft-07) — all element types, sections, defaults, variables, citations, abbreviations
</Card>

## Top-level Structure

| Field           | Required | Description                                                     |
| --------------- | -------- | --------------------------------------------------------------- |
| `document`      | ✓        | Page settings (size, margins, orientation, output format)       |
| `sections`      | ✓        | Array of content sections (flow or page type)                   |
| `defaults`      | —        | Global styling defaults (fonts, colors, spacing, header/footer) |
| `variables`     | —        | Template variable definitions                                   |
| `abbreviations` | —        | Abbreviation definitions                                        |
| `citations`     | —        | Bibliography entries (CSL-JSON)                                 |

## Related Resources

* [Sections & Elements Schema](/automation/llm-resources/sections-schema) — focused schema for section and element types
* [Defaults Schema](/automation/llm-resources/defaults-schema) — styling configuration
* [Developer API](/api-reference/introduction) — use this schema to generate documents via the API
