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

Parameters: get_publish_links
NameTypeDescription
form_id integer required integer Form id from list_forms.

Request

cURL
curl https://cotlet.dev/api/v1/123formbuilder/forms/1/publish-links \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("123formbuilder", "get_publish_links", {"form_id":1})
Node.js
const result = await cotlet.call('123formbuilder', 'get_publish_links', {"form_id":1});
CLI
cotlet call 123formbuilder get_publish_links --data '{"form_id":1}'

Example response

JSON

{
  "form_id": 5130021,
  "link": "https://form.123formbuilder.com/5130021/autumn-open-day",
  "embed_javascript": "<script>/* JavaScript embed code of the form */</script>"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.