Surveys
NPS and satisfaction surveys, invitations and answers.
Values for the examples
Type them once and every example on this page uses them. The API key stays on this page only and is never saved.
GET/v1/surveys
Lists the surveys.
ListOn success: 200.Permission: Read.
Example
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
Creates a survey.
CreateOn success: 201.Permission: Create.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 120 |
title | string | null | No | |
description | string | null | No | |
questions | array of object | No | max items 50 |
questions[].key | string | Yes | pattern ^[a-z][a-z0-9_]{0,39}$ |
questions[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps" | Yes | |
questions[].label | string | Yes | min length 1 · max length 500 |
questions[].placeholder | string | null | No | |
questions[].help | string | null | No | |
questions[].required | boolean | No | default false |
questions[].options | array of string | No | max items 100 |
questions[].min | number | null | No | |
questions[].max | number | null | No | |
questions[].defaultValue | string | null | No | |
questions[].width | "full" | "half" | No | default "full" |
submitLabel | string | null | No | |
successMessage | string | null | No | |
status | "draft" | "active" | "closed" | No | default "draft" |
anonymous | boolean | No | default false |
singleResponse | boolean | No | default true |
responseWindowDays | integer | null | No | |
openLink | boolean | No | default false |
closesAt | string (date-time) | null | No | |
delivery | object | No | |
delivery.email | boolean | No | default true |
delivery.whatsapp | object | No | |
delivery.whatsapp.enabled | boolean | No | default false |
delivery.whatsapp.connectionId | string (uuid) | null | No | |
delivery.whatsapp.templateName | string | null | No | |
delivery.whatsapp.language | string | null | No | |
delivery.whatsapp.params | object of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline" | No | |
delivery.reminderDaysBefore | integer | null | No | |
delivery.message | string | null | No | |
triggers | object | No | |
triggers.lists | array of object | No | max items 10 |
triggers.lists[].listId | string (uuid) | Yes | |
triggers.events | array of object | No | max items 10 |
triggers.events[].type | "deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed" | Yes | |
triggers.events[].formId | string (uuid) | null | No | |
triggers.events[].delayHours | integer | No | min 0 · max 1440 · default 0 |
notifyMemberIds | array of string | No | max items 50 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | No | |
theme | object | No | |
theme.primaryColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | No | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | No | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | No | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | No |
Response
59 fields
| Field | Type | Always there |
|---|---|---|
activatedAt | string | null (date-time) | Yes |
anonymous | boolean | Yes |
closesAt | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
delivery | object | Yes |
delivery.email | boolean | Yes |
delivery.message | null in the examples | Yes |
delivery.reminderDaysBefore | null in the examples | Yes |
delivery.whatsapp | object | Yes |
delivery.whatsapp.connectionId | null in the examples | Yes |
delivery.whatsapp.enabled | boolean | Yes |
delivery.whatsapp.language | null in the examples | Yes |
delivery.whatsapp.params | object | Yes |
delivery.whatsapp.templateName | null in the examples | Yes |
description | null in the examples | Yes |
id | string (uuid) | Yes |
name | string | Yes |
notifyMemberIds | array of string (uuid) | Yes |
openLink | boolean | Yes |
publicId | string | Yes |
questions | array of object | Yes |
questions[].defaultValue | null in the examples | Yes |
questions[].help | null in the examples | Yes |
questions[].key | string | Yes |
questions[].label | string | Yes |
questions[].max | integer | null | Yes |
questions[].min | null in the examples | Yes |
questions[].options | array of string | Yes |
questions[].placeholder | null in the examples | Yes |
questions[].required | boolean | Yes |
questions[].type | string | Yes |
questions[].width | string | Yes |
responseWindowDays | integer | null | Yes |
singleResponse | boolean | Yes |
stats | object | Yes |
stats.answered | integer | Yes |
stats.expired | integer | Yes |
stats.invited | integer | Yes |
stats.lastResponseAt | null in the examples | Yes |
stats.pending | integer | Yes |
stats.responseRate | null in the examples | Yes |
stats.responses | integer | Yes |
status | string | Yes |
submitLabel | null in the examples | Yes |
successMessage | null in the examples | Yes |
templateId | null in the examples | Yes |
theme | object | Yes |
title | string | null | Yes |
triggers | object | Yes |
triggers.events | array of object | Yes |
triggers.events[].delayHours | integer | Yes |
triggers.events[].formId | string (uuid) | Yes |
triggers.events[].type | string | Yes |
triggers.lists | array of object | Yes |
triggers.lists[].listId | string (uuid) | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
Example
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();Response (201), with sample values:
{
"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}
Deletes a survey and its answers.
DeleteOn success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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}
Returns a survey with its questions and settings.
Get oneOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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}
Changes a survey: questions, look, triggers and status.
UpdateOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | No | min length 1 · max length 120 |
title | string | null | No | |
description | string | null | No | |
questions | array of object | No | max items 50 |
questions[].key | string | Yes | pattern ^[a-z][a-z0-9_]{0,39}$ |
questions[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps" | Yes | |
questions[].label | string | Yes | min length 1 · max length 500 |
questions[].placeholder | string | null | No | |
questions[].help | string | null | No | |
questions[].required | boolean | No | default false |
questions[].options | array of string | No | max items 100 |
questions[].min | number | null | No | |
questions[].max | number | null | No | |
questions[].defaultValue | string | null | No | |
questions[].width | "full" | "half" | No | default "full" |
submitLabel | string | null | No | |
successMessage | string | null | No | |
status | "draft" | "active" | "closed" | No | |
anonymous | boolean | No | |
singleResponse | boolean | No | |
responseWindowDays | integer | null | No | |
openLink | boolean | No | |
closesAt | string (date-time) | null | No | |
delivery | object | No | |
delivery.email | boolean | No | default true |
delivery.whatsapp | object | No | |
delivery.whatsapp.enabled | boolean | No | default false |
delivery.whatsapp.connectionId | string (uuid) | null | No | |
delivery.whatsapp.templateName | string | null | No | |
delivery.whatsapp.language | string | null | No | |
delivery.whatsapp.params | object of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline" | No | |
delivery.reminderDaysBefore | integer | null | No | |
delivery.message | string | null | No | |
triggers | object | No | |
triggers.lists | array of object | No | max items 10 |
triggers.lists[].listId | string (uuid) | Yes | |
triggers.events | array of object | No | max items 10 |
triggers.events[].type | "deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed" | Yes | |
triggers.events[].formId | string (uuid) | null | No | |
triggers.events[].delayHours | integer | No | min 0 · max 1440 · default 0 |
notifyMemberIds | array of string | No | max items 50 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | No | |
theme | object | No | |
theme.primaryColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | No | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | No | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | No | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | No | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | No |
Response
55 fields
| Field | Type | Always there |
|---|---|---|
activatedAt | string (date-time) | Yes |
anonymous | boolean | Yes |
closesAt | null in the examples | Yes |
createdAt | string (date-time) | Yes |
createdBy | string (uuid) | Yes |
delivery | object | Yes |
delivery.email | boolean | Yes |
delivery.message | null in the examples | Yes |
delivery.reminderDaysBefore | null in the examples | Yes |
delivery.whatsapp | object | Yes |
delivery.whatsapp.connectionId | null in the examples | Yes |
delivery.whatsapp.enabled | boolean | Yes |
delivery.whatsapp.language | null in the examples | Yes |
delivery.whatsapp.params | object | Yes |
delivery.whatsapp.templateName | null in the examples | Yes |
description | null in the examples | Yes |
id | string (uuid) | Yes |
name | string | Yes |
notifyMemberIds | array of string (uuid) | Yes |
openLink | boolean | Yes |
publicId | string | Yes |
questions | array of object | Yes |
questions[].defaultValue | null in the examples | Yes |
questions[].help | null in the examples | Yes |
questions[].key | string | Yes |
questions[].label | string | Yes |
questions[].max | integer | null | Yes |
questions[].min | null in the examples | Yes |
questions[].options | array of string | Yes |
questions[].placeholder | null in the examples | Yes |
questions[].required | boolean | Yes |
questions[].type | string | Yes |
questions[].width | string | Yes |
responseWindowDays | integer | null | Yes |
singleResponse | boolean | Yes |
stats | object | Yes |
stats.answered | integer | Yes |
stats.expired | integer | Yes |
stats.invited | integer | Yes |
stats.lastResponseAt | string | null (date-time) | Yes |
stats.pending | integer | Yes |
stats.responseRate | null in the examples | Yes |
stats.responses | integer | Yes |
status | string | Yes |
submitLabel | null in the examples | Yes |
successMessage | null in the examples | Yes |
templateId | null in the examples | Yes |
theme | object | Yes |
title | string | null | Yes |
triggers | object | Yes |
triggers.events | array of any | Yes |
triggers.lists | array of any | Yes |
updatedAt | string (date-time) | Yes |
updatedBy | string (uuid) | Yes |
url | string (uri) | Yes |
Example
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();Response (200), with sample values:
{
"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
Copies a survey.
Create/{id}/duplicateOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | min length 1 · max length 120 |
Example
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
The contacts invited to a survey, and whether they answered.
Read/{id}/recipientsOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
status | "pending" | "answered" | "expired" | No | |
q | string | No | max length 200 |
Response
27 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].addedBy | string | null (uuid) | Yes |
data[].contact | object | Yes |
data[].contact.email | string (email) | Yes |
data[].contact.id | string (uuid) | Yes |
data[].contact.name | string | Yes |
data[].contact.phone | null in the examples | Yes |
data[].contactId | string (uuid) | Yes |
data[].expiresAt | string | null (date-time) | Yes |
data[].id | string (uuid) | Yes |
data[].invitedAt | string (date-time) | Yes |
data[].notifiedAt | string | null (date-time) | Yes |
data[].notifiedVia | array of string | Yes |
data[].notifyAt | string | null (date-time) | Yes |
data[].notifyError | null in the examples | Yes |
data[].openedAt | null in the examples | Yes |
data[].remindedAt | null in the examples | Yes |
data[].respondedAt | string | null (date-time) | Yes |
data[].responseCount | integer | Yes |
data[].source | string | Yes |
data[].sourceRef | string | null | Yes |
data[].status | string | Yes |
data[].surveyId | string (uuid) | Yes |
data[].url | string (uri) | Yes |
page | integer | Yes |
pageSize | integer | Yes |
total | integer | Yes |
Example
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();Response (200), with sample values:
{
"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
Invites contacts, by id or everyone in a list now.
Update/{id}/recipientsOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
contactIds | array of string (uuid) | No | max items 1000 |
listId | string (uuid) | No |
Response
3 fields
| Field | Type | Always there |
|---|---|---|
invited | integer | Yes |
limited | integer | Yes |
skipped | integer | Yes |
Example
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();Response (200), with sample values:
{
"invited": 1,
"skipped": 1,
"limited": 1
}DELETE/v1/surveys/{id}/recipients/{recipientId}
Removes an invitation.
Update/{id}/recipients/{recipientId}On success: 204.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | |
recipientId | string | Yes |
Example
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
Emails an invited contact their link again.
Update/{id}/recipients/{recipientId}/resendOn success: 200.Permission: Update.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | |
recipientId | string | Yes |
Example
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
Lists a survey’s answers.
Read/{id}/responsesOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
page | integer | No | min 1 · default 1 |
pageSize | integer | No | min 1 · max 100 · default 25 |
Response
18 fields
| Field | Type | Always there |
|---|---|---|
data | array of object | Yes |
data[].answers | array of object | Yes |
data[].answers[].key | string | Yes |
data[].answers[].label | string | Yes |
data[].answers[].type | string | Yes |
data[].answers[].value | array | integer | string | null | Yes |
data[].contact | object | Yes |
data[].contact.id | string (uuid) | Yes |
data[].contact.name | string | Yes |
data[].contactId | string (uuid) | Yes |
data[].createdAt | string (date-time) | Yes |
data[].id | string (uuid) | Yes |
data[].recipientId | string (uuid) | Yes |
data[].source | string | Yes |
data[].surveyId | string (uuid) | Yes |
page | integer | Yes |
pageSize | integer | Yes |
total | integer | Yes |
Example
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();Response (200), with sample values:
{
"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
Answers a survey from the organization’s own systems, as a contact would.
Create/{id}/responsesOn success: 201.Permission: Create.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
answers | object of any | Yes | |
contactId | string (uuid) | No |
Example
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}
Deletes one answer.
Delete/{id}/responses/{responseId}On success: 204.Permission: Delete.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | |
responseId | string | Yes |
Example
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}
Returns one answer.
Read/{id}/responses/{responseId}On success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | |
responseId | string | Yes |
Example
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
Downloads a survey’s answers as a CSV file.
Read/{id}/responses/exportOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Example
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
A survey’s results: score, distribution and answers per question.
Read/{id}/summaryOn success: 200.Permission: Read.
Path parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes |
Response
25 fields
| Field | Type | Always there |
|---|---|---|
daily | array of object | Yes |
daily[].date | string (date) | Yes |
daily[].total | integer | Yes |
questions | array of object | Yes |
questions[].answered | integer | Yes |
questions[].average | number | No |
questions[].choices | array of object | No |
questions[].choices[].count | integer | Yes |
questions[].choices[].option | string | Yes |
questions[].distribution | array of object | No |
questions[].distribution[].count | integer | Yes |
questions[].distribution[].value | integer | Yes |
questions[].key | string | Yes |
questions[].label | string | Yes |
questions[].nps | integer | null | No |
questions[].samples | array of string | No |
questions[].type | string | Yes |
stats | object | Yes |
stats.answered | integer | Yes |
stats.expired | integer | Yes |
stats.invited | integer | Yes |
stats.lastResponseAt | string (date-time) | Yes |
stats.pending | integer | Yes |
stats.responseRate | integer | Yes |
stats.responses | integer | Yes |
Example
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();Response (200), with sample values:
{
"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
The look a survey’s preview starts from; saves nothing.
Read/lookOn success: 200.Permission: Read.
Query parameters
| Field | Type | Required | Notes |
|---|---|---|---|
templateId | "classic" | "modern" | "minimal" | "bold" | No |
Response
12 fields
| Field | Type | Always there |
|---|---|---|
organization | object | Yes |
organization.language | string | Yes |
organization.name | string | Yes |
templateId | string | Yes |
theme | object | Yes |
theme.accentColor | string | Yes |
theme.backgroundColor | string | Yes |
theme.bodyFont | string | Yes |
theme.cornerRadius | string | Yes |
theme.headingFont | string | Yes |
theme.primaryColor | string | Yes |
theme.textColor | string | Yes |
Example
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();Response (200), with sample values:
{
"organization": {
"name": "Ana Lima",
"language": "…"
},
"templateId": "…",
"theme": {
"primaryColor": "…",
"accentColor": "…",
"backgroundColor": "…",
"textColor": "…",
"headingFont": "…",
"bodyFont": "…",
"cornerRadius": "…"
}
}Webhook events
Changes of this feature that webhooks can send.
survey.createdCreatesurvey.updatedUpdatesurvey.deletedDeletesurvey.recipients_addedUpdatesurvey.recipient_removedUpdatesurvey.respondedCreatesurvey.response_deletedDelete