Enquêtes
Enquêtes NPS et de satisfaction, invitations et réponses.
Valeurs des exemples
Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.
GET/v1/surveys
Liste les enquêtes.
ListerEn cas de succès : 200.Permission : Lire.
Exemple
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
Crée une enquête.
CréerEn cas de succès : 201.Permission : Créer.
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Oui | min length 1 · max length 120 |
title | string | null | Non | |
description | string | null | Non | |
questions | array of object | Non | max items 50 |
questions[].key | string | Oui | pattern ^[a-z][a-z0-9_]{0,39}$ |
questions[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps" | Oui | |
questions[].label | string | Oui | min length 1 · max length 500 |
questions[].placeholder | string | null | Non | |
questions[].help | string | null | Non | |
questions[].required | boolean | Non | default false |
questions[].options | array of string | Non | max items 100 |
questions[].min | number | null | Non | |
questions[].max | number | null | Non | |
questions[].defaultValue | string | null | Non | |
questions[].width | "full" | "half" | Non | default "full" |
submitLabel | string | null | Non | |
successMessage | string | null | Non | |
status | "draft" | "active" | "closed" | Non | default "draft" |
anonymous | boolean | Non | default false |
singleResponse | boolean | Non | default true |
responseWindowDays | integer | null | Non | |
openLink | boolean | Non | default false |
closesAt | string (date-time) | null | Non | |
delivery | object | Non | |
delivery.email | boolean | Non | default true |
delivery.whatsapp | object | Non | |
delivery.whatsapp.enabled | boolean | Non | default false |
delivery.whatsapp.connectionId | string (uuid) | null | Non | |
delivery.whatsapp.templateName | string | null | Non | |
delivery.whatsapp.language | string | null | Non | |
delivery.whatsapp.params | object of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline" | Non | |
delivery.reminderDaysBefore | integer | null | Non | |
delivery.message | string | null | Non | |
triggers | object | Non | |
triggers.lists | array of object | Non | max items 10 |
triggers.lists[].listId | string (uuid) | Oui | |
triggers.events | array of object | Non | max items 10 |
triggers.events[].type | "deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed" | Oui | |
triggers.events[].formId | string (uuid) | null | Non | |
triggers.events[].delayHours | integer | Non | min 0 · max 1440 · default 0 |
notifyMemberIds | array of string | Non | max items 50 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Non | |
theme | object | Non | |
theme.primaryColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Non | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Non | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Non | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Non |
Réponse
59 champs
| Champ | Type | Toujours présent |
|---|---|---|
activatedAt | string | null (date-time) | Oui |
anonymous | boolean | Oui |
closesAt | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
delivery | object | Oui |
delivery.email | boolean | Oui |
delivery.message | null dans les exemples | Oui |
delivery.reminderDaysBefore | null dans les exemples | Oui |
delivery.whatsapp | object | Oui |
delivery.whatsapp.connectionId | null dans les exemples | Oui |
delivery.whatsapp.enabled | boolean | Oui |
delivery.whatsapp.language | null dans les exemples | Oui |
delivery.whatsapp.params | object | Oui |
delivery.whatsapp.templateName | null dans les exemples | Oui |
description | null dans les exemples | Oui |
id | string (uuid) | Oui |
name | string | Oui |
notifyMemberIds | array of string (uuid) | Oui |
openLink | boolean | Oui |
publicId | string | Oui |
questions | array of object | Oui |
questions[].defaultValue | null dans les exemples | Oui |
questions[].help | null dans les exemples | Oui |
questions[].key | string | Oui |
questions[].label | string | Oui |
questions[].max | integer | null | Oui |
questions[].min | null dans les exemples | Oui |
questions[].options | array of string | Oui |
questions[].placeholder | null dans les exemples | Oui |
questions[].required | boolean | Oui |
questions[].type | string | Oui |
questions[].width | string | Oui |
responseWindowDays | integer | null | Oui |
singleResponse | boolean | Oui |
stats | object | Oui |
stats.answered | integer | Oui |
stats.expired | integer | Oui |
stats.invited | integer | Oui |
stats.lastResponseAt | null dans les exemples | Oui |
stats.pending | integer | Oui |
stats.responseRate | null dans les exemples | Oui |
stats.responses | integer | Oui |
status | string | Oui |
submitLabel | null dans les exemples | Oui |
successMessage | null dans les exemples | Oui |
templateId | null dans les exemples | Oui |
theme | object | Oui |
title | string | null | Oui |
triggers | object | Oui |
triggers.events | array of object | Oui |
triggers.events[].delayHours | integer | Oui |
triggers.events[].formId | string (uuid) | Oui |
triggers.events[].type | string | Oui |
triggers.lists | array of object | Oui |
triggers.lists[].listId | string (uuid) | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
Exemple
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();Réponse (201), avec des valeurs d’exemple :
{
"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}
Supprime une enquête et ses réponses.
SupprimerEn cas de succès : 204.Permission : Supprimer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Renvoie une enquête avec ses questions et réglages.
Voir unEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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}
Modifie une enquête : questions, apparence, déclencheurs et statut.
ModifierEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Non | min length 1 · max length 120 |
title | string | null | Non | |
description | string | null | Non | |
questions | array of object | Non | max items 50 |
questions[].key | string | Oui | pattern ^[a-z][a-z0-9_]{0,39}$ |
questions[].type | "text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps" | Oui | |
questions[].label | string | Oui | min length 1 · max length 500 |
questions[].placeholder | string | null | Non | |
questions[].help | string | null | Non | |
questions[].required | boolean | Non | default false |
questions[].options | array of string | Non | max items 100 |
questions[].min | number | null | Non | |
questions[].max | number | null | Non | |
questions[].defaultValue | string | null | Non | |
questions[].width | "full" | "half" | Non | default "full" |
submitLabel | string | null | Non | |
successMessage | string | null | Non | |
status | "draft" | "active" | "closed" | Non | |
anonymous | boolean | Non | |
singleResponse | boolean | Non | |
responseWindowDays | integer | null | Non | |
openLink | boolean | Non | |
closesAt | string (date-time) | null | Non | |
delivery | object | Non | |
delivery.email | boolean | Non | default true |
delivery.whatsapp | object | Non | |
delivery.whatsapp.enabled | boolean | Non | default false |
delivery.whatsapp.connectionId | string (uuid) | null | Non | |
delivery.whatsapp.templateName | string | null | Non | |
delivery.whatsapp.language | string | null | Non | |
delivery.whatsapp.params | object of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline" | Non | |
delivery.reminderDaysBefore | integer | null | Non | |
delivery.message | string | null | Non | |
triggers | object | Non | |
triggers.lists | array of object | Non | max items 10 |
triggers.lists[].listId | string (uuid) | Oui | |
triggers.events | array of object | Non | max items 10 |
triggers.events[].type | "deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed" | Oui | |
triggers.events[].formId | string (uuid) | null | Non | |
triggers.events[].delayHours | integer | Non | min 0 · max 1440 · default 0 |
notifyMemberIds | array of string | Non | max items 50 |
templateId | "classic" | "modern" | "minimal" | "bold" | null | Non | |
theme | object | Non | |
theme.primaryColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.accentColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.backgroundColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.textColor | string | Non | pattern ^#[0-9a-fA-F]{6}$ |
theme.headingFont | string | Non | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.bodyFont | string | Non | pattern ^[A-Za-z0-9 ]{1,60}$ |
theme.coverImageUrl | string (uri) | Non | max length 2000 |
theme.cornerRadius | "none" | "small" | "medium" | "large" | Non |
Réponse
55 champs
| Champ | Type | Toujours présent |
|---|---|---|
activatedAt | string (date-time) | Oui |
anonymous | boolean | Oui |
closesAt | null dans les exemples | Oui |
createdAt | string (date-time) | Oui |
createdBy | string (uuid) | Oui |
delivery | object | Oui |
delivery.email | boolean | Oui |
delivery.message | null dans les exemples | Oui |
delivery.reminderDaysBefore | null dans les exemples | Oui |
delivery.whatsapp | object | Oui |
delivery.whatsapp.connectionId | null dans les exemples | Oui |
delivery.whatsapp.enabled | boolean | Oui |
delivery.whatsapp.language | null dans les exemples | Oui |
delivery.whatsapp.params | object | Oui |
delivery.whatsapp.templateName | null dans les exemples | Oui |
description | null dans les exemples | Oui |
id | string (uuid) | Oui |
name | string | Oui |
notifyMemberIds | array of string (uuid) | Oui |
openLink | boolean | Oui |
publicId | string | Oui |
questions | array of object | Oui |
questions[].defaultValue | null dans les exemples | Oui |
questions[].help | null dans les exemples | Oui |
questions[].key | string | Oui |
questions[].label | string | Oui |
questions[].max | integer | null | Oui |
questions[].min | null dans les exemples | Oui |
questions[].options | array of string | Oui |
questions[].placeholder | null dans les exemples | Oui |
questions[].required | boolean | Oui |
questions[].type | string | Oui |
questions[].width | string | Oui |
responseWindowDays | integer | null | Oui |
singleResponse | boolean | Oui |
stats | object | Oui |
stats.answered | integer | Oui |
stats.expired | integer | Oui |
stats.invited | integer | Oui |
stats.lastResponseAt | string | null (date-time) | Oui |
stats.pending | integer | Oui |
stats.responseRate | null dans les exemples | Oui |
stats.responses | integer | Oui |
status | string | Oui |
submitLabel | null dans les exemples | Oui |
successMessage | null dans les exemples | Oui |
templateId | null dans les exemples | Oui |
theme | object | Oui |
title | string | null | Oui |
triggers | object | Oui |
triggers.events | array of any | Oui |
triggers.lists | array of any | Oui |
updatedAt | string (date-time) | Oui |
updatedBy | string (uuid) | Oui |
url | string (uri) | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Copie une enquête.
Créer/{id}/duplicateEn cas de succès : 201.Permission : Créer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
name | string | Oui | min length 1 · max length 120 |
Exemple
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
Les contacts invités à une enquête, et s’ils ont répondu.
Lire/{id}/recipientsEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
page | integer | Non | min 1 · default 1 |
pageSize | integer | Non | min 1 · max 100 · default 25 |
status | "pending" | "answered" | "expired" | Non | |
q | string | Non | max length 200 |
Réponse
27 champs
| Champ | Type | Toujours présent |
|---|---|---|
data | array of object | Oui |
data[].addedBy | string | null (uuid) | Oui |
data[].contact | object | Oui |
data[].contact.email | string (email) | Oui |
data[].contact.id | string (uuid) | Oui |
data[].contact.name | string | Oui |
data[].contact.phone | null dans les exemples | Oui |
data[].contactId | string (uuid) | Oui |
data[].expiresAt | string | null (date-time) | Oui |
data[].id | string (uuid) | Oui |
data[].invitedAt | string (date-time) | Oui |
data[].notifiedAt | string | null (date-time) | Oui |
data[].notifiedVia | array of string | Oui |
data[].notifyAt | string | null (date-time) | Oui |
data[].notifyError | null dans les exemples | Oui |
data[].openedAt | null dans les exemples | Oui |
data[].remindedAt | null dans les exemples | Oui |
data[].respondedAt | string | null (date-time) | Oui |
data[].responseCount | integer | Oui |
data[].source | string | Oui |
data[].sourceRef | string | null | Oui |
data[].status | string | Oui |
data[].surveyId | string (uuid) | Oui |
data[].url | string (uri) | Oui |
page | integer | Oui |
pageSize | integer | Oui |
total | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Invite des contacts, par id ou tous ceux d’une liste maintenant.
Modifier/{id}/recipientsEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
contactIds | array of string (uuid) | Non | max items 1000 |
listId | string (uuid) | Non |
Réponse
3 champs
| Champ | Type | Toujours présent |
|---|---|---|
invited | integer | Oui |
limited | integer | Oui |
skipped | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"invited": 1,
"skipped": 1,
"limited": 1
}DELETE/v1/surveys/{id}/recipients/{recipientId}
Retire une invitation.
Modifier/{id}/recipients/{recipientId}En cas de succès : 204.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui | |
recipientId | string | Oui |
Exemple
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
Renvoie le lien à un contact invité.
Modifier/{id}/recipients/{recipientId}/resendEn cas de succès : 200.Permission : Modifier.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui | |
recipientId | string | Oui |
Exemple
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
Liste les réponses d’une enquête.
Lire/{id}/responsesEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
page | integer | Non | min 1 · default 1 |
pageSize | integer | Non | min 1 · max 100 · default 25 |
Réponse
18 champs
| Champ | Type | Toujours présent |
|---|---|---|
data | array of object | Oui |
data[].answers | array of object | Oui |
data[].answers[].key | string | Oui |
data[].answers[].label | string | Oui |
data[].answers[].type | string | Oui |
data[].answers[].value | array | integer | string | null | Oui |
data[].contact | object | Oui |
data[].contact.id | string (uuid) | Oui |
data[].contact.name | string | Oui |
data[].contactId | string (uuid) | Oui |
data[].createdAt | string (date-time) | Oui |
data[].id | string (uuid) | Oui |
data[].recipientId | string (uuid) | Oui |
data[].source | string | Oui |
data[].surveyId | string (uuid) | Oui |
page | integer | Oui |
pageSize | integer | Oui |
total | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
Répond à une enquête depuis les systèmes de l’organisation, comme le ferait un contact.
Créer/{id}/responsesEn cas de succès : 201.Permission : Créer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Corps
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
answers | object of any | Oui | |
contactId | string (uuid) | Non |
Exemple
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}
Supprime une réponse.
Supprimer/{id}/responses/{responseId}En cas de succès : 204.Permission : Supprimer.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui | |
responseId | string | Oui |
Exemple
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}
Renvoie une réponse.
Lire/{id}/responses/{responseId}En cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui | |
responseId | string | Oui |
Exemple
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
Télécharge les réponses d’une enquête en CSV.
Lire/{id}/responses/exportEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Exemple
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
Les résultats d’une enquête : score, répartition et réponses par question.
Lire/{id}/summaryEn cas de succès : 200.Permission : Lire.
Paramètres de chemin
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
id | string | Oui |
Réponse
25 champs
| Champ | Type | Toujours présent |
|---|---|---|
daily | array of object | Oui |
daily[].date | string (date) | Oui |
daily[].total | integer | Oui |
questions | array of object | Oui |
questions[].answered | integer | Oui |
questions[].average | number | Non |
questions[].choices | array of object | Non |
questions[].choices[].count | integer | Oui |
questions[].choices[].option | string | Oui |
questions[].distribution | array of object | Non |
questions[].distribution[].count | integer | Oui |
questions[].distribution[].value | integer | Oui |
questions[].key | string | Oui |
questions[].label | string | Oui |
questions[].nps | integer | null | Non |
questions[].samples | array of string | Non |
questions[].type | string | Oui |
stats | object | Oui |
stats.answered | integer | Oui |
stats.expired | integer | Oui |
stats.invited | integer | Oui |
stats.lastResponseAt | string (date-time) | Oui |
stats.pending | integer | Oui |
stats.responseRate | integer | Oui |
stats.responses | integer | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"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
L’apparence dont part l’aperçu d’une enquête ; n’enregistre rien.
Lire/lookEn cas de succès : 200.Permission : Lire.
Paramètres de requête
| Champ | Type | Obligatoire | Notes |
|---|---|---|---|
templateId | "classic" | "modern" | "minimal" | "bold" | Non |
Réponse
12 champs
| Champ | Type | Toujours présent |
|---|---|---|
organization | object | Oui |
organization.language | string | Oui |
organization.name | string | Oui |
templateId | string | Oui |
theme | object | Oui |
theme.accentColor | string | Oui |
theme.backgroundColor | string | Oui |
theme.bodyFont | string | Oui |
theme.cornerRadius | string | Oui |
theme.headingFont | string | Oui |
theme.primaryColor | string | Oui |
theme.textColor | string | Oui |
Exemple
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();Réponse (200), avec des valeurs d’exemple :
{
"organization": {
"name": "Ana Lima",
"language": "…"
},
"templateId": "…",
"theme": {
"primaryColor": "…",
"accentColor": "…",
"backgroundColor": "…",
"textColor": "…",
"headingFont": "…",
"bodyFont": "…",
"cornerRadius": "…"
}
}Événements de webhook
Les changements de cette fonctionnalité que les webhooks peuvent envoyer.
survey.createdCréersurvey.updatedModifiersurvey.deletedSupprimersurvey.recipients_addedModifiersurvey.recipient_removedModifiersurvey.respondedCréersurvey.response_deletedSupprimer