Get publish links
The link to a form and its JavaScript embed code.
GET https://cotlet.dev/api/v1/123formbuilder/forms/{form_id}/publish-links
read
Reads the Publish section: the link to the form and the JavaScript code from the Embed form tab. The embed code stays valid when you edit the form later, because the page loads the current form. It returns text only and publishes nothing.
Parameters
| Name | Type | Description |
|---|---|---|
| form_id integer required | integer | Form id from list_forms. |
Request
curl https://cotlet.dev/api/v1/123formbuilder/forms/1/publish-links \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("123formbuilder", "get_publish_links", {"form_id":1}) const result = await cotlet.call('123formbuilder', 'get_publish_links', {"form_id":1}); cotlet call 123formbuilder get_publish_links --data '{"form_id":1}' Example response
{
"form_id": 5130021,
"link": "https://form.123formbuilder.com/5130021/autumn-open-day",
"embed_javascript": "<script>/* JavaScript embed code of the form */</script>"
}