Skip to main content
GET
/
api
/
v1
/
forms
/
{companyId}
/
{formId}
/
embed.js
Saved Form Embed Script
curl --request GET \
  --url https://api.sequenzy.com/api/v1/forms/{companyId}/{formId}/embed.js \
  --header 'Authorization: Bearer <token>'
(function () {
  var currentScript = document.currentScript;
  // Renders the saved form and handles submission.
})();

Saved Form Embed Script

Load a saved signup form created in the dashboard with one script tag. No API key is required. The script renders the current saved form settings when the page loads, so edits to the form in Sequenzy apply to deployed JavaScript embeds without copying new HTML.

Request

companyId
string
required
Your company ID.
formId
string
required
The saved form ID. You can find it on the Forms screen in the dashboard.
<script
  async
  src="https://api.sequenzy.com/api/v1/forms/company_123/form_abc123/embed.js"
></script>

Responses

(function () {
  var currentScript = document.currentScript;
  // Renders the saved form and handles submission.
})();