Criar rascunho de formulário
Cria um formulário não publicado: título, campos (save_to diz qual campo do contato a resposta preenche), texto de agradecimento, uma tag para quem envia e uma automação que cada resposta inicia. publish_form o coloca no ar.
Escopo: forms:write
bearer forms:writeAutorizaçãoBearer <token>A chave de API de uma conta de serviço (sk_live_…, 600 requisições por minuto cada) ou um access token OAuth para o recurso /api/v1 (600 requisições por minuto por conexão).
Escopo: forms:write
Idempotency-Key?stringAté 200 letras, dígitos, - ou _. A primeira resposta a uma chave é repetida por 24 horas.
length <= 200application/json- body
title*stringThe form's name, in the person's language.
1 <= length <= 120description*|The line under the title on the public page; null for none.
fields*array<>1 <= items <= 20thanks*|What the page says once sent; null for the default.
tag*|A tag added to whoever sends it, found or created by name; null for none.
automation*|An existing automation that a submission starts, by name; null unless the person named one.
Feito.
application/json- response
id*stringcurl -X POST 'https://app.zaplin.com.br/api/v1/forms' \ -H 'Authorization: Bearer sk_live_...' \ -H 'Content-Type: application/json' \ -d '{ "title": "string", "description": "string", "fields": [ { "type": "short_text", "label": "string", "required": true, "save_to": "string", "options": [ "string" ] } ], "thanks": "string", "tag": "string", "automation": "string"}'{ "id": "string"}