Formulaires

Les formulaires, leur apparence et leurs 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/form-defaults

Ce avec quoi commencent les nouveaux formulaires.

ListerEn cas de succès : 200.Permission : Lire.

Exemple
curl -X GET "https://api.firmado.app/v1/form-defaults" \
  -H "X-Api-Key: fmd_..."

PUT/v1/form-defaults

Modifie ce avec quoi commencent les nouveaux formulaires.

Modifier/En cas de succès : 200.Permission : Modifier.

Corps

ChampTypeObligatoireNotes
fieldsarray of object | nullOui
submitLabelstring | nullNon
successMessagestring | nullNon
redirectUrlstring (uri) | null | ""Non
requireCaptchabooleanOui
contactMode"off" | "create_or_update" | "create_only"Oui

Réponse

18 champs
ChampTypeToujours présent
contactModestringOui
fieldsarray of objectOui
fields[].defaultValuenull dans les exemplesOui
fields[].helpnull dans les exemplesOui
fields[].keystringOui
fields[].labelstringOui
fields[].mapTostringOui
fields[].maxnull dans les exemplesOui
fields[].minnull dans les exemplesOui
fields[].optionsarray of anyOui
fields[].placeholdernull dans les exemplesOui
fields[].requiredbooleanOui
fields[].typestringOui
fields[].widthstringOui
redirectUrlnull dans les exemplesOui
requireCaptchabooleanOui
submitLabelstringOui
successMessagestringOui
Exemple
curl -X PUT "https://api.firmado.app/v1/form-defaults" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "fields": [
    {
      "key": "…",
      "type": "text",
      "label": "…",
      "placeholder": "…"
    }
  ],
  "requireCaptcha": true,
  "contactMode": "off",
  "submitLabel": "…"
}'

Réponse (200), avec des valeurs d’exemple :

{
  "fields": [
    {
      "key": "…",
      "max": null,
      "min": null,
      "help": null,
      "type": "…",
      "label": "…",
      "mapTo": "…",
      "width": "…",
      "options": [],
      "required": true,
      "placeholder": null,
      "defaultValue": null
    }
  ],
  "submitLabel": "…",
  "successMessage": "…",
  "redirectUrl": null,
  "requireCaptcha": true,
  "contactMode": "…"
}

GET/v1/forms

Liste les formulaires.

ListerEn cas de succès : 200.Permission : Lire.

Réponse

43 champs
ChampTypeToujours présent
[].actionsobjectOui
[].actions.listIdsarray of string (uuid)Oui
[].actions.tagIdsarray of string (uuid)Oui
[].actions.webhookobjectOui
[].actions.webhook.enabledbooleanOui
[].actions.webhook.urlstringOui
[].activebooleanOui
[].contactModestringOui
[].contactOwnerIdstring (uuid)Oui
[].createdAtstring (date-time)Oui
[].createdBystring (uuid)Oui
[].descriptionnull dans les exemplesOui
[].embedScriptUrlstring (uri)Oui
[].fieldsarray of objectOui
[].fields[].defaultValuenull dans les exemplesOui
[].fields[].helpnull dans les exemplesOui
[].fields[].keystringOui
[].fields[].labelstringOui
[].fields[].mapTostringOui
[].fields[].maxnull dans les exemplesOui
[].fields[].minnull dans les exemplesOui
[].fields[].optionsarray of anyOui
[].fields[].placeholdernull dans les exemplesOui
[].fields[].requiredbooleanOui
[].fields[].typestringOui
[].fields[].widthstringOui
[].idstring (uuid)Oui
[].lastSubmissionAtstring (date-time)Oui
[].namestringOui
[].notifyMemberIdsarray of anyOui
[].publicIdstringOui
[].redirectUrlnull dans les exemplesOui
[].requireCaptchabooleanOui
[].submissionCountintegerOui
[].submitLabelnull dans les exemplesOui
[].successMessagenull dans les exemplesOui
[].templateIdnull dans les exemplesOui
[].themeobjectOui
[].titlenull dans les exemplesOui
[].updatedAtstring (date-time)Oui
[].updatedBystring (uuid)Oui
[].urlstring (uri)Oui
[].webhookSecretstringOui
Exemple
curl -X GET "https://api.firmado.app/v1/forms" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

[
  {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "publicId": "…",
    "name": "Ana Lima",
    "title": null,
    "description": null,
    "fields": [
      {}
    ],
    "submitLabel": null,
    "successMessage": null,
    "redirectUrl": null,
    "requireCaptcha": true,
    "contactMode": "…",
    "contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "actions": {
      "tagIds": [],
      "listIds": [],
      "webhook": {}
    },
    "webhookSecret": "…",
    "notifyMemberIds": [],
    "templateId": null,
    "theme": {},
    "active": true,
    "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "createdAt": "2026-11-21T14:00:00.000Z",
    "updatedAt": "2026-11-21T14:00:00.000Z",
    "url": "https://example.com",
    "embedScriptUrl": "https://example.com",
    "submissionCount": 1,
    "lastSubmissionAt": "2026-11-21T14:00:00.000Z"
  }
]

POST/v1/forms

Crée un formulaire.

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

Corps

ChampTypeObligatoireNotes
namestringOuimin length 1 · max length 120
titlestring | nullNon
descriptionstring | nullNon
fieldsarray of objectNonmax items 50
fields[].keystringOuipattern ^[a-z][a-z0-9_]{0,39}$
fields[].type"text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden"Oui
fields[].labelstringOuimin length 1 · max length 200
fields[].placeholderstring | nullNon
fields[].helpstring | nullNon
fields[].requiredbooleanNondefault false
fields[].optionsarray of stringNonmax items 100
fields[].minnumber | nullNon
fields[].maxnumber | nullNon
fields[].defaultValuestring | nullNon
fields[].width"full" | "half"Nondefault "full"
fields[].mapTo"firstName" | "lastName" | "fullName" | "email" | "phone" | "jobTitle" | "department" | "birthday" | "address" | "city" | "state" | "postalCode" | "country" | "marketingOptIn" | string | nullNon
submitLabelstring | nullNon
successMessagestring | nullNon
redirectUrlstring (uri) | null | ""Non
requireCaptchabooleanNon
contactMode"off" | "create_or_update" | "create_only"Non
contactOwnerIdstring | nullNon
actionsobjectNon
actions.listIdsarray of string (uuid)Nonmax items 20
actions.tagIdsarray of string (uuid)Nonmax items 50
actions.webhookobjectNon
actions.webhook.enabledbooleanNondefault false
actions.webhook.urlstring (uri) | ""Nondefault ""
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
activebooleanNondefault true

Réponse

43 champs
ChampTypeToujours présent
actionsobjectOui
actions.listIdsarray of string (uuid)Oui
actions.tagIdsarray of string (uuid)Oui
actions.webhookobjectOui
actions.webhook.enabledbooleanOui
actions.webhook.urlstringOui
activebooleanOui
contactModestringOui
contactOwnerIdstring (uuid)Oui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
descriptionnull dans les exemplesOui
embedScriptUrlstring (uri)Oui
fieldsarray of objectOui
fields[].defaultValuestring | nullOui
fields[].helpnull dans les exemplesOui
fields[].keystringOui
fields[].labelstringOui
fields[].mapTostring | nullOui
fields[].maxinteger | nullOui
fields[].mininteger | nullOui
fields[].optionsarray of stringOui
fields[].placeholdernull dans les exemplesOui
fields[].requiredbooleanOui
fields[].typestringOui
fields[].widthstringOui
idstring (uuid)Oui
lastSubmissionAtnull dans les exemplesOui
namestringOui
notifyMemberIdsarray of string (uuid)Oui
publicIdstringOui
redirectUrlstring | null (uri)Oui
requireCaptchabooleanOui
submissionCountintegerOui
submitLabelstring | nullOui
successMessagestring | nullOui
templateIdnull dans les exemplesOui
themeobjectOui
titlestring | nullOui
updatedAtstring (date-time)Oui
updatedBystring (uuid)Oui
urlstring (uri)Oui
webhookSecretstringOui
Exemple
curl -X POST "https://api.firmado.app/v1/forms" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Ana Lima",
  "title": "…",
  "description": "…",
  "fields": [
    {
      "key": "…",
      "type": "text",
      "label": "…",
      "placeholder": "…"
    }
  ]
}'

Réponse (201), avec des valeurs d’exemple :

{
  "actions": {
    "listIds": [
      "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
    ],
    "tagIds": [
      "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
    ],
    "webhook": {
      "enabled": true,
      "url": "https://example.com"
    }
  },
  "active": true,
  "contactMode": "…",
  "contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "description": null,
  "embedScriptUrl": "https://example.com",
  "fields": [
    {
      "defaultValue": "…",
      "help": null,
      "key": "…",
      "label": "…",
      "mapTo": "…",
      "max": 1,
      "min": 1,
      "options": [],
      "placeholder": null,
      "required": true,
      "type": "…",
      "width": "…"
    }
  ],
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "lastSubmissionAt": null,
  "name": "Ana Lima",
  "notifyMemberIds": [
    "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
  ],
  "publicId": "…",
  "redirectUrl": "https://example.com",
  "requireCaptcha": true,
  "submissionCount": 1,
  "submitLabel": "…",
  "successMessage": "…",
  "templateId": null,
  "theme": {},
  "title": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "webhookSecret": "…"
}

DELETE/v1/forms/{id}

Supprime un formulaire 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/forms/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/forms/{id}

Renvoie un formulaire avec ses questions et réglages.

Voir unEn cas de succès : 200.Permission : Lire.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui

Réponse

43 champs
ChampTypeToujours présent
actionsobjectOui
actions.listIdsarray of string (uuid)Oui
actions.tagIdsarray of string (uuid)Oui
actions.webhookobjectOui
actions.webhook.enabledbooleanOui
actions.webhook.urlstringOui
activebooleanOui
contactModestringOui
contactOwnerIdstring (uuid)Oui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
descriptionnull dans les exemplesOui
embedScriptUrlstring (uri)Oui
fieldsarray of objectOui
fields[].defaultValuestring | nullOui
fields[].helpnull dans les exemplesOui
fields[].keystringOui
fields[].labelstringOui
fields[].mapTostring | nullOui
fields[].maxinteger | nullOui
fields[].mininteger | nullOui
fields[].optionsarray of stringOui
fields[].placeholdernull dans les exemplesOui
fields[].requiredbooleanOui
fields[].typestringOui
fields[].widthstringOui
idstring (uuid)Oui
lastSubmissionAtstring (date-time)Oui
namestringOui
notifyMemberIdsarray of string (uuid)Oui
publicIdstringOui
redirectUrlstring | null (uri)Oui
requireCaptchabooleanOui
submissionCountintegerOui
submitLabelnull dans les exemplesOui
successMessagenull dans les exemplesOui
templateIdnull dans les exemplesOui
themeobjectOui
titlestring | nullOui
updatedAtstring (date-time)Oui
updatedBystring (uuid)Oui
urlstring (uri)Oui
webhookSecretstringOui
Exemple
curl -X GET "https://api.firmado.app/v1/forms/{id}" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

{
  "actions": {
    "listIds": [
      "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
    ],
    "tagIds": [
      "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
    ],
    "webhook": {
      "enabled": true,
      "url": "https://example.com"
    }
  },
  "active": true,
  "contactMode": "…",
  "contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "description": null,
  "embedScriptUrl": "https://example.com",
  "fields": [
    {
      "defaultValue": "…",
      "help": null,
      "key": "…",
      "label": "…",
      "mapTo": "…",
      "max": 1,
      "min": 1,
      "options": [],
      "placeholder": null,
      "required": true,
      "type": "…",
      "width": "…"
    }
  ],
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "lastSubmissionAt": "2026-11-21T14:00:00.000Z",
  "name": "Ana Lima",
  "notifyMemberIds": [
    "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
  ],
  "publicId": "…",
  "redirectUrl": "https://example.com",
  "requireCaptcha": true,
  "submissionCount": 1,
  "submitLabel": null,
  "successMessage": null,
  "templateId": null,
  "theme": {},
  "title": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "webhookSecret": "…"
}

PATCH/v1/forms/{id}

Modifie un formulaire : questions, apparence et suite après la réponse.

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
fieldsarray of objectNonmax items 50
fields[].keystringOuipattern ^[a-z][a-z0-9_]{0,39}$
fields[].type"text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden"Oui
fields[].labelstringOuimin length 1 · max length 200
fields[].placeholderstring | nullNon
fields[].helpstring | nullNon
fields[].requiredbooleanNondefault false
fields[].optionsarray of stringNonmax items 100
fields[].minnumber | nullNon
fields[].maxnumber | nullNon
fields[].defaultValuestring | nullNon
fields[].width"full" | "half"Nondefault "full"
fields[].mapTo"firstName" | "lastName" | "fullName" | "email" | "phone" | "jobTitle" | "department" | "birthday" | "address" | "city" | "state" | "postalCode" | "country" | "marketingOptIn" | string | nullNon
submitLabelstring | nullNon
successMessagestring | nullNon
redirectUrlstring (uri) | null | ""Non
requireCaptchabooleanNon
contactMode"off" | "create_or_update" | "create_only"Non
contactOwnerIdstring | nullNon
actionsobjectNon
actions.listIdsarray of string (uuid)Nonmax items 20
actions.tagIdsarray of string (uuid)Nonmax items 50
actions.webhookobjectNon
actions.webhook.enabledbooleanNondefault false
actions.webhook.urlstring (uri) | ""Nondefault ""
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
activebooleanNon

Réponse

43 champs
ChampTypeToujours présent
actionsobjectOui
actions.listIdsarray of string (uuid)Oui
actions.tagIdsarray of string (uuid)Oui
actions.webhookobjectOui
actions.webhook.enabledbooleanOui
actions.webhook.urlstringOui
activebooleanOui
contactModestringOui
contactOwnerIdstring (uuid)Oui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
descriptionnull dans les exemplesOui
embedScriptUrlstring (uri)Oui
fieldsarray of objectOui
fields[].defaultValuestring | nullOui
fields[].helpnull dans les exemplesOui
fields[].keystringOui
fields[].labelstringOui
fields[].mapTostring | nullOui
fields[].maxinteger | nullOui
fields[].mininteger | nullOui
fields[].optionsarray of stringOui
fields[].placeholdernull dans les exemplesOui
fields[].requiredbooleanOui
fields[].typestringOui
fields[].widthstringOui
idstring (uuid)Oui
lastSubmissionAtstring | null (date-time)Oui
namestringOui
notifyMemberIdsarray of string (uuid)Oui
publicIdstringOui
redirectUrlstring | null (uri)Oui
requireCaptchabooleanOui
submissionCountintegerOui
submitLabelnull dans les exemplesOui
successMessagenull dans les exemplesOui
templateIdnull dans les exemplesOui
themeobjectOui
titlestring | nullOui
updatedAtstring (date-time)Oui
updatedBystring (uuid)Oui
urlstring (uri)Oui
webhookSecretstringOui
Exemple
curl -X PATCH "https://api.firmado.app/v1/forms/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Ana Lima",
  "title": "…",
  "description": "…",
  "fields": [
    {
      "key": "…",
      "type": "text",
      "label": "…",
      "placeholder": "…"
    }
  ]
}'

Réponse (200), avec des valeurs d’exemple :

{
  "actions": {
    "listIds": [
      "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
    ],
    "tagIds": [
      "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
    ],
    "webhook": {
      "enabled": true,
      "url": "https://example.com"
    }
  },
  "active": true,
  "contactMode": "…",
  "contactOwnerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "description": null,
  "embedScriptUrl": "https://example.com",
  "fields": [
    {
      "defaultValue": "…",
      "help": null,
      "key": "…",
      "label": "…",
      "mapTo": "…",
      "max": 1,
      "min": 1,
      "options": [],
      "placeholder": null,
      "required": true,
      "type": "…",
      "width": "…"
    }
  ],
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "lastSubmissionAt": "2026-11-21T14:00:00.000Z",
  "name": "Ana Lima",
  "notifyMemberIds": [
    "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
  ],
  "publicId": "…",
  "redirectUrl": "https://example.com",
  "requireCaptcha": true,
  "submissionCount": 1,
  "submitLabel": null,
  "successMessage": null,
  "templateId": null,
  "theme": {},
  "title": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "webhookSecret": "…"
}

GET/v1/forms/{id}/submissions

Liste les réponses d’un formulaire.

Lire/{id}/submissionsEn 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

20 champs
ChampTypeToujours présent
dataarray of objectOui
data[].answersarray of objectOui
data[].answers[].keystringOui
data[].answers[].labelstringOui
data[].answers[].typestringOui
data[].answers[].valuearray | boolean | integer | string | nullOui
data[].contactobject | nullOui
data[].contact.idstring (uuid)Oui
data[].contact.namestringOui
data[].contactIdstring | null (uuid)Oui
data[].createdAtstring (date-time)Oui
data[].formIdstring (uuid)Oui
data[].idstring (uuid)Oui
data[].pageUrlstring | null (uri)Oui
data[].sourcestringOui
data[].webhookErrornull dans les exemplesOui
data[].webhookStatusinteger | nullOui
pageintegerOui
pageSizeintegerOui
totalintegerOui
Exemple
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

{
  "data": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "answers": [],
      "source": "…",
      "pageUrl": "https://example.com",
      "webhookStatus": 1,
      "webhookError": null,
      "createdAt": "2026-11-21T14:00:00.000Z",
      "contact": {}
    }
  ],
  "page": 1,
  "pageSize": 1,
  "total": 1
}

POST/v1/forms/{id}/submissions

Envoie le formulaire depuis les systèmes de l’organisation, comme le ferait un visiteur (Pro).

Créer/{id}/submissionsEn cas de succès : 201.Permission : Créer.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui

Corps

ChampTypeObligatoireNotes
answersobject of anyOui

Réponse

2 champs
ChampTypeToujours présent
contactIdstring (uuid)Oui
idstring (uuid)Oui
Exemple
curl -X POST "https://api.firmado.app/v1/forms/{id}/submissions" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "answers": {}
}'

Réponse (201), avec des valeurs d’exemple :

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}

DELETE/v1/forms/{id}/submissions/{submissionId}

Supprime une réponse.

Supprimer/{id}/submissions/{submissionId}En cas de succès : 204.Permission : Supprimer.

Paramètres de chemin

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

GET/v1/forms/{id}/submissions/{submissionId}

Renvoie une réponse avec ses valeurs.

Lire/{id}/submissions/{submissionId}En cas de succès : 200.Permission : Lire.

Paramètres de chemin

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

GET/v1/forms/{id}/submissions/export

Télécharge les réponses d’un formulaire en CSV.

Lire/{id}/submissions/exportEn cas de succès : 200.Permission : Lire.

Paramètres de chemin

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

POST/v1/forms/{id}/webhook/test

Envoie une réponse fictive au webhook du formulaire et dit comment cela s’est passé.

Modifier/{id}/webhook/testEn cas de succès : 200.Permission : Modifier.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui

Corps

ChampTypeObligatoireNotes
urlstring (uri)Nonmax length 2000

Réponse

2 champs
ChampTypeToujours présent
errornull dans les exemplesOui
statusintegerOui
Exemple
curl -X POST "https://api.firmado.app/v1/forms/{id}/webhook/test" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com"
}'

Réponse (200), avec des valeurs d’exemple :

{
  "status": 1,
  "error": null
}

GET/v1/forms/look

L’apparence dont part l’aperçu d’un formulaire ; 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/forms/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.

  • form.createdCréer
  • form.updatedModifier
  • form.deletedSupprimer
  • form.submittedCréer
  • form.submission_deletedSupprimer