Forms
Get embed code
/v1/forms/{formId}/embedGet the snippets that put a form on a website, and the draft's display settings that say which one to use. Display settings go live when the form is published.
Path parameters
formIdstringrequiredThe form's id.
Response
scriptstringrequiredThe loader script. Add it once per page.
buttonstringrequiredA button that opens the form.
inlinestringrequiredAn inline field that starts the form.
embedstringrequiredThe whole form in the page, in the element's place.
widgetstringrequiredThe corner widget.
jsOpenstringrequiredThe JS API call that opens the form, with prefill.
eventsstringrequiredAn event listener that runs when the form is submitted.
viewenumrequiredHow the form opens: as a popup, in the corner widget, or full screen.
embeddoesn't use it.One of
"popup","widget","fullscreen"sideenumrequiredThe corner the widget docks to.
One of
"right","left"onPageenumrequiredWhich of the snippets above to use. It comes from the draft's
settings.display.One of
"button","inline","embed","widget"buttonLabelstringrequiredThe text on the button.
Errors answer with a status and the error shape.