Skip to main content

Endpoint

Complete pipeline that generates a document from JSON, renders it to PDF/PNG, and then generates photo variations.

Request Body

object
required
Document header fields (same schema as POST /generate/document).
array
required
List of line items (same schema as POST /generate/document).
string
default:""
Handwritten notes
string
default:"guia_despacho.html"
Template file name
string[]
Photo preset names. If omitted, generates all 8 presets.
string
default:""
Key fields to preserve in photos. Auto-generated from doc_number if empty.

Response

string
Unique identifier for this generation run
object
Generated document files.
array
Array of photo generation results.

Example

Response