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_..."

POST/v1/surveys

Crée une enquête.

CréerEn cas de succès : 201.Permission : Créer.

Corps

ChampTypeObligatoireNotes
namestringOuimin length 1 · max length 120
titlestring | nullNon
descriptionstring | nullNon
questionsarray of objectNonmax items 50
questions[].keystringOuipattern ^[a-z][a-z0-9_]{0,39}$
questions[].type"text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps"Oui
questions[].labelstringOuimin length 1 · max length 500
questions[].placeholderstring | nullNon
questions[].helpstring | nullNon
questions[].requiredbooleanNondefault false
questions[].optionsarray of stringNonmax items 100
questions[].minnumber | nullNon
questions[].maxnumber | nullNon
questions[].defaultValuestring | nullNon
questions[].width"full" | "half"Nondefault "full"
submitLabelstring | nullNon
successMessagestring | nullNon
status"draft" | "active" | "closed"Nondefault "draft"
anonymousbooleanNondefault false
singleResponsebooleanNondefault true
responseWindowDaysinteger | nullNon
openLinkbooleanNondefault false
closesAtstring (date-time) | nullNon
deliveryobjectNon
delivery.emailbooleanNondefault true
delivery.whatsappobjectNon
delivery.whatsapp.enabledbooleanNondefault false
delivery.whatsapp.connectionIdstring (uuid) | nullNon
delivery.whatsapp.templateNamestring | nullNon
delivery.whatsapp.languagestring | nullNon
delivery.whatsapp.paramsobject of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline"Non
delivery.reminderDaysBeforeinteger | nullNon
delivery.messagestring | nullNon
triggersobjectNon
triggers.listsarray of objectNonmax items 10
triggers.lists[].listIdstring (uuid)Oui
triggers.eventsarray of objectNonmax items 10
triggers.events[].type"deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed"Oui
triggers.events[].formIdstring (uuid) | nullNon
triggers.events[].delayHoursintegerNonmin 0 · max 1440 · default 0
notifyMemberIdsarray of stringNonmax items 50
templateId"classic" | "modern" | "minimal" | "bold" | nullNon
themeobjectNon
theme.primaryColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNonpattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNonpattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nonmax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"Non

Réponse

59 champs
ChampTypeToujours présent
activatedAtstring | null (date-time)Oui
anonymousbooleanOui
closesAtnull dans les exemplesOui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
deliveryobjectOui
delivery.emailbooleanOui
delivery.messagenull dans les exemplesOui
delivery.reminderDaysBeforenull dans les exemplesOui
delivery.whatsappobjectOui
delivery.whatsapp.connectionIdnull dans les exemplesOui
delivery.whatsapp.enabledbooleanOui
delivery.whatsapp.languagenull dans les exemplesOui
delivery.whatsapp.paramsobjectOui
delivery.whatsapp.templateNamenull dans les exemplesOui
descriptionnull dans les exemplesOui
idstring (uuid)Oui
namestringOui
notifyMemberIdsarray of string (uuid)Oui
openLinkbooleanOui
publicIdstringOui
questionsarray of objectOui
questions[].defaultValuenull dans les exemplesOui
questions[].helpnull dans les exemplesOui
questions[].keystringOui
questions[].labelstringOui
questions[].maxinteger | nullOui
questions[].minnull dans les exemplesOui
questions[].optionsarray of stringOui
questions[].placeholdernull dans les exemplesOui
questions[].requiredbooleanOui
questions[].typestringOui
questions[].widthstringOui
responseWindowDaysinteger | nullOui
singleResponsebooleanOui
statsobjectOui
stats.answeredintegerOui
stats.expiredintegerOui
stats.invitedintegerOui
stats.lastResponseAtnull dans les exemplesOui
stats.pendingintegerOui
stats.responseRatenull dans les exemplesOui
stats.responsesintegerOui
statusstringOui
submitLabelnull dans les exemplesOui
successMessagenull dans les exemplesOui
templateIdnull dans les exemplesOui
themeobjectOui
titlestring | nullOui
triggersobjectOui
triggers.eventsarray of objectOui
triggers.events[].delayHoursintegerOui
triggers.events[].formIdstring (uuid)Oui
triggers.events[].typestringOui
triggers.listsarray of objectOui
triggers.lists[].listIdstring (uuid)Oui
updatedAtstring (date-time)Oui
updatedBystring (uuid)Oui
urlstring (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": "…"
    }
  ]
}'

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

ChampTypeObligatoireNotes
idstringOui
Exemple
curl -X DELETE "https://api.firmado.app/v1/surveys/{id}" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui
Exemple
curl -X GET "https://api.firmado.app/v1/surveys/{id}" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui

Corps

ChampTypeObligatoireNotes
namestringNonmin length 1 · max length 120
titlestring | nullNon
descriptionstring | nullNon
questionsarray of objectNonmax items 50
questions[].keystringOuipattern ^[a-z][a-z0-9_]{0,39}$
questions[].type"text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps"Oui
questions[].labelstringOuimin length 1 · max length 500
questions[].placeholderstring | nullNon
questions[].helpstring | nullNon
questions[].requiredbooleanNondefault false
questions[].optionsarray of stringNonmax items 100
questions[].minnumber | nullNon
questions[].maxnumber | nullNon
questions[].defaultValuestring | nullNon
questions[].width"full" | "half"Nondefault "full"
submitLabelstring | nullNon
successMessagestring | nullNon
status"draft" | "active" | "closed"Non
anonymousbooleanNon
singleResponsebooleanNon
responseWindowDaysinteger | nullNon
openLinkbooleanNon
closesAtstring (date-time) | nullNon
deliveryobjectNon
delivery.emailbooleanNondefault true
delivery.whatsappobjectNon
delivery.whatsapp.enabledbooleanNondefault false
delivery.whatsapp.connectionIdstring (uuid) | nullNon
delivery.whatsapp.templateNamestring | nullNon
delivery.whatsapp.languagestring | nullNon
delivery.whatsapp.paramsobject of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline"Non
delivery.reminderDaysBeforeinteger | nullNon
delivery.messagestring | nullNon
triggersobjectNon
triggers.listsarray of objectNonmax items 10
triggers.lists[].listIdstring (uuid)Oui
triggers.eventsarray of objectNonmax items 10
triggers.events[].type"deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed"Oui
triggers.events[].formIdstring (uuid) | nullNon
triggers.events[].delayHoursintegerNonmin 0 · max 1440 · default 0
notifyMemberIdsarray of stringNonmax items 50
templateId"classic" | "modern" | "minimal" | "bold" | nullNon
themeobjectNon
theme.primaryColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNonpattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNonpattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nonmax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"Non

Réponse

55 champs
ChampTypeToujours présent
activatedAtstring (date-time)Oui
anonymousbooleanOui
closesAtnull dans les exemplesOui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
deliveryobjectOui
delivery.emailbooleanOui
delivery.messagenull dans les exemplesOui
delivery.reminderDaysBeforenull dans les exemplesOui
delivery.whatsappobjectOui
delivery.whatsapp.connectionIdnull dans les exemplesOui
delivery.whatsapp.enabledbooleanOui
delivery.whatsapp.languagenull dans les exemplesOui
delivery.whatsapp.paramsobjectOui
delivery.whatsapp.templateNamenull dans les exemplesOui
descriptionnull dans les exemplesOui
idstring (uuid)Oui
namestringOui
notifyMemberIdsarray of string (uuid)Oui
openLinkbooleanOui
publicIdstringOui
questionsarray of objectOui
questions[].defaultValuenull dans les exemplesOui
questions[].helpnull dans les exemplesOui
questions[].keystringOui
questions[].labelstringOui
questions[].maxinteger | nullOui
questions[].minnull dans les exemplesOui
questions[].optionsarray of stringOui
questions[].placeholdernull dans les exemplesOui
questions[].requiredbooleanOui
questions[].typestringOui
questions[].widthstringOui
responseWindowDaysinteger | nullOui
singleResponsebooleanOui
statsobjectOui
stats.answeredintegerOui
stats.expiredintegerOui
stats.invitedintegerOui
stats.lastResponseAtstring | null (date-time)Oui
stats.pendingintegerOui
stats.responseRatenull dans les exemplesOui
stats.responsesintegerOui
statusstringOui
submitLabelnull dans les exemplesOui
successMessagenull dans les exemplesOui
templateIdnull dans les exemplesOui
themeobjectOui
titlestring | nullOui
triggersobjectOui
triggers.eventsarray of anyOui
triggers.listsarray of anyOui
updatedAtstring (date-time)Oui
updatedBystring (uuid)Oui
urlstring (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": "…"
    }
  ]
}'

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

ChampTypeObligatoireNotes
idstringOui

Corps

ChampTypeObligatoireNotes
namestringOuimin 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"
}'

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

ChampTypeObligatoireNotes
idstringOui

Paramètres de requête

ChampTypeObligatoireNotes
pageintegerNonmin 1 · default 1
pageSizeintegerNonmin 1 · max 100 · default 25
status"pending" | "answered" | "expired"Non
qstringNonmax length 200

Réponse

27 champs
ChampTypeToujours présent
dataarray of objectOui
data[].addedBystring | null (uuid)Oui
data[].contactobjectOui
data[].contact.emailstring (email)Oui
data[].contact.idstring (uuid)Oui
data[].contact.namestringOui
data[].contact.phonenull dans les exemplesOui
data[].contactIdstring (uuid)Oui
data[].expiresAtstring | null (date-time)Oui
data[].idstring (uuid)Oui
data[].invitedAtstring (date-time)Oui
data[].notifiedAtstring | null (date-time)Oui
data[].notifiedViaarray of stringOui
data[].notifyAtstring | null (date-time)Oui
data[].notifyErrornull dans les exemplesOui
data[].openedAtnull dans les exemplesOui
data[].remindedAtnull dans les exemplesOui
data[].respondedAtstring | null (date-time)Oui
data[].responseCountintegerOui
data[].sourcestringOui
data[].sourceRefstring | nullOui
data[].statusstringOui
data[].surveyIdstring (uuid)Oui
data[].urlstring (uri)Oui
pageintegerOui
pageSizeintegerOui
totalintegerOui
Exemple
curl -X GET "https://api.firmado.app/v1/surveys/{id}/recipients" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui

Corps

ChampTypeObligatoireNotes
contactIdsarray of string (uuid)Nonmax items 1000
listIdstring (uuid)Non

Réponse

3 champs
ChampTypeToujours présent
invitedintegerOui
limitedintegerOui
skippedintegerOui
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"
}'

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

ChampTypeObligatoireNotes
idstringOui
recipientIdstringOui
Exemple
curl -X DELETE "https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui
recipientIdstringOui
Exemple
curl -X POST "https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}/resend" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui

Paramètres de requête

ChampTypeObligatoireNotes
pageintegerNonmin 1 · default 1
pageSizeintegerNonmin 1 · max 100 · default 25

Réponse

18 champs
ChampTypeToujours présent
dataarray of objectOui
data[].answersarray of objectOui
data[].answers[].keystringOui
data[].answers[].labelstringOui
data[].answers[].typestringOui
data[].answers[].valuearray | integer | string | nullOui
data[].contactobjectOui
data[].contact.idstring (uuid)Oui
data[].contact.namestringOui
data[].contactIdstring (uuid)Oui
data[].createdAtstring (date-time)Oui
data[].idstring (uuid)Oui
data[].recipientIdstring (uuid)Oui
data[].sourcestringOui
data[].surveyIdstring (uuid)Oui
pageintegerOui
pageSizeintegerOui
totalintegerOui
Exemple
curl -X GET "https://api.firmado.app/v1/surveys/{id}/responses" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui

Corps

ChampTypeObligatoireNotes
answersobject of anyOui
contactIdstring (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"
}'

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

ChampTypeObligatoireNotes
idstringOui
responseIdstringOui
Exemple
curl -X DELETE "https://api.firmado.app/v1/surveys/{id}/responses/{responseId}" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui
responseIdstringOui
Exemple
curl -X GET "https://api.firmado.app/v1/surveys/{id}/responses/{responseId}" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui
Exemple
curl -X GET "https://api.firmado.app/v1/surveys/{id}/responses/export" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
idstringOui

Réponse

25 champs
ChampTypeToujours présent
dailyarray of objectOui
daily[].datestring (date)Oui
daily[].totalintegerOui
questionsarray of objectOui
questions[].answeredintegerOui
questions[].averagenumberNon
questions[].choicesarray of objectNon
questions[].choices[].countintegerOui
questions[].choices[].optionstringOui
questions[].distributionarray of objectNon
questions[].distribution[].countintegerOui
questions[].distribution[].valueintegerOui
questions[].keystringOui
questions[].labelstringOui
questions[].npsinteger | nullNon
questions[].samplesarray of stringNon
questions[].typestringOui
statsobjectOui
stats.answeredintegerOui
stats.expiredintegerOui
stats.invitedintegerOui
stats.lastResponseAtstring (date-time)Oui
stats.pendingintegerOui
stats.responseRateintegerOui
stats.responsesintegerOui
Exemple
curl -X GET "https://api.firmado.app/v1/surveys/{id}/summary" \
  -H "X-Api-Key: fmd_..."

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

ChampTypeObligatoireNotes
templateId"classic" | "modern" | "minimal" | "bold"Non

Réponse

12 champs
ChampTypeToujours présent
organizationobjectOui
organization.languagestringOui
organization.namestringOui
templateIdstringOui
themeobjectOui
theme.accentColorstringOui
theme.backgroundColorstringOui
theme.bodyFontstringOui
theme.cornerRadiusstringOui
theme.headingFontstringOui
theme.primaryColorstringOui
theme.textColorstringOui
Exemple
curl -X GET "https://api.firmado.app/v1/surveys/look" \
  -H "X-Api-Key: fmd_..."

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éer
  • survey.updatedModifier
  • survey.deletedSupprimer
  • survey.recipients_addedModifier
  • survey.recipient_removedModifier
  • survey.respondedCréer
  • survey.response_deletedSupprimer