Formulários
Formulários, a aparência e as respostas deles.
Valores dos exemplos
Digite uma vez e todos os exemplos desta página passam a usá-los. A chave de API fica só nesta página e nunca é guardada.
GET/v1/form-defaults
Com o que os novos formulários começam.
ListarEm caso de sucesso: 200.Permissão: Ler.
Exemplo
curl -X GET "https://api.firmado.app/v1/form-defaults" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/form-defaults", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/form-defaults",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/form-defaults");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/form-defaults")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/form-defaults", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/form-defaults"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/form-defaults");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PUT/v1/form-defaults
Altera com o que os novos formulários começam.
Atualizar/Em caso de sucesso: 200.Permissão: Atualizar.
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
fields | array of object | null | Sim | |
submitLabel | string | null | Não | |
successMessage | string | null | Não | |
redirectUrl | string (uri) | null | "" | Não | |
requireCaptcha | boolean | Sim | |
contactMode | "off" | "create_or_update" | "create_only" | Sim |
Resposta
18 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
contactMode | string | Sim |
fields | array of object | Sim |
fields[].defaultValue | null nos exemplos | Sim |
fields[].help | null nos exemplos | Sim |
fields[].key | string | Sim |
fields[].label | string | Sim |
fields[].mapTo | string | Sim |
fields[].max | null nos exemplos | Sim |
fields[].min | null nos exemplos | Sim |
fields[].options | array of any | Sim |
fields[].placeholder | null nos exemplos | Sim |
fields[].required | boolean | Sim |
fields[].type | string | Sim |
fields[].width | string | Sim |
redirectUrl | null nos exemplos | Sim |
requireCaptcha | boolean | Sim |
submitLabel | string | Sim |
successMessage | string | Sim |
Exemplo
curl -X PUT "https://api.firmado.app/v1/form-defaults" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}'const res = await fetch("https://api.firmado.app/v1/form-defaults", {
method: "PUT",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}),
})
const data = await res.json()import requests
res = requests.put(
"https://api.firmado.app/v1/form-defaults",
headers={"X-Api-Key": "fmd_..."},
json={
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…",
},
],
"requireCaptcha": True,
"contactMode": "off",
"submitLabel": "…",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/form-defaults");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/form-defaults")
req = Net::HTTP::Put.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}`)
req, _ := http.NewRequest("PUT", "https://api.firmado.app/v1/form-defaults", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/form-defaults"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PUT", HttpRequest.BodyPublishers.ofString("""
{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://api.firmado.app/v1/form-defaults");
request.Content = new StringContent(""""
{
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
],
"requireCaptcha": true,
"contactMode": "off",
"submitLabel": "…"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"fields": [
{
"key": "…",
"max": null,
"min": null,
"help": null,
"type": "…",
"label": "…",
"mapTo": "…",
"width": "…",
"options": [],
"required": true,
"placeholder": null,
"defaultValue": null
}
],
"submitLabel": "…",
"successMessage": "…",
"redirectUrl": null,
"requireCaptcha": true,
"contactMode": "…"
}GET/v1/forms
Lista os formulários.
ListarEm caso de sucesso: 200.Permissão: Ler.
Resposta
43 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
[].actions | object | Sim |
[].actions.listIds | array of string (uuid) | Sim |
[].actions.tagIds | array of string (uuid) | Sim |
[].actions.webhook | object | Sim |
[].actions.webhook.enabled | boolean | Sim |
[].actions.webhook.url | string | Sim |
[].active | boolean | Sim |
[].contactMode | string | Sim |
[].contactOwnerId | string (uuid) | Sim |
[].createdAt | string (date-time) | Sim |
[].createdBy | string (uuid) | Sim |
[].description | null nos exemplos | Sim |
[].embedScriptUrl | string (uri) | Sim |
[].fields | array of object | Sim |
[].fields[].defaultValue | null nos exemplos | Sim |
[].fields[].help | null nos exemplos | Sim |
[].fields[].key | string | Sim |
[].fields[].label | string | Sim |
[].fields[].mapTo | string | Sim |
[].fields[].max | null nos exemplos | Sim |
[].fields[].min | null nos exemplos | Sim |
[].fields[].options | array of any | Sim |
[].fields[].placeholder | null nos exemplos | Sim |
[].fields[].required | boolean | Sim |
[].fields[].type | string | Sim |
[].fields[].width | string | Sim |
[].id | string (uuid) | Sim |
[].lastSubmissionAt | string (date-time) | Sim |
[].name | string | Sim |
[].notifyMemberIds | array of any | Sim |
[].publicId | string | Sim |
[].redirectUrl | null nos exemplos | Sim |
[].requireCaptcha | boolean | Sim |
[].submissionCount | integer | Sim |
[].submitLabel | null nos exemplos | Sim |
[].successMessage | null nos exemplos | Sim |
[].templateId | null nos exemplos | Sim |
[].theme | object | Sim |
[].title | null nos exemplos | Sim |
[].updatedAt | string (date-time) | Sim |
[].updatedBy | string (uuid) | Sim |
[].url | string (uri) | Sim |
[].webhookSecret | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/forms" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/forms", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/forms");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
[
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"publicId": "…",
"name": "Ana Lima",
"title": null,
"description": null,
"fields": [
{}
],
"submitLabel": null,
"successMessage": null,
"redirectUrl": null,
"requireCaptcha": true,
"contactMode": "…",
"contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"actions": {
"tagIds": [],
"listIds": [],
"webhook": {}
},
"webhookSecret": "…",
"notifyMemberIds": [],
"templateId": null,
"theme": {},
"active": true,
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"updatedAt": "2026-11-21T14:00:00.000Z",
"url": "https://example.com",
"embedScriptUrl": "https://example.com",
"submissionCount": 1,
"lastSubmissionAt": "2026-11-21T14:00:00.000Z"
}
]POST/v1/forms
Cria um formulário.
CriarEm caso de sucesso: 201.Permissão: Criar.
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
name | string | Sim | min length 1 · max length 120 |
title | string | null | Não | |
description | string | null | Não | |
fields | array of object | Não | max items 50 |
fields[].key | string | Sim | pattern ^[a-z][a-z0-9_]{0,39}$ |
fields[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden" | Sim | |
fields[].label | string | Sim | min length 1 · max length 200 |
fields[].placeholder | string | null | Não | |
fields[].help | string | null | Não | |
fields[].required | boolean | Não | default false |
fields[].options | array of string | Não | max items 100 |
fields[].min | number | null | Não | |
fields[].max | number | null | Não | |
fields[].defaultValue | string | null | Não | |
fields[].width | "full" | "half" | Não | default "full" |
fields[].mapTo | "firstName" | "lastName" | "fullName" | "email" | "phone" | "jobTitle" | "department" | "birthday" | "address" | "city" | "state" | "postalCode" | "country" | "marketingOptIn" | string | null | Não | |
submitLabel | string | null | Não | |
successMessage | string | null | Não | |
redirectUrl | string (uri) | null | "" | Não | |
requireCaptcha | boolean | Não | |
contactMode | "off" | "create_or_update" | "create_only" | Não | |
contactOwnerId | string | null | Não | |
actions | object | Não | |
actions.listIds | array of string (uuid) | Não | max items 20 |
actions.tagIds | array of string (uuid) | Não | max items 50 |
actions.webhook | object | Não | |
actions.webhook.enabled | boolean | Não | default false |
actions.webhook.url | string (uri) | "" | Não | default "" |
notifyMemberIds | array of string | Não | max items 50 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Não | |
theme | object | Não | |
theme.primaryColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Não | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Não | |
active | boolean | Não | default true |
Resposta
43 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
actions | object | Sim |
actions.listIds | array of string (uuid) | Sim |
actions.tagIds | array of string (uuid) | Sim |
actions.webhook | object | Sim |
actions.webhook.enabled | boolean | Sim |
actions.webhook.url | string | Sim |
active | boolean | Sim |
contactMode | string | Sim |
contactOwnerId | string (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
embedScriptUrl | string (uri) | Sim |
fields | array of object | Sim |
fields[].defaultValue | string | null | Sim |
fields[].help | null nos exemplos | Sim |
fields[].key | string | Sim |
fields[].label | string | Sim |
fields[].mapTo | string | null | Sim |
fields[].max | integer | null | Sim |
fields[].min | integer | null | Sim |
fields[].options | array of string | Sim |
fields[].placeholder | null nos exemplos | Sim |
fields[].required | boolean | Sim |
fields[].type | string | Sim |
fields[].width | string | Sim |
id | string (uuid) | Sim |
lastSubmissionAt | null nos exemplos | Sim |
name | string | Sim |
notifyMemberIds | array of string (uuid) | Sim |
publicId | string | Sim |
redirectUrl | string | null (uri) | Sim |
requireCaptcha | boolean | Sim |
submissionCount | integer | Sim |
submitLabel | string | null | Sim |
successMessage | string | null | Sim |
templateId | null nos exemplos | Sim |
theme | object | Sim |
title | string | null | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
webhookSecret | string | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/forms" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}'const res = await fetch("https://api.firmado.app/v1/forms", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/forms",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/forms", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/forms");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (201), com valores de exemplo:
{
"actions": {
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"webhook": {
"enabled": true,
"url": "https://example.com"
}
},
"active": true,
"contactMode": "…",
"contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"embedScriptUrl": "https://example.com",
"fields": [
{
"defaultValue": "…",
"help": null,
"key": "…",
"label": "…",
"mapTo": "…",
"max": 1,
"min": 1,
"options": [],
"placeholder": null,
"required": true,
"type": "…",
"width": "…"
}
],
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"lastSubmissionAt": null,
"name": "Ana Lima",
"notifyMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"publicId": "…",
"redirectUrl": "https://example.com",
"requireCaptcha": true,
"submissionCount": 1,
"submitLabel": "…",
"successMessage": "…",
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"webhookSecret": "…"
}DELETE/v1/forms/{id}
Exclui um formulário e suas respostas.
ExcluirEm caso de sucesso: 204.Permissão: Excluir.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Exemplo
curl -X DELETE "https://api.firmado.app/v1/forms/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/forms/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/forms/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/forms/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/forms/{id}
Retorna um formulário com suas perguntas e configurações.
Ver umEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
43 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
actions | object | Sim |
actions.listIds | array of string (uuid) | Sim |
actions.tagIds | array of string (uuid) | Sim |
actions.webhook | object | Sim |
actions.webhook.enabled | boolean | Sim |
actions.webhook.url | string | Sim |
active | boolean | Sim |
contactMode | string | Sim |
contactOwnerId | string (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
embedScriptUrl | string (uri) | Sim |
fields | array of object | Sim |
fields[].defaultValue | string | null | Sim |
fields[].help | null nos exemplos | Sim |
fields[].key | string | Sim |
fields[].label | string | Sim |
fields[].mapTo | string | null | Sim |
fields[].max | integer | null | Sim |
fields[].min | integer | null | Sim |
fields[].options | array of string | Sim |
fields[].placeholder | null nos exemplos | Sim |
fields[].required | boolean | Sim |
fields[].type | string | Sim |
fields[].width | string | Sim |
id | string (uuid) | Sim |
lastSubmissionAt | string (date-time) | Sim |
name | string | Sim |
notifyMemberIds | array of string (uuid) | Sim |
publicId | string | Sim |
redirectUrl | string | null (uri) | Sim |
requireCaptcha | boolean | Sim |
submissionCount | integer | Sim |
submitLabel | null nos exemplos | Sim |
successMessage | null nos exemplos | Sim |
templateId | null nos exemplos | Sim |
theme | object | Sim |
title | string | null | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
webhookSecret | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/forms/{id}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/forms/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"actions": {
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"webhook": {
"enabled": true,
"url": "https://example.com"
}
},
"active": true,
"contactMode": "…",
"contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"embedScriptUrl": "https://example.com",
"fields": [
{
"defaultValue": "…",
"help": null,
"key": "…",
"label": "…",
"mapTo": "…",
"max": 1,
"min": 1,
"options": [],
"placeholder": null,
"required": true,
"type": "…",
"width": "…"
}
],
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"lastSubmissionAt": "2026-11-21T14:00:00.000Z",
"name": "Ana Lima",
"notifyMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"publicId": "…",
"redirectUrl": "https://example.com",
"requireCaptcha": true,
"submissionCount": 1,
"submitLabel": null,
"successMessage": null,
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"webhookSecret": "…"
}PATCH/v1/forms/{id}
Altera um formulário: perguntas, visual e o que acontece depois da resposta.
AtualizarEm caso de sucesso: 200.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
name | string | Não | min length 1 · max length 120 |
title | string | null | Não | |
description | string | null | Não | |
fields | array of object | Não | max items 50 |
fields[].key | string | Sim | pattern ^[a-z][a-z0-9_]{0,39}$ |
fields[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden" | Sim | |
fields[].label | string | Sim | min length 1 · max length 200 |
fields[].placeholder | string | null | Não | |
fields[].help | string | null | Não | |
fields[].required | boolean | Não | default false |
fields[].options | array of string | Não | max items 100 |
fields[].min | number | null | Não | |
fields[].max | number | null | Não | |
fields[].defaultValue | string | null | Não | |
fields[].width | "full" | "half" | Não | default "full" |
fields[].mapTo | "firstName" | "lastName" | "fullName" | "email" | "phone" | "jobTitle" | "department" | "birthday" | "address" | "city" | "state" | "postalCode" | "country" | "marketingOptIn" | string | null | Não | |
submitLabel | string | null | Não | |
successMessage | string | null | Não | |
redirectUrl | string (uri) | null | "" | Não | |
requireCaptcha | boolean | Não | |
contactMode | "off" | "create_or_update" | "create_only" | Não | |
contactOwnerId | string | null | Não | |
actions | object | Não | |
actions.listIds | array of string (uuid) | Não | max items 20 |
actions.tagIds | array of string (uuid) | Não | max items 50 |
actions.webhook | object | Não | |
actions.webhook.enabled | boolean | Não | default false |
actions.webhook.url | string (uri) | "" | Não | default "" |
notifyMemberIds | array of string | Não | max items 50 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Não | |
theme | object | Não | |
theme.primaryColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Não | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Não | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Não | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Não | |
active | boolean | Não |
Resposta
43 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
actions | object | Sim |
actions.listIds | array of string (uuid) | Sim |
actions.tagIds | array of string (uuid) | Sim |
actions.webhook | object | Sim |
actions.webhook.enabled | boolean | Sim |
actions.webhook.url | string | Sim |
active | boolean | Sim |
contactMode | string | Sim |
contactOwnerId | string (uuid) | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
description | null nos exemplos | Sim |
embedScriptUrl | string (uri) | Sim |
fields | array of object | Sim |
fields[].defaultValue | string | null | Sim |
fields[].help | null nos exemplos | Sim |
fields[].key | string | Sim |
fields[].label | string | Sim |
fields[].mapTo | string | null | Sim |
fields[].max | integer | null | Sim |
fields[].min | integer | null | Sim |
fields[].options | array of string | Sim |
fields[].placeholder | null nos exemplos | Sim |
fields[].required | boolean | Sim |
fields[].type | string | Sim |
fields[].width | string | Sim |
id | string (uuid) | Sim |
lastSubmissionAt | string | null (date-time) | Sim |
name | string | Sim |
notifyMemberIds | array of string (uuid) | Sim |
publicId | string | Sim |
redirectUrl | string | null (uri) | Sim |
requireCaptcha | boolean | Sim |
submissionCount | integer | Sim |
submitLabel | null nos exemplos | Sim |
successMessage | null nos exemplos | Sim |
templateId | null nos exemplos | Sim |
theme | object | Sim |
title | string | null | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
webhookSecret | string | Sim |
Exemplo
curl -X PATCH "https://api.firmado.app/v1/forms/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}'const res = await fetch("https://api.firmado.app/v1/forms/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/forms/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}")
req = Net::HTTP::Patch.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/forms/{id}", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("PATCH"), "https://api.firmado.app/v1/forms/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"fields": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"actions": {
"listIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"tagIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"webhook": {
"enabled": true,
"url": "https://example.com"
}
},
"active": true,
"contactMode": "…",
"contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"description": null,
"embedScriptUrl": "https://example.com",
"fields": [
{
"defaultValue": "…",
"help": null,
"key": "…",
"label": "…",
"mapTo": "…",
"max": 1,
"min": 1,
"options": [],
"placeholder": null,
"required": true,
"type": "…",
"width": "…"
}
],
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"lastSubmissionAt": "2026-11-21T14:00:00.000Z",
"name": "Ana Lima",
"notifyMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"publicId": "…",
"redirectUrl": "https://example.com",
"requireCaptcha": true,
"submissionCount": 1,
"submitLabel": null,
"successMessage": null,
"templateId": null,
"theme": {},
"title": "…",
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com",
"webhookSecret": "…"
}GET/v1/forms/{id}/submissions
Lista as respostas de um formulário.
Ler/{id}/submissionsEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
page | integer | Não | min 1 · default 1 |
pageSize | integer | Não | min 1 · max 100 · default 25 |
Resposta
20 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
data | array of object | Sim |
data[].answers | array of object | Sim |
data[].answers[].key | string | Sim |
data[].answers[].label | string | Sim |
data[].answers[].type | string | Sim |
data[].answers[].value | array | boolean | integer | string | null | Sim |
data[].contact | object | null | Sim |
data[].contact.id | string (uuid) | Sim |
data[].contact.name | string | Sim |
data[].contactId | string | null (uuid) | Sim |
data[].createdAt | string (date-time) | Sim |
data[].formId | string (uuid) | Sim |
data[].id | string (uuid) | Sim |
data[].pageUrl | string | null (uri) | Sim |
data[].source | string | Sim |
data[].webhookError | null nos exemplos | Sim |
data[].webhookStatus | integer | null | Sim |
page | integer | Sim |
pageSize | integer | Sim |
total | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/{id}/submissions",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}/submissions")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/forms/{id}/submissions", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}/submissions"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/forms/{id}/submissions");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"answers": [],
"source": "…",
"pageUrl": "https://example.com",
"webhookStatus": 1,
"webhookError": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"contact": {}
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/forms/{id}/submissions
Envia o formulário pelos sistemas da própria organização, como um visitante faria (Pro).
Criar/{id}/submissionsEm caso de sucesso: 201.Permissão: Criar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
answers | object of any | Sim |
Resposta
2 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
contactId | string (uuid) | Sim |
id | string (uuid) | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/forms/{id}/submissions" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"answers": {}
}'const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"answers": {}
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/forms/{id}/submissions",
headers={"X-Api-Key": "fmd_..."},
json={
"answers": {},
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"answers": {}
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}/submissions")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"answers": {}
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"answers": {}
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/forms/{id}/submissions", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}/submissions"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"answers": {}
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/forms/{id}/submissions");
request.Content = new StringContent(""""
{
"answers": {}
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (201), com valores de exemplo:
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}DELETE/v1/forms/{id}/submissions/{submissionId}
Exclui uma resposta.
Excluir/{id}/submissions/{submissionId}Em caso de sucesso: 204.Permissão: Excluir.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim | |
submissionId | string | Sim |
Exemplo
curl -X DELETE "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}", {
method: "DELETE",
headers: { "X-Api-Key": "fmd_..." },
})
if (!res.ok) throw new Error(await res.text())import requests
res = requests.delete(
"https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}")
req = Net::HTTP::Delete.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }req, _ := http.NewRequest("DELETE", "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}"))
.header("X-Api-Key", "fmd_...")
.method("DELETE", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/forms/{id}/submissions/{submissionId}
Retorna uma resposta com seus valores.
Ler/{id}/submissions/{submissionId}Em caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim | |
submissionId | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/forms/{id}/submissions/export
Baixa as respostas de um formulário em CSV.
Ler/{id}/submissions/exportEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions/export" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/{id}/submissions/export", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/{id}/submissions/export",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/submissions/export");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}/submissions/export")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/forms/{id}/submissions/export", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}/submissions/export"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/forms/{id}/submissions/export");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/forms/{id}/webhook/test
Envia uma resposta inventada ao webhook do formulário e diz como foi.
Atualizar/{id}/webhook/testEm caso de sucesso: 200.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Corpo
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
url | string (uri) | Não | max length 2000 |
Resposta
2 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
error | null nos exemplos | Sim |
status | integer | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/forms/{id}/webhook/test" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'const res = await fetch("https://api.firmado.app/v1/forms/{id}/webhook/test", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"url": "https://example.com"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/forms/{id}/webhook/test",
headers={"X-Api-Key": "fmd_..."},
json={
"url": "https://example.com",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/{id}/webhook/test");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"url": "https://example.com"
}
JSON,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/{id}/webhook/test")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"url": "https://example.com"
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)body := strings.NewReader(`{
"url": "https://example.com"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/forms/{id}/webhook/test", body)
req.Header.Set("X-Api-Key", "fmd_...")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/{id}/webhook/test"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"url": "https://example.com"
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://api.firmado.app/v1/forms/{id}/webhook/test");
request.Content = new StringContent(""""
{
"url": "https://example.com"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"status": 1,
"error": null
}GET/v1/forms/look
O visual de que parte a prévia de um formulário; não salva nada.
Ler/lookEm caso de sucesso: 200.Permissão: Ler.
Parâmetros da consulta
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
templateId | "classic" | "modern" | "minimal" | "bold" | Não |
Resposta
12 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
organization | object | Sim |
organization.language | string | Sim |
organization.name | string | Sim |
templateId | string | Sim |
theme | object | Sim |
theme.accentColor | string | Sim |
theme.backgroundColor | string | Sim |
theme.bodyFont | string | Sim |
theme.cornerRadius | string | Sim |
theme.headingFont | string | Sim |
theme.primaryColor | string | Sim |
theme.textColor | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/look" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/forms/look", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/forms/look",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/forms/look");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_..."],
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);require "net/http"
require "json"
uri = URI("https://api.firmado.app/v1/forms/look")
req = Net::HTTP::Get.new(uri)
req["X-Api-Key"] = "fmd_..."
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
data = JSON.parse(res.body)req, _ := http.NewRequest("GET", "https://api.firmado.app/v1/forms/look", nil)
req.Header.Set("X-Api-Key", "fmd_...")
res, err := http.DefaultClient.Do(req)var request = HttpRequest.newBuilder(URI.create("https://api.firmado.app/v1/forms/look"))
.header("X-Api-Key", "fmd_...")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "fmd_...");
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.firmado.app/v1/forms/look");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"organization": {
"name": "Ana Lima",
"language": "…"
},
"templateId": "…",
"theme": {
"primaryColor": "…",
"accentColor": "…",
"backgroundColor": "…",
"textColor": "…",
"headingFont": "…",
"bodyFont": "…",
"cornerRadius": "…"
}
}Eventos de webhook
Mudanças desta funcionalidade que os webhooks podem enviar.
form.createdCriarform.updatedAtualizarform.deletedExcluirform.submittedCriarform.submission_deletedExcluir