{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docuqueue-com/json-schema/docuqueue-com-create-document-request-schema.json",
  "title": "CreateDocumentRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docuqueue-com-document-generation-api-openapi.yml#/components/schemas/CreateDocumentRequest",
  "properties": {
    "template_id": {
      "type": "string",
      "title": "Template Id",
      "description": "Template ID to fill"
    },
    "data": {
      "additionalProperties": true,
      "type": "object",
      "title": "Data",
      "description": "Key-value pairs for template fields"
    },
    "callback_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Callback Url",
      "description": "Webhook URL for completion notification"
    },
    "record_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Record Id",
      "description": "Airtable/external record ID for tracking"
    }
  },
  "type": "object",
  "required": [
    "template_id",
    "data"
  ]
}