RenderRequest
A document to render, with the options that shape it. Any key not listed here is refused with `invalid_request`.
Properties
| Name | Type | Description |
|---|---|---|
| markdown | string | The Markdown source of the document. An empty string is refused with `empty_document`. |
| features | object | |
| output | string | How the document comes back: `pdf` streams the file, `json` returns it Base64-encoded beside its metadata, `upload` sends it with one HTTP PUT to `upload_url` and answers with a receipt. `upload` need |
| upload_url | string | A pre-signed PUT URL for your own storage, for `output: "upload"` and only valid together with it. It must be an absolute `https` URL on a public host; any other address is refused with `invalid_reque |
| filename | string | The name the streamed file is offered under. The stem is trimmed to 80 characters and `.pdf` is enforced; the default is `document.pdf`. A document without a front matter `title` takes its first level |
| sign | object | |
| resources | string | What a resource that cannot be loaded or read does: `strict` refuses the render with `resource_fetch_failed`, or `resource_invalid` for one that cannot be read, `lenient` draws a placeholder and repor |
| language | string | The document's language as a BCP 47 tag, such as `en-GB`. It sets hyphenation patterns and text shaping, and the PDF records it as its document language. The default is the front matter's `language`, |
| page | object | |
| format | string | Deprecated: use `page.size`, which wins over it. The page format: a name such as `A4`, `A5`, `B5`, `JIS-B5`, `Letter`, `Legal` or `Tabloid`, without regard to case, optionally followed by `landscape` |
| width | stringnumber | Deprecated: use `page.size`, which wins over it. The page width as a length: a number with `pt`, `mm`, `cm` or `in`, such as `210mm`; a number alone is in points. It needs `height`. Each side must be |
| height | stringnumber | Deprecated: use `page.size`, which wins over it. The page height, written as `width` is. It needs `width`. |
| margin | stringnumber | Deprecated: use `page.margin`, which wins over it. The page margins in CSS order: one length for every side, two for top and bottom then left and right, three for top, left and right, then bottom, or |
| papersize | string | Deprecated: use `page.size`, which wins over it. Another name for `format`, as in Quarto. `format` wins when both are sent. |
| header | object | Deprecated: use `page.header`, which wins over it. Text at the top of every page, written as `page.header` is. |
| footer | object | Deprecated: use `page.footer`, which wins over it. Text at the bottom of every page, written as `page.footer` is. |
| page_numbering | object | Deprecated: use `page.numbering`, which wins over it. The page number in the footer center: a text such as `Page {page} of {pages}`; a number style for `{page}` and `{pages}` everywhere: `1`, `a`, `A` |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/legivel-com/json-schema/legivel-com-render-request-schema.json",
"title": "RenderRequest",
"description": "A document to render, with the options that shape it. Any key not listed here is refused with `invalid_request`.",
"x-generated": "2026-11-15",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/legivel-com-openapi.json#/components/schemas/RenderRequest",
"type": "object",
"properties": {
"markdown": {
"type": "string",
"description": "The Markdown source of the document. An empty string is refused with `empty_document`."
},
"features": {
"$ref": "#/$defs/RenderFeatures"
},
"output": {
"type": "string",
"enum": [
"pdf",
"json",
"upload"
],
"default": "pdf",
"description": "How the document comes back: `pdf` streams the file, `json` returns it Base64-encoded beside its metadata, `upload` sends it with one HTTP PUT to `upload_url` and answers with a receipt. `upload` needs `upload_url`."
},
"upload_url": {
"type": "string",
"format": "uri",
"description": "A pre-signed PUT URL for your own storage, for `output: \"upload\"` and only valid together with it. It must be an absolute `https` URL on a public host; any other address is refused with `invalid_request` before a document is reserved. The PDF is sent once, as given, with only `Content-Type: application/pdf` and `Content-Length`, so a URL that requires any other signed header fails at the storage. The URL is never stored, logged or repeated in a response."
},
"filename": {
"type": "string",
"description": "The name the streamed file is offered under. The stem is trimmed to 80 characters and `.pdf` is enforced; the default is `document.pdf`. A document without a front matter `title` takes its first level-1 heading as its PDF title, else the stem; without any of them, the title is `legivel.com document` and the render time in UTC."
},
"sign": {
"$ref": "#/$defs/SignRequest"
},
"resources": {
"type": "string",
"enum": [
"strict",
"lenient"
],
"default": "strict",
"description": "What a resource that cannot be loaded or read does: `strict` refuses the render with `resource_fetch_failed`, or `resource_invalid` for one that cannot be read, `lenient` draws a placeholder and reports the failures in the resources-failed headers."
},
"language": {
"type": "string",
"maxLength": 63,
"description": "The document's language as a BCP 47 tag, such as `en-GB`. It sets hyphenation patterns and text shaping, and the PDF records it as its document language. The default is the front matter's `language`, if the document carries one. Without either, an accessible PDF gets the main language of the text, which the converter detects without sending the text anywhere, or `en` when the text does not show it clearly. That language goes into the PDF's tags only: the text is set as without a language, with no hyphenation. The answer names the PDF's language and where it came from."
},
"page": {
"$ref": "#/$defs/PageSetup"
},
"format": {
"type": "string",
"maxLength": 64,
"deprecated": true,
"description": "Deprecated: use `page.size`, which wins over it. The page format: a name such as `A4`, `A5`, `B5`, `JIS-B5`, `Letter`, `Legal` or `Tabloid`, without regard to case, optionally followed by `landscape` or `portrait`. It wins over `width` and `height`. Sent with `width`, `height` or both, it replaces the front matter's `format`, `width` and `height`. The default is the front matter's page, else A4."
},
"width": {
"type": [
"string",
"number"
],
"maxLength": 64,
"deprecated": true,
"description": "Deprecated: use `page.size`, which wins over it. The page width as a length: a number with `pt`, `mm`, `cm` or `in`, such as `210mm`; a number alone is in points. It needs `height`. Each side must be between 10 mm and 2 m; a minus sign is ignored."
},
"height": {
"type": [
"string",
"number"
],
"maxLength": 64,
"deprecated": true,
"description": "Deprecated: use `page.size`, which wins over it. The page height, written as `width` is. It needs `width`."
},
"margin": {
"type": [
"string",
"number"
],
"maxLength": 64,
"deprecated": true,
"description": "Deprecated: use `page.margin`, which wins over it. The page margins in CSS order: one length for every side, two for top and bottom then left and right, three for top, left and right, then bottom, or four for top, right, bottom and left, separated by spaces or commas, such as `20mm` or `10mm 15mm`. Units are those of `width`; a number alone is in points. The margins must leave at least half of the page width and height. The default is the front matter's `margin`, else 54 pt, less on a page under 152 mm."
},
"papersize": {
"type": "string",
"maxLength": 64,
"deprecated": true,
"description": "Deprecated: use `page.size`, which wins over it. Another name for `format`, as in Quarto. `format` wins when both are sent."
},
"header": {
"oneOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "boolean"
},
{
"type": "object",
"properties": {
"left": {
"type": "string",
"maxLength": 1000
},
"center": {
"type": "string",
"maxLength": 1000
},
"right": {
"type": "string",
"maxLength": 1000
}
},
"additionalProperties": false
}
],
"description": "Deprecated: use `page.header`, which wins over it. Text at the top of every page, written as `page.header` is.",
"deprecated": true
},
"footer": {
"oneOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "boolean"
},
{
"type": "object",
"properties": {
"left": {
"type": "string",
"maxLength": 1000
},
"center": {
"type": "string",
"maxLength": 1000
},
"right": {
"type": "string",
"maxLength": 1000
}
},
"additionalProperties": false
}
],
"description": "Deprecated: use `page.footer`, which wins over it. Text at the bottom of every page, written as `page.footer` is.",
"deprecated": true
},
"page_numbering": {
"oneOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "boolean"
},
{
"type": "integer",
"const": 1
}
],
"deprecated": true,
"description": "Deprecated: use `page.numbering`, which wins over it. The page number in the footer center: a text such as `Page {page} of {pages}`; a number style for `{page}` and `{pages}` everywhere: `1`, `a`, `A`, `i` or `I`; `true` for the default; or `false` for no page numbers. The front matter key is `page-numbering`. The default is `{page} / {pages}`."
}
},
"required": [
"markdown"
],
"additionalProperties": false,
"$defs": {
"PageNumbering": {
"type": "object",
"title": "PageNumbering",
"description": "The page number, key by key. Any key not listed here is refused with `invalid_request`.",
"properties": {
"style": {
"oneOf": [
{
"type": "string",
"enum": [
"1",
"a",
"A",
"i",
"I"
]
},
{
"type": "integer",
"const": 1
}
],
"description": "The number style: `1` (string or number) for 1, 2, 3, `a` or `A` for letters, `i` or `I` for roman numerals. It applies to `{page}` and `{pages}` in every header and footer. The default is `1`."
},
"text": {
"type": "string",
"maxLength": 1000,
"description": "The text of the page number, such as `Page {page} of {pages}`. Placeholders: `{page}`, `{pages}` (the number of the last page), `{title}` and `{author}` (from the front matter). The default is `{page} / {pages}`."
},
"position": {
"type": "string",
"maxLength": 64,
"description": "Where the number goes: a band, `header` or `footer`, and an alignment, `left`, `center` or `right`, such as `footer right`. Either word alone keeps the default of the other. The default is `footer center`. A header or footer text at the same position wins over the number."
},
"start": {
"type": "integer",
"minimum": 1,
"maximum": 9999,
"description": "The number of the first page. `{pages}` is the number of the last page, so a three-page document that starts at 5 reads 5 of 7 to 7 of 7. The default is 1."
}
},
"additionalProperties": false
},
"PageSetup": {
"type": "object",
"title": "PageSetup",
"description": "The page settings, grouped as the front matter's `page:` key groups them. Each key wins over the flat body key of the same setting and over the front matter. A request that sets any of `page.size`, `format`, `papersize`, `width` or `height` replaces the front matter's page size. Any key not listed here is refused with `invalid_request`.",
"properties": {
"size": {
"type": "string",
"maxLength": 64,
"description": "The page size: a name such as `A4`, `A5`, `B5`, `JIS-B5`, `Letter`, `Legal` or `Tabloid`, without regard to case, optionally followed by `landscape` or `portrait`; or the width and the height as two lengths, such as `210mm 99mm`, in `pt`, `mm`, `cm` or `in`. Each side must be between 10 mm and 2 m. The default is the front matter's page, else A4."
},
"margin": {
"type": "string",
"maxLength": 64,
"description": "The page margins in CSS order: one length for every side, two for top and bottom then left and right, three for top, left and right, then bottom, or four for top, right, bottom and left, such as `20mm` or `10mm 15mm`. The margins must leave at least half of the page width and height. The default is the front matter's margin, else 54 pt, less on a page under 152 mm."
},
"header": {
"oneOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "boolean"
},
{
"type": "object",
"properties": {
"left": {
"type": "string",
"maxLength": 1000
},
"center": {
"type": "string",
"maxLength": 1000
},
"right": {
"type": "string",
"maxLength": 1000
}
},
"additionalProperties": false
}
],
"description": "Text at the top of every page: a string for the center, `true` for the default (no text), `false` for none, or an object with `left`, `center` and `right` strings. Each text is inline Markdown (bold, italic, code, strikethrough; links are styled, not clickable), at most five lines of at most 100 characters. Placeholders: `{page}`, `{pages}` (the number of the last page), `{title}` and `{author}` (from the front matter). The default is the front matter's header, else none."
},
"footer": {
"oneOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "boolean"
},
{
"type": "object",
"properties": {
"left": {
"type": "string",
"maxLength": 1000
},
"center": {
"type": "string",
"maxLength": 1000
},
"right": {
"type": "string",
"maxLength": 1000
}
},
"additionalProperties": false
}
],
"description": "Text at the bottom of every page, written as `header` is; `true` is the default footer. The page number stays in its place unless the footer sets a text at that position or is `false`. The default is the front matter's footer, else the page number alone."
},
"numbering": {
"oneOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "boolean"
},
{
"type": "integer",
"const": 1
},
{
"$ref": "#/$defs/PageNumbering"
}
],
"description": "The page number. A string is a style (`1`, `a`, `A`, `i` or `I`) or the text, such as `Page {page} of {pages}`; the style `1` may be the number `1`; `true` is the default number; `false` removes the number; an object sets style, text, position and start. The default is `{page} / {pages}` in the footer center."
},
"first": {
"type": "boolean",
"description": "`false` leaves the header, the footer and the page number off the first page, as on a title page. The default is `true`."
}
},
"additionalProperties": false
},
"RenderFeatures": {
"type": "object",
"title": "RenderFeatures",
"description": "What the converter does with the document. Every feature is on unless it is sent as `false`, except `mermaid_appendix`, `embed_source` and `archive`, which are off unless they are sent as `true`, `mathml`, which without a value is on for an accessible document with formulas, and `standards`, which is `best_effort` unless it is sent as `strict`. An unknown or camelCase key is refused with `invalid_request` before the render starts, so a typo never costs a document.",
"properties": {
"mermaid": {
"type": "boolean",
"default": true,
"description": "Draw fenced `mermaid` blocks as diagrams."
},
"mermaid_appendix": {
"type": "boolean",
"default": false,
"description": "Put each diagram on a page of its own after the document, with a link where the diagram was written. Off unless set to true: diagrams stay where they are written."
},
"highlight": {
"type": "boolean",
"default": true,
"description": "Color fenced code blocks by language."
},
"images": {
"type": "boolean",
"default": true,
"description": "Draw the resources the document references. With this off, each one is left out of the page."
},
"smart_typography": {
"type": "boolean",
"default": true,
"description": "Set straight quotes, dashes and ellipses as their typographic forms."
},
"tasks": {
"type": "boolean",
"default": true,
"description": "Draw task list items as checkboxes."
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Replace `:shortcode:` names with emoji."
},
"math": {
"type": "boolean",
"default": true,
"description": "Typeset mathematics written in LaTeX notation."
},
"barcode": {
"type": "boolean",
"default": true,
"description": "Draw barcode and QR code blocks."
},
"svg": {
"type": "boolean",
"default": true,
"description": "Draw vector resources as vectors instead of leaving them out."
},
"html_blocks": {
"type": "boolean",
"default": true,
"description": "Render HTML blocks and inline HTML with their styles. CSS applies only inside its own HTML block."
},
"bare_autolinks": {
"type": "boolean",
"default": true,
"description": "Turn bare URLs and email addresses into links. With this off they stay plain text, also in raster output."
},
"indented_code": {
"type": "boolean",
"default": true,
"description": "Render blocks indented by four spaces as code."
},
"embed_source": {
"type": "boolean",
"default": false,
"description": "Attach the Markdown source to the PDF as an embedded file named document.md. Off unless set to true. The free, watermarked delivery leaves it out."
},
"archive": {
"type": "boolean",
"default": false,
"description": "Write the PDF to the archive rules. The PDF claims PDF/A-4, or PDF/A-4f when it carries attached files. Off unless set to true. The free, watermarked delivery claims no standard."
},
"accessible": {
"type": "boolean",
"default": true,
"description": "Tag the PDF for screen readers and write its title and language into it. On unless set to false here or, when this is not sent, as `accessible: false` in the front matter. Without a `language`, the PDF gets the main language of the text, or `en` when the text does not show it clearly. The PDF claims PDF/UA-2 when the document meets it. With formulas, it also adds a MathML file for each formula. The free, watermarked delivery is a picture of each page and has no tags."
},
"mathml": {
"type": "boolean",
"description": "Attach a MathML file to each formula. Without a value, an accessible PDF gets the files when the document has formulas. `true` turns tagging on even when `accessible` is `false`. `false` leaves them out, and then an accessible PDF with formulas does not claim PDF/UA-2."
},
"standards": {
"type": "string",
"enum": [
"best_effort",
"strict"
],
"default": "best_effort",
"description": "`best_effort`: the render does not fail for a standard, and the warnings tell what was left out. `strict`: a render that leaves out a requested standard is refused with 422 and the warning code, and the document is not counted. PDF/UA-2 counts as requested unless `accessible` is `false`."
},
"theme": {
"type": "string",
"enum": [
"light",
"dark"
],
"default": "light",
"description": "The page and text colors. A `theme: light` or `theme: dark` key in the document's front matter wins over this."
},
"hyphenation": {
"type": "boolean",
"description": "Hyphenate justified text. It needs a document `language`, sent or in the front matter: without one the text is set unhyphenated whatever this says. A language the converter detects does not count."
}
},
"additionalProperties": false
},
"SignRequest": {
"title": "SignRequest",
"description": "The certificate to seal this document with. Exactly one form: a stored certificate named by the account, a PKCS#12 bundle, or a key and certificate sent apart. Only the requesting account's own material is used; there is no service certificate. Sealing makes no claim of qualified status or of a reader trusting the document automatically.",
"oneOf": [
{
"type": "object",
"title": "SignStored",
"description": "A certificate this account has stored, by name.",
"properties": {
"certificate": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "The name the certificate was stored under."
},
"reason": {
"type": "string",
"maxLength": 200,
"description": "Why the document is sealed, recorded in the seal. At most 200 characters, no control characters."
},
"location": {
"type": "string",
"maxLength": 200,
"description": "Where the seal was applied, recorded in the seal. At most 200 characters."
},
"contact": {
"type": "string",
"maxLength": 200,
"description": "How to reach the account about the seal, recorded in the seal. At most 200 characters."
}
},
"required": [
"certificate"
],
"additionalProperties": false
},
{
"type": "object",
"title": "SignBundle",
"description": "A PKCS#12 bundle sent with the request and never stored.",
"properties": {
"p12": {
"type": "string",
"description": "The PKCS#12 bundle. Standard Base64 of a DER value, or PEM text as it is. At most 65536 decoded bytes."
},
"password": {
"type": "string",
"maxLength": 4096,
"description": "The bundle's password."
},
"reason": {
"type": "string",
"maxLength": 200,
"description": "Why the document is sealed, recorded in the seal. At most 200 characters, no control characters."
},
"location": {
"type": "string",
"maxLength": 200,
"description": "Where the seal was applied, recorded in the seal. At most 200 characters."
},
"contact": {
"type": "string",
"maxLength": 200,
"description": "How to reach the account about the seal, recorded in the seal. At most 200 characters."
}
},
"required": [
"p12",
"password"
],
"additionalProperties": false
},
{
"type": "object",
"title": "SignParts",
"description": "A private key and its certificate sent apart, with an optional chain.",
"properties": {
"key": {
"type": "string",
"description": "The private key. Standard Base64 of a DER value, or PEM text as it is. At most 65536 decoded bytes."
},
"cert": {
"type": "string",
"description": "The certificate. Standard Base64 of a DER value, or PEM text as it is. At most 65536 decoded bytes."
},
"chain": {
"type": "string",
"description": "The issuing chain, if any. Standard Base64 of a DER value, or PEM text as it is. At most 65536 decoded bytes."
},
"password": {
"type": "string",
"maxLength": 4096,
"description": "The key's password. Leave it out for an unencrypted key."
},
"reason": {
"type": "string",
"maxLength": 200,
"description": "Why the document is sealed, recorded in the seal. At most 200 characters, no control characters."
},
"location": {
"type": "string",
"maxLength": 200,
"description": "Where the seal was applied, recorded in the seal. At most 200 characters."
},
"contact": {
"type": "string",
"maxLength": 200,
"description": "How to reach the account about the seal, recorded in the seal. At most 200 characters."
}
},
"required": [
"key",
"cert"
],
"additionalProperties": false
}
]
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/legivel-com-render-request"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.