/public/flowleads/forms/{key}
Buscar a definição do formulário
Retorna os campos do formulário (chave, rótulo, tipo text, email, tel, textarea, select ou checkbox, obrigatoriedade, opções, tamanho máximo), um carimbo de tempo assinado novo, os nomes do campo oculto e do carimbo de tempo, o endereço de envio e o modo de exibição: inline ou iframe (com Turnstile). Uma chave desconhecida ou desativada responde com HTTP 404.
Público, sem chave
curl -X GET "https://api.flowsuite.one/public/flowleads/forms/CHAVE_DO_FORMULARIO" \
-H "Accept: application/json"
<?php
$definition = json_decode(file_get_contents('https://api.flowsuite.one/public/flowleads/forms/CHAVE_DO_FORMULARIO'), true);
const definition = await fetch('https://api.flowsuite.one/public/flowleads/forms/CHAVE_DO_FORMULARIO')
.then((response) => response.json());
import requests
definition = requests.get('https://api.flowsuite.one/public/flowleads/forms/CHAVE_DO_FORMULARIO').json()
{
"ok": true,
"form": {
"key": "CHAVE_DO_FORMULARIO",
"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.ASSINATURA",
"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."
}
}
}