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
{
"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"
}
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.