Use trial mode when you want users to try drafting before they pay, and then direct them to your pricing/upgrade page.
How to use:
- Create a builder session with a
trialobject inPOST /api/builder/sessions(endpoint docs). - Set
cta_urlto your pricing/upgrade URL. All trial CTAs use this URL. - After purchase, patch the existing session with
trial: nullviaPATCH /api/builder/sessions/{session_id}so the end-user can continue and finalize the same started document.
More information about trial parameters can be found in the Create a new builder session endpoint description.
{
"trial": {
"heading_text": "<strong>Free trial</strong> - Upgrade to unlock full preview, downloads, and e-signing.",
"heading_cta_text": "Explore plans",
"preview_text": "Unlock full preview",
"finalize_title": "Finish and use your document",
"finalize_content": "<h3>Your document is ready.</h3><p>Upgrade to:</p><ul><li>View the full document</li><li>Download it as a PDF</li><li>Send it for signing</li></ul>",
"finalize_cta_text": "Explore plans",
"cta_url": "https://yourapp.com/plans"
}
}When trial is enabled, the session cannot be finalized with the normal finalize endpoint. You can see Trial mode in the example app by activating it from Settings.