Pesquisas
Pesquisas de NPS e satisfação, convites e respostas.
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/surveys
Lista as pesquisas.
ListarEm caso de sucesso: 200.Permissão: Ler.
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/surveys",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys");
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/surveys")
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/surveys", 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/surveys"))
.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/surveys");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/surveys
Cria uma pesquisa.
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 | |
questions | array of object | Não | max items 50 |
questions[].key | string | Sim | pattern ^[a-z][a-z0-9_]{0,39}$ |
questions[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps" | Sim | |
questions[].label | string | Sim | min length 1 · max length 500 |
questions[].placeholder | string | null | Não | |
questions[].help | string | null | Não | |
questions[].required | boolean | Não | default false |
questions[].options | array of string | Não | max items 100 |
questions[].min | number | null | Não | |
questions[].max | number | null | Não | |
questions[].defaultValue | string | null | Não | |
questions[].width | "full" | "half" | Não | default "full" |
submitLabel | string | null | Não | |
successMessage | string | null | Não | |
status | "draft" | "active" | "closed" | Não | default "draft" |
anonymous | boolean | Não | default false |
singleResponse | boolean | Não | default true |
responseWindowDays | integer | null | Não | |
openLink | boolean | Não | default false |
closesAt | string (date-time) | null | Não | |
delivery | object | Não | |
delivery.email | boolean | Não | default true |
delivery.whatsapp | object | Não | |
delivery.whatsapp.enabled | boolean | Não | default false |
delivery.whatsapp.connectionId | string (uuid) | null | Não | |
delivery.whatsapp.templateName | string | null | Não | |
delivery.whatsapp.language | string | null | Não | |
delivery.whatsapp.params | object of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline" | Não | |
delivery.reminderDaysBefore | integer | null | Não | |
delivery.message | string | null | Não | |
triggers | object | Não | |
triggers.lists | array of object | Não | max items 10 |
triggers.lists[].listId | string (uuid) | Sim | |
triggers.events | array of object | Não | max items 10 |
triggers.events[].type | "deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed" | Sim | |
triggers.events[].formId | string (uuid) | null | Não | |
triggers.events[].delayHours | integer | Não | min 0 · max 1440 · default 0 |
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 |
Resposta
59 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
activatedAt | string | null (date-time) | Sim |
anonymous | boolean | Sim |
closesAt | null nos exemplos | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
delivery | object | Sim |
delivery.email | boolean | Sim |
delivery.message | null nos exemplos | Sim |
delivery.reminderDaysBefore | null nos exemplos | Sim |
delivery.whatsapp | object | Sim |
delivery.whatsapp.connectionId | null nos exemplos | Sim |
delivery.whatsapp.enabled | boolean | Sim |
delivery.whatsapp.language | null nos exemplos | Sim |
delivery.whatsapp.params | object | Sim |
delivery.whatsapp.templateName | null nos exemplos | Sim |
description | null nos exemplos | Sim |
id | string (uuid) | Sim |
name | string | Sim |
notifyMemberIds | array of string (uuid) | Sim |
openLink | boolean | Sim |
publicId | string | Sim |
questions | array of object | Sim |
questions[].defaultValue | null nos exemplos | Sim |
questions[].help | null nos exemplos | Sim |
questions[].key | string | Sim |
questions[].label | string | Sim |
questions[].max | integer | null | Sim |
questions[].min | null nos exemplos | Sim |
questions[].options | array of string | Sim |
questions[].placeholder | null nos exemplos | Sim |
questions[].required | boolean | Sim |
questions[].type | string | Sim |
questions[].width | string | Sim |
responseWindowDays | integer | null | Sim |
singleResponse | boolean | Sim |
stats | object | Sim |
stats.answered | integer | Sim |
stats.expired | integer | Sim |
stats.invited | integer | Sim |
stats.lastResponseAt | null nos exemplos | Sim |
stats.pending | integer | Sim |
stats.responseRate | null nos exemplos | Sim |
stats.responses | integer | Sim |
status | string | Sim |
submitLabel | null nos exemplos | Sim |
successMessage | null nos exemplos | Sim |
templateId | null nos exemplos | Sim |
theme | object | Sim |
title | string | null | Sim |
triggers | object | Sim |
triggers.events | array of object | Sim |
triggers.events[].delayHours | integer | Sim |
triggers.events[].formId | string (uuid) | Sim |
triggers.events[].type | string | Sim |
triggers.lists | array of object | Sim |
triggers.lists[].listId | string (uuid) | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/surveys" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}'const res = await fetch("https://api.firmado.app/v1/surveys", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/surveys",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys");
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": "…",
"questions": [
{
"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/surveys")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"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": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/surveys", 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/surveys"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"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/surveys");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (201), com valores de exemplo:
{
"activatedAt": "2026-11-21T14:00:00.000Z",
"anonymous": true,
"closesAt": null,
"createdAt": "2026-11-21T14:00:00.000Z",
"createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"delivery": {
"email": true,
"message": null,
"reminderDaysBefore": null,
"whatsapp": {
"connectionId": null,
"enabled": true,
"language": null,
"params": {},
"templateName": null
}
},
"description": null,
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"name": "Ana Lima",
"notifyMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"openLink": true,
"publicId": "…",
"questions": [
{
"defaultValue": null,
"help": null,
"key": "…",
"label": "…",
"max": 1,
"min": null,
"options": [],
"placeholder": null,
"required": true,
"type": "…",
"width": "…"
}
],
"responseWindowDays": 1,
"singleResponse": true,
"stats": {
"answered": 1,
"expired": 1,
"invited": 1,
"lastResponseAt": null,
"pending": 1,
"responseRate": null,
"responses": 1
},
"status": "…",
"submitLabel": null,
"successMessage": null,
"templateId": null,
"theme": {},
"title": "…",
"triggers": {
"events": [
{}
],
"lists": [
{}
]
},
"updatedAt": "2026-11-21T14:00:00.000Z",
"updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"url": "https://example.com"
}DELETE/v1/surveys/{id}
Exclui uma pesquisa 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/surveys/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{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/surveys/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{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/surveys/{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/surveys/{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/surveys/{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/surveys/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/surveys/{id}
Retorna uma pesquisa 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 |
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys/{id}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/surveys/{id}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{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/surveys/{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/surveys/{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/surveys/{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/surveys/{id}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();PATCH/v1/surveys/{id}
Altera uma pesquisa: perguntas, visual, gatilhos e status.
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 | |
questions | array of object | Não | max items 50 |
questions[].key | string | Sim | pattern ^[a-z][a-z0-9_]{0,39}$ |
questions[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps" | Sim | |
questions[].label | string | Sim | min length 1 · max length 500 |
questions[].placeholder | string | null | Não | |
questions[].help | string | null | Não | |
questions[].required | boolean | Não | default false |
questions[].options | array of string | Não | max items 100 |
questions[].min | number | null | Não | |
questions[].max | number | null | Não | |
questions[].defaultValue | string | null | Não | |
questions[].width | "full" | "half" | Não | default "full" |
submitLabel | string | null | Não | |
successMessage | string | null | Não | |
status | "draft" | "active" | "closed" | Não | |
anonymous | boolean | Não | |
singleResponse | boolean | Não | |
responseWindowDays | integer | null | Não | |
openLink | boolean | Não | |
closesAt | string (date-time) | null | Não | |
delivery | object | Não | |
delivery.email | boolean | Não | default true |
delivery.whatsapp | object | Não | |
delivery.whatsapp.enabled | boolean | Não | default false |
delivery.whatsapp.connectionId | string (uuid) | null | Não | |
delivery.whatsapp.templateName | string | null | Não | |
delivery.whatsapp.language | string | null | Não | |
delivery.whatsapp.params | object of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline" | Não | |
delivery.reminderDaysBefore | integer | null | Não | |
delivery.message | string | null | Não | |
triggers | object | Não | |
triggers.lists | array of object | Não | max items 10 |
triggers.lists[].listId | string (uuid) | Sim | |
triggers.events | array of object | Não | max items 10 |
triggers.events[].type | "deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed" | Sim | |
triggers.events[].formId | string (uuid) | null | Não | |
triggers.events[].delayHours | integer | Não | min 0 · max 1440 · default 0 |
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 |
Resposta
55 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
activatedAt | string (date-time) | Sim |
anonymous | boolean | Sim |
closesAt | null nos exemplos | Sim |
createdAt | string (date-time) | Sim |
createdBy | string (uuid) | Sim |
delivery | object | Sim |
delivery.email | boolean | Sim |
delivery.message | null nos exemplos | Sim |
delivery.reminderDaysBefore | null nos exemplos | Sim |
delivery.whatsapp | object | Sim |
delivery.whatsapp.connectionId | null nos exemplos | Sim |
delivery.whatsapp.enabled | boolean | Sim |
delivery.whatsapp.language | null nos exemplos | Sim |
delivery.whatsapp.params | object | Sim |
delivery.whatsapp.templateName | null nos exemplos | Sim |
description | null nos exemplos | Sim |
id | string (uuid) | Sim |
name | string | Sim |
notifyMemberIds | array of string (uuid) | Sim |
openLink | boolean | Sim |
publicId | string | Sim |
questions | array of object | Sim |
questions[].defaultValue | null nos exemplos | Sim |
questions[].help | null nos exemplos | Sim |
questions[].key | string | Sim |
questions[].label | string | Sim |
questions[].max | integer | null | Sim |
questions[].min | null nos exemplos | Sim |
questions[].options | array of string | Sim |
questions[].placeholder | null nos exemplos | Sim |
questions[].required | boolean | Sim |
questions[].type | string | Sim |
questions[].width | string | Sim |
responseWindowDays | integer | null | Sim |
singleResponse | boolean | Sim |
stats | object | Sim |
stats.answered | integer | Sim |
stats.expired | integer | Sim |
stats.invited | integer | Sim |
stats.lastResponseAt | string | null (date-time) | Sim |
stats.pending | integer | Sim |
stats.responseRate | null nos exemplos | Sim |
stats.responses | integer | Sim |
status | string | Sim |
submitLabel | null nos exemplos | Sim |
successMessage | null nos exemplos | Sim |
templateId | null nos exemplos | Sim |
theme | object | Sim |
title | string | null | Sim |
triggers | object | Sim |
triggers.events | array of any | Sim |
triggers.lists | array of any | Sim |
updatedAt | string (date-time) | Sim |
updatedBy | string (uuid) | Sim |
url | string (uri) | Sim |
Exemplo
curl -X PATCH "https://api.firmado.app/v1/surveys/{id}" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}'const res = await fetch("https://api.firmado.app/v1/surveys/{id}", {
method: "PATCH",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}),
})
const data = await res.json()import requests
res = requests.patch(
"https://api.firmado.app/v1/surveys/{id}",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…",
},
],
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{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": "…",
"questions": [
{
"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/surveys/{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": "…",
"questions": [
{
"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": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}`)
req, _ := http.NewRequest("PATCH", "https://api.firmado.app/v1/surveys/{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/surveys/{id}"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("PATCH", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"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/surveys/{id}");
request.Content = new StringContent(""""
{
"name": "Ana Lima",
"title": "…",
"description": "…",
"questions": [
{
"key": "…",
"type": "text",
"label": "…",
"placeholder": "…"
}
]
}
"""", Encoding.UTF8, "application/json");
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": "…",
"description": null,
"questions": [
{
"key": "…",
"max": 1,
"min": null,
"help": null,
"type": "…",
"label": "…",
"width": "…",
"options": [],
"required": true,
"placeholder": null,
"defaultValue": null
}
],
"submitLabel": null,
"successMessage": null,
"status": "…",
"anonymous": true,
"singleResponse": true,
"responseWindowDays": 1,
"openLink": true,
"closesAt": null,
"delivery": {
"email": true,
"message": null,
"whatsapp": {
"params": {},
"enabled": true,
"language": null,
"connectionId": null,
"templateName": null
},
"reminderDaysBefore": null
},
"triggers": {
"lists": [],
"events": []
},
"notifyMemberIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"templateId": null,
"theme": {},
"activatedAt": "2026-11-21T14:00:00.000Z",
"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",
"stats": {
"invited": 1,
"answered": 1,
"expired": 1,
"pending": 1,
"responses": 1,
"lastResponseAt": "2026-11-21T14:00:00.000Z",
"responseRate": null
}
}POST/v1/surveys/{id}/duplicate
Copia uma pesquisa.
Criar/{id}/duplicateEm 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 |
|---|---|---|---|
name | string | Sim | min length 1 · max length 120 |
Exemplo
curl -X POST "https://api.firmado.app/v1/surveys/{id}/duplicate" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Ana Lima"
}'const res = await fetch("https://api.firmado.app/v1/surveys/{id}/duplicate", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Ana Lima"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/surveys/{id}/duplicate",
headers={"X-Api-Key": "fmd_..."},
json={
"name": "Ana Lima",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/duplicate");
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"
}
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/surveys/{id}/duplicate")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"name": "Ana Lima"
}
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"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/surveys/{id}/duplicate", 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/surveys/{id}/duplicate"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"name": "Ana Lima"
}
"""))
.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/surveys/{id}/duplicate");
request.Content = new StringContent(""""
{
"name": "Ana Lima"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/surveys/{id}/recipients
Os contatos convidados para uma pesquisa, e se responderam.
Ler/{id}/recipientsEm 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 |
status | "pending" | "answered" | "expired" | Não | |
q | string | Não | max length 200 |
Resposta
27 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
data | array of object | Sim |
data[].addedBy | string | null (uuid) | Sim |
data[].contact | object | Sim |
data[].contact.email | string (email) | Sim |
data[].contact.id | string (uuid) | Sim |
data[].contact.name | string | Sim |
data[].contact.phone | null nos exemplos | Sim |
data[].contactId | string (uuid) | Sim |
data[].expiresAt | string | null (date-time) | Sim |
data[].id | string (uuid) | Sim |
data[].invitedAt | string (date-time) | Sim |
data[].notifiedAt | string | null (date-time) | Sim |
data[].notifiedVia | array of string | Sim |
data[].notifyAt | string | null (date-time) | Sim |
data[].notifyError | null nos exemplos | Sim |
data[].openedAt | null nos exemplos | Sim |
data[].remindedAt | null nos exemplos | Sim |
data[].respondedAt | string | null (date-time) | Sim |
data[].responseCount | integer | Sim |
data[].source | string | Sim |
data[].sourceRef | string | null | Sim |
data[].status | string | Sim |
data[].surveyId | string (uuid) | Sim |
data[].url | string (uri) | Sim |
page | integer | Sim |
pageSize | integer | Sim |
total | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys/{id}/recipients" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}/recipients", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/surveys/{id}/recipients",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/recipients");
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/surveys/{id}/recipients")
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/surveys/{id}/recipients", 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/surveys/{id}/recipients"))
.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/surveys/{id}/recipients");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"surveyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"source": "…",
"sourceRef": "…",
"invitedAt": "2026-11-21T14:00:00.000Z",
"notifyAt": "2026-11-21T14:00:00.000Z",
"expiresAt": "2026-11-21T14:00:00.000Z",
"notifiedAt": "2026-11-21T14:00:00.000Z",
"notifiedVia": [],
"notifyError": null,
"remindedAt": null,
"openedAt": null,
"respondedAt": "2026-11-21T14:00:00.000Z",
"responseCount": 1,
"addedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"status": "…",
"url": "https://example.com",
"contact": {}
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/surveys/{id}/recipients
Convida contatos, por id ou todos os de uma lista agora.
Atualizar/{id}/recipientsEm 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 |
|---|---|---|---|
contactIds | array of string (uuid) | Não | max items 1000 |
listId | string (uuid) | Não |
Resposta
3 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
invited | integer | Sim |
limited | integer | Sim |
skipped | integer | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/surveys/{id}/recipients" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'const res = await fetch("https://api.firmado.app/v1/surveys/{id}/recipients", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/surveys/{id}/recipients",
headers={"X-Api-Key": "fmd_..."},
json={
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
],
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/recipients");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
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/surveys/{id}/recipients")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
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(`{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/surveys/{id}/recipients", 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/surveys/{id}/recipients"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""))
.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/surveys/{id}/recipients");
request.Content = new StringContent(""""
{
"contactIds": [
"3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
],
"listId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"invited": 1,
"skipped": 1,
"limited": 1
}DELETE/v1/surveys/{id}/recipients/{recipientId}
Remove um convite.
Atualizar/{id}/recipients/{recipientId}Em caso de sucesso: 204.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim | |
recipientId | string | Sim |
Exemplo
curl -X DELETE "https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}", {
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/surveys/{id}/recipients/{recipientId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}");
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/surveys/{id}/recipients/{recipientId}")
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/surveys/{id}/recipients/{recipientId}", 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/surveys/{id}/recipients/{recipientId}"))
.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/surveys/{id}/recipients/{recipientId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();POST/v1/surveys/{id}/recipients/{recipientId}/resend
Envia de novo o link a um contato convidado.
Atualizar/{id}/recipients/{recipientId}/resendEm caso de sucesso: 200.Permissão: Atualizar.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim | |
recipientId | string | Sim |
Exemplo
curl -X POST "https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}/resend" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}/resend", {
method: "POST",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}/resend",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}/resend");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
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/surveys/{id}/recipients/{recipientId}/resend")
req = Net::HTTP::Post.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("POST", "https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}/resend", 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/surveys/{id}/recipients/{recipientId}/resend"))
.header("X-Api-Key", "fmd_...")
.method("POST", 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("POST"), "https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}/resend");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/surveys/{id}/responses
Lista as respostas de uma pesquisa.
Ler/{id}/responsesEm 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
18 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 | integer | string | null | Sim |
data[].contact | object | Sim |
data[].contact.id | string (uuid) | Sim |
data[].contact.name | string | Sim |
data[].contactId | string (uuid) | Sim |
data[].createdAt | string (date-time) | Sim |
data[].id | string (uuid) | Sim |
data[].recipientId | string (uuid) | Sim |
data[].source | string | Sim |
data[].surveyId | string (uuid) | Sim |
page | integer | Sim |
pageSize | integer | Sim |
total | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys/{id}/responses" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}/responses", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/surveys/{id}/responses",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/responses");
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/surveys/{id}/responses")
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/surveys/{id}/responses", 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/surveys/{id}/responses"))
.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/surveys/{id}/responses");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"data": [
{
"id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"surveyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"recipientId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
"answers": [],
"source": "…",
"createdAt": "2026-11-21T14:00:00.000Z",
"contact": {}
}
],
"page": 1,
"pageSize": 1,
"total": 1
}POST/v1/surveys/{id}/responses
Responde uma pesquisa pelos sistemas da própria organização, como um contato faria.
Criar/{id}/responsesEm 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 | |
contactId | string (uuid) | Não |
Exemplo
curl -X POST "https://api.firmado.app/v1/surveys/{id}/responses" \
-H "X-Api-Key: fmd_..." \
-H "Content-Type: application/json" \
-d '{
"answers": {},
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'const res = await fetch("https://api.firmado.app/v1/surveys/{id}/responses", {
method: "POST",
headers: { "X-Api-Key": "fmd_...", "Content-Type": "application/json" },
body: JSON.stringify({
"answers": {},
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}),
})
const data = await res.json()import requests
res = requests.post(
"https://api.firmado.app/v1/surveys/{id}/responses",
headers={"X-Api-Key": "fmd_..."},
json={
"answers": {},
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/responses");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-Api-Key: fmd_...", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"answers": {},
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
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/surveys/{id}/responses")
req = Net::HTTP::Post.new(uri)
req["X-Api-Key"] = "fmd_..."
req["Content-Type"] = "application/json"
req.body = <<~JSON
{
"answers": {},
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
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": {},
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}`)
req, _ := http.NewRequest("POST", "https://api.firmado.app/v1/surveys/{id}/responses", 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/surveys/{id}/responses"))
.header("X-Api-Key", "fmd_...")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"answers": {},
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""))
.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/surveys/{id}/responses");
request.Content = new StringContent(""""
{
"answers": {},
"contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}
"""", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();DELETE/v1/surveys/{id}/responses/{responseId}
Exclui uma resposta.
Excluir/{id}/responses/{responseId}Em caso de sucesso: 204.Permissão: Excluir.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim | |
responseId | string | Sim |
Exemplo
curl -X DELETE "https://api.firmado.app/v1/surveys/{id}/responses/{responseId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}/responses/{responseId}", {
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/surveys/{id}/responses/{responseId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/responses/{responseId}");
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/surveys/{id}/responses/{responseId}")
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/surveys/{id}/responses/{responseId}", 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/surveys/{id}/responses/{responseId}"))
.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/surveys/{id}/responses/{responseId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/surveys/{id}/responses/{responseId}
Retorna uma resposta.
Ler/{id}/responses/{responseId}Em caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim | |
responseId | string | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys/{id}/responses/{responseId}" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}/responses/{responseId}", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/surveys/{id}/responses/{responseId}",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/responses/{responseId}");
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/surveys/{id}/responses/{responseId}")
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/surveys/{id}/responses/{responseId}", 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/surveys/{id}/responses/{responseId}"))
.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/surveys/{id}/responses/{responseId}");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/surveys/{id}/responses/export
Baixa as respostas de uma pesquisa em CSV.
Ler/{id}/responses/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/surveys/{id}/responses/export" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}/responses/export", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/surveys/{id}/responses/export",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/responses/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/surveys/{id}/responses/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/surveys/{id}/responses/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/surveys/{id}/responses/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/surveys/{id}/responses/export");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();GET/v1/surveys/{id}/summary
Os resultados de uma pesquisa: nota, distribuição e respostas por pergunta.
Ler/{id}/summaryEm caso de sucesso: 200.Permissão: Ler.
Parâmetros do caminho
| Campo | Tipo | Obrigatório | Observações |
|---|---|---|---|
id | string | Sim |
Resposta
25 campos
| Campo | Tipo | Sempre presente |
|---|---|---|
daily | array of object | Sim |
daily[].date | string (date) | Sim |
daily[].total | integer | Sim |
questions | array of object | Sim |
questions[].answered | integer | Sim |
questions[].average | number | Não |
questions[].choices | array of object | Não |
questions[].choices[].count | integer | Sim |
questions[].choices[].option | string | Sim |
questions[].distribution | array of object | Não |
questions[].distribution[].count | integer | Sim |
questions[].distribution[].value | integer | Sim |
questions[].key | string | Sim |
questions[].label | string | Sim |
questions[].nps | integer | null | Não |
questions[].samples | array of string | Não |
questions[].type | string | Sim |
stats | object | Sim |
stats.answered | integer | Sim |
stats.expired | integer | Sim |
stats.invited | integer | Sim |
stats.lastResponseAt | string (date-time) | Sim |
stats.pending | integer | Sim |
stats.responseRate | integer | Sim |
stats.responses | integer | Sim |
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys/{id}/summary" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/{id}/summary", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/surveys/{id}/summary",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/{id}/summary");
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/surveys/{id}/summary")
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/surveys/{id}/summary", 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/surveys/{id}/summary"))
.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/surveys/{id}/summary");
var response = await http.SendAsync(request);
response.EnsureSuccessStatusCode();Resposta (200), com valores de exemplo:
{
"stats": {
"invited": 1,
"answered": 1,
"expired": 1,
"pending": 1,
"responses": 1,
"lastResponseAt": "2026-11-21T14:00:00.000Z",
"responseRate": 1
},
"questions": [
{
"key": "…",
"label": "…",
"type": "…",
"answered": 1,
"average": 1,
"choices": [],
"distribution": [],
"nps": 1,
"samples": []
}
],
"daily": [
{
"date": "2026-11-21",
"total": 1
}
]
}GET/v1/surveys/look
O visual de que parte a prévia de uma pesquisa; 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/surveys/look" \
-H "X-Api-Key: fmd_..."const res = await fetch("https://api.firmado.app/v1/surveys/look", {
method: "GET",
headers: { "X-Api-Key": "fmd_..." },
})
const data = await res.json()import requests
res = requests.get(
"https://api.firmado.app/v1/surveys/look",
headers={"X-Api-Key": "fmd_..."},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://api.firmado.app/v1/surveys/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/surveys/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/surveys/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/surveys/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/surveys/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.
survey.createdCriarsurvey.updatedAtualizarsurvey.deletedExcluirsurvey.recipients_addedAtualizarsurvey.recipient_removedAtualizarsurvey.respondedCriarsurvey.response_deletedExcluir