Disconnect a form from its template
Authorization
ApiKeyAuth API key from Settings → API Keys.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/v1/forms/string/docgen"{ "connected": false}Get a form's template connection GET
Whether this form generates a document, and how it is mapped. When connected, `variables` lists every field the template exposes, so you can build or check a mapping without a second request.
Connect a form to a template PUT
Every submission generates a document from this template. This is the join between the two products. `field_map` is keyed by the **template's** variable (`headline.text` for canvas, `data.customer` for Typst). Each value is either a form field key written as a plain string, or an object for sources that are not a form answer: ```json { "template_id": "cm4tpl…", "field_map": { "headline.text": "video_title", "backdrop.src": "cover_image", "footer.text": { "kind": "fixed", "value": "© Acme" }, "issued.text": { "kind": "system", "value": "submitted_at" } }, "output_formats": ["png"], "public_links": true } ``` Nothing is matched by label or position — both sides are keys you chose. An `image` question maps onto an image variable: the uploaded file is what reaches the renderer. Generation runs in the background after a submission is accepted. Poll `GET /api/v1/forms/{id}/submissions`, whose `document` field carries the status and URL, or subscribe to `render.completed`.