Headless 2SIGN— WordPress stores envelopes and contract templates; this app is the initiator-facing UI (WPGraphQL).
List templates, open HTML/schema-driven forms, generate PDFs.
View signature transactions synced from WordPress (envelope).
Needed before PDF generation shows real contract content. Meta keys are registered by the 2SIGN plugin (template_html, template_schema).
template_html and paste HTML (trusted authors only). Use tokens such as {{client_name}}.template_schema — JSON array of fields, e.g. [{"name":"client_name","label":"Client","type":"text"}] for the dynamic form on the template page.Copy into Contract Templates custom fields template_html and template_schema. HTML must come from trusted authors; user-filled values are escaped when merged.
template_html<section class="contract">
<h1>Sample rental agreement</h1>
<p><strong>Tenant:</strong> {{client_name}}</p>
<p><strong>Property:</strong> {{property_address}}</p>
<p><strong>Effective date:</strong> {{effective_date}}</p>
<p>This is placeholder HTML for PDF generation tests.</p>
</section>template_schema[
{"name":"client_name","label":"Tenant full name","type":"text"},
{"name":"property_address","label":"Property address","type":"text"},
{"name":"effective_date","label":"Effective date","type":"text"}
]