/public/flowleads/forms/{key}
Get the form definition
Returns the form's fields (key, label, type text, email, tel, textarea, select or checkbox, whether required, options, maximum length), a fresh signed timestamp, the names of the hidden field and of the timestamp, the submit address and the display mode: inline or iframe (with Turnstile). An unknown or deactivated key answers with HTTP 404.
Public, no key
curl -X GET "https://api.flowsuite.one/public/flowleads/forms/FORM_KEY" \
-H "Accept: application/json"
<?php
$definition = json_decode(file_get_contents('https://api.flowsuite.one/public/flowleads/forms/FORM_KEY'), true);
const definition = await fetch('https://api.flowsuite.one/public/flowleads/forms/FORM_KEY')
.then((response) => response.json());
import requests
definition = requests.get('https://api.flowsuite.one/public/flowleads/forms/FORM_KEY').json()
{
"ok": true,
"form": {
"key": "FORM_KEY",
"mode": "inline",
"fields": [
{
"key": "name",
"label": "Name",
"type": "text",
"required": true,
"options": [],
"max_length": 500
},
{
"key": "email",
"label": "E-Mail",
"type": "email",
"required": true,
"options": [],
"max_length": 255
},
{
"key": "message",
"label": "Nachricht",
"type": "textarea",
"required": false,
"options": [],
"max_length": 5000
}
],
"token": "TIMESTAMP.SIGNATURE",
"honeypot": "homepage",
"token_field": "fl_ts",
"submit_url": "https://api.flowsuite.one/public/flowleads/forms/k3x9q2m7v1c8n4b6z0p5r2t7w9y1a3d5",
"page_url": "https://flowsuite.one/f/k3x9q2m7v1c8n4b6z0p5r2t7w9y1a3d5",
"iframe_url": "https://flowsuite.one/f/k3x9q2m7v1c8n4b6z0p5r2t7w9y1a3d5?embed=1",
"labels": {
"submit": "Absenden",
"sending": "Wird gesendet …",
"required": "Mit * markierte Felder sind Pflichtfelder.",
"choose": "Bitte wählen",
"error": "Die Anfrage konnte gerade nicht gesendet werden. Bitte versuchen Sie es später erneut."
}
}
}