Embedding forms
Publish a form and share it three ways: a public shareable link, an embed script with allowed domains, or the REST API with a per-form API key.
Click Publish Form in the builder toolbar. The badge next to the form name changes to Published, and a dark Your Form is Ready to Go! panel opens with the prompt “Choose how you want to share your form.” The panel has three tabs and a footer shared by all of them.
Panel footer
- Allow New Submissions is a toggle, on for a live form. It doesn’t pause entries yet — see Enable Form Entries.
- Done closes the panel. The × at the top right does the same.
You can reopen the panel at any time by clicking Publish Form again on a published form.
The URL field shows the form’s public address, in the pattern https://us.zoie.ai/consultation-form/<business-slug>/<form-id>. Click Copy to copy it. The panel describes it as a “Public link you can share anywhere”: in an email, a social post, a QR code or a button on your site.
The Html box holds the script tags to paste into your website. The form is added at the end of the page unless the page has an element with the id static-form-widget-container — add <div id="static-form-widget-container"></div> where the form should appear. Copy at the top right copies it.
<!-- Zoie Form Widget -->
<script
src="https://us.zoie.ai/form-widget-bundle.js"
form_id="<your form id>"
defer>
</script>Below the code is an Allowed Domains box. As the panel explains: “Only these sites can load and submit this form (one per line; *.domain.com allows subdomains). Leave empty to allow any site. Saved automatically.”
For sending submissions from your own server. The panel’s instructions: “Submit responses from your server with POST and the JSON body below. The backend must validate X-Form-Api-Key for this form before accepting the submission. API keys do not expire; generate a new key only to rotate or if the secret was lost.”
API key card:
- Before a key exists, click Generate API key. “Generate a key to authenticate REST submissions. Your backend verifies it on every request.”
- Once generated, the card shows a Key active badge and a Generate new key button. The secret appears masked with an eye icon to reveal it and a Copy button. “Full secret shown only here until you refresh or leave this page. After that you will see the last characters only (from the server).”
Endpoint, with a Copy URL button:
POST https://api-us.zoie.ai/api/v1/public/submitFormHeaders, with a Copy button:
Content-Type: application/json
X-Form-Api-Key: YOUR_API_KEYAfter you generate a key, the header block is filled in with the real key.
Request body has a Copy JSON button that copies a body template matching the form’s fields.
Choosing a method
| Method | Best for |
|---|---|
| Shareable Link | Campaigns, emails, QR codes, or any place where a hosted page is fine. |
| Embed Code | Your own website, when you want the form inline and styled by the builder. Lock it down with Allowed Domains. |
| REST API | Custom apps or third-party forms whose submissions you want to land in Zoie as leads. |
After publishing
Submissions arrive as leads in the business’s default group unless you attach the form to another group. See Lead capture. To stop entries, remove the embed code from your site; the pause toggles don’t take effect yet. See Abandoned form settings.