Anvil · Schema

Anvil Generate PDF Request

Request body schema for the Anvil PDF Generation API endpoint POST /api/v1/generate-pdf

PDFPDF FillingPDF GenerationE-SignaturesDocument AutomationOCRDocument AIGraphQLRESTWorkflowsWeb FormsPaperwork Automation

Properties

Name Type Description
type string Content type. 'html' for HTML/CSS, 'markdown' for structured Markdown.
title string Title to encode into the PDF document metadata.
data object Content to render. Format depends on the 'type' field.
page object Page size and margin settings.
fontSize number Font size for Markdown rendering (points). Min 5, max 30.
textColor string Hex color for text. Applies to Markdown mode.
fontFamily string Font family for Markdown mode.
includeTimestamp boolean Include a timestamp in the PDF. Applies to Markdown mode.
logo object Logo configuration for Markdown-generated PDFs.
View JSON Schema on GitHub

JSON Schema

anvil-generate-pdf-request.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/anvil/main/json-schema/anvil-generate-pdf-request.json",
  "title": "Anvil Generate PDF Request",
  "description": "Request body schema for the Anvil PDF Generation API endpoint POST /api/v1/generate-pdf",
  "type": "object",
  "required": ["data"],
  "properties": {
    "type": {
      "type": "string",
      "description": "Content type. 'html' for HTML/CSS, 'markdown' for structured Markdown.",
      "enum": ["html", "markdown"],
      "default": "markdown"
    },
    "title": {
      "type": "string",
      "description": "Title to encode into the PDF document metadata."
    },
    "data": {
      "description": "Content to render. Format depends on the 'type' field.",
      "oneOf": [
        {
          "type": "object",
          "description": "HTML/CSS data object (used when type is 'html').",
          "properties": {
            "html": {
              "type": "string",
              "description": "HTML markup to render as PDF."
            },
            "css": {
              "type": "string",
              "description": "CSS stylesheet to apply to the HTML."
            }
          }
        },
        {
          "type": "array",
          "description": "Markdown sections (used when type is 'markdown').",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "description": "Section heading."
              },
              "content": {
                "type": "string",
                "description": "Markdown-formatted content."
              },
              "table": {
                "type": "object",
                "description": "Optional table data.",
                "additionalProperties": true
              }
            }
          }
        }
      ]
    },
    "page": {
      "type": "object",
      "description": "Page size and margin settings.",
      "properties": {
        "width": { "type": "string" },
        "height": { "type": "string" },
        "marginTop": { "type": "string" },
        "marginBottom": { "type": "string" },
        "marginLeft": { "type": "string" },
        "marginRight": { "type": "string" }
      }
    },
    "fontSize": {
      "type": "number",
      "description": "Font size for Markdown rendering (points). Min 5, max 30.",
      "minimum": 5,
      "maximum": 30
    },
    "textColor": {
      "type": "string",
      "description": "Hex color for text. Applies to Markdown mode.",
      "pattern": "^#[0-9A-Fa-f]{6}$"
    },
    "fontFamily": {
      "type": "string",
      "description": "Font family for Markdown mode."
    },
    "includeTimestamp": {
      "type": "boolean",
      "description": "Include a timestamp in the PDF. Applies to Markdown mode.",
      "default": true
    },
    "logo": {
      "type": "object",
      "description": "Logo configuration for Markdown-generated PDFs.",
      "properties": {
        "src": {
          "type": "string",
          "format": "uri",
          "description": "URL of the logo image."
        },
        "width": { "type": "string" },
        "height": { "type": "string" }
      }
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/anvil-generate-pdf-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.