Captain.Legal · Schema

Generate document preview input

Generate a draft of the document from the user's answers. Returns a free watermarked PDF preview and the exact price. Validates all answers against the encoded national rules first — if validation fails, you get structured errors to relay to the user. Also returns what is NOT covered by the automate

CompanyLegalLegal DocumentsContractsTemplatesLegal TechMCPAI Assistant

Properties

Name Type Description
document_type string
country string
language string
answers object Answers keyed by field id, exactly as returned by get_requirements
View JSON Schema on GitHub

JSON Schema

captain-legal-generate-document-input-schema.json Raw ↑
{
  "type": "object",
  "properties": {
    "document_type": {
      "type": "string",
      "minLength": 1
    },
    "country": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}$"
    },
    "language": {
      "type": "string",
      "minLength": 2,
      "maxLength": 5
    },
    "answers": {
      "type": "object",
      "additionalProperties": {},
      "description": "Answers keyed by field id, exactly as returned by get_requirements"
    }
  },
  "required": [
    "document_type",
    "country",
    "answers"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://artifacts.apis.io/captain-legal/json-schema/captain-legal-generate-document-input-schema.json",
  "title": "Generate document preview input",
  "description": "Generate a draft of the document from the user's answers. Returns a free watermarked PDF preview and the exact price. Validates all answers against the encoded national rules first \u2014 if validation fails, you get structured errors to relay to the user. Also returns what is NOT covered by the automate",
  "x-source": "MCP tools/list inputSchema from https://mcp.captain.legal/connect/ (2026-11-03), verbatim apart from $id/$schema/title/description"
}

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/captain-legal-generate-document-input"
All schemas
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.