Embed API
/API Reference
/- Update existing builder session
Create a new builder session
Retrieve details of existing builder session
Delete builder session
Get contract state and signees
Update contract state and appearance
Finalize contract
Unfinalize contract
Get HTML
Get PDF
Add new participant to existing session
Re-authenticate existing participant
Export builder session
Import builder session
Update existing builder s...
Updates mutable builder session settings.
Currently the endpoint supports updating:
trialmode configuration. Settrialtonullto disable trial mode.finalizationconfirmation settings. Setfinalizationtonullto clear custom finalization behavior. For trial and finalization field definitions, constraints, and HTML support rules, see Create a new builder session. See also the Finalize confirmation dialog guide.
Security
APIKey
Any of:
Trial mode configuration shown in the Builder UI. When trial mode is enabled, the session cannot be finalized. Only heading_text and finalize_content support sanitized HTML. Other text fields are plain text only.
- Production (Legal Engine)https://api.builder.docue.com/api/builder/sessions/{session_id}
curl -i -X PATCH \
https://api.builder.docue.com/api/builder/sessions/7f3f5f62-2c69-7d4e-8a3d-9c0f0e2c5f3a \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_API Key_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Participant: 123e4567-e89b-12d3-a456-426614174000' \
-d '{
"trial": {
"cta_url": "https://example.com/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"
},
"finalization": {
"confirmation_enabled": true,
"confirmation_text": "<strong>Please review carefully.</strong> This action cannot be undone."
}
}'Response
{ "data": { "id": "7f3f5f62-2c69-7d4e-8a3d-9c0f0e2c5f3a", "status": "pending", "trial": { … }, "finalization": { … }, "participants": [ … ] } }