Formulários

Formulários, a aparência e as respostas deles.

Valores dos exemplos

Digite uma vez e todos os exemplos desta página passam a usá-los. A chave de API fica só nesta página e nunca é guardada.

GET/v1/form-defaults

Com o que os novos formulários começam.

ListarEm caso de sucesso: 200.Permissão: Ler.

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

PUT/v1/form-defaults

Altera com o que os novos formulários começam.

Atualizar/Em caso de sucesso: 200.Permissão: Atualizar.

Corpo

CampoTipoObrigatórioObservações
fieldsarray of object | nullSim
submitLabelstring | nullNão
successMessagestring | nullNão
redirectUrlstring (uri) | null | ""Não
requireCaptchabooleanSim
contactMode"off" | "create_or_update" | "create_only"Sim

Resposta

18 campos
CampoTipoSempre presente
contactModestringSim
fieldsarray of objectSim
fields[].defaultValuenull nos exemplosSim
fields[].helpnull nos exemplosSim
fields[].keystringSim
fields[].labelstringSim
fields[].mapTostringSim
fields[].maxnull nos exemplosSim
fields[].minnull nos exemplosSim
fields[].optionsarray of anySim
fields[].placeholdernull nos exemplosSim
fields[].requiredbooleanSim
fields[].typestringSim
fields[].widthstringSim
redirectUrlnull nos exemplosSim
requireCaptchabooleanSim
submitLabelstringSim
successMessagestringSim
Exemplo
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": "…"
}'

Resposta (200), com valores de exemplo:

{
  "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

Lista os formulários.

ListarEm caso de sucesso: 200.Permissão: Ler.

Resposta

43 campos
CampoTipoSempre presente
[].actionsobjectSim
[].actions.listIdsarray of string (uuid)Sim
[].actions.tagIdsarray of string (uuid)Sim
[].actions.webhookobjectSim
[].actions.webhook.enabledbooleanSim
[].actions.webhook.urlstringSim
[].activebooleanSim
[].contactModestringSim
[].contactOwnerIdstring (uuid)Sim
[].createdAtstring (date-time)Sim
[].createdBystring (uuid)Sim
[].descriptionnull nos exemplosSim
[].embedScriptUrlstring (uri)Sim
[].fieldsarray of objectSim
[].fields[].defaultValuenull nos exemplosSim
[].fields[].helpnull nos exemplosSim
[].fields[].keystringSim
[].fields[].labelstringSim
[].fields[].mapTostringSim
[].fields[].maxnull nos exemplosSim
[].fields[].minnull nos exemplosSim
[].fields[].optionsarray of anySim
[].fields[].placeholdernull nos exemplosSim
[].fields[].requiredbooleanSim
[].fields[].typestringSim
[].fields[].widthstringSim
[].idstring (uuid)Sim
[].lastSubmissionAtstring (date-time)Sim
[].namestringSim
[].notifyMemberIdsarray of anySim
[].publicIdstringSim
[].redirectUrlnull nos exemplosSim
[].requireCaptchabooleanSim
[].submissionCountintegerSim
[].submitLabelnull nos exemplosSim
[].successMessagenull nos exemplosSim
[].templateIdnull nos exemplosSim
[].themeobjectSim
[].titlenull nos exemplosSim
[].updatedAtstring (date-time)Sim
[].updatedBystring (uuid)Sim
[].urlstring (uri)Sim
[].webhookSecretstringSim
Exemplo
curl -X GET "https://api.firmado.app/v1/forms" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

[
  {
    "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

Cria um formulário.

CriarEm caso de sucesso: 201.Permissão: Criar.

Corpo

CampoTipoObrigatórioObservações
namestringSimmin length 1 · max length 120
titlestring | nullNão
descriptionstring | nullNão
fieldsarray of objectNãomax items 50
fields[].keystringSimpattern ^[a-z][a-z0-9_]{0,39}$
fields[].type"text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden"Sim
fields[].labelstringSimmin length 1 · max length 200
fields[].placeholderstring | nullNão
fields[].helpstring | nullNão
fields[].requiredbooleanNãodefault false
fields[].optionsarray of stringNãomax items 100
fields[].minnumber | nullNão
fields[].maxnumber | nullNão
fields[].defaultValuestring | nullNão
fields[].width"full" | "half"Nãodefault "full"
fields[].mapTo"firstName" | "lastName" | "fullName" | "email" | "phone" | "jobTitle" | "department" | "birthday" | "address" | "city" | "state" | "postalCode" | "country" | "marketingOptIn" | string | nullNão
submitLabelstring | nullNão
successMessagestring | nullNão
redirectUrlstring (uri) | null | ""Não
requireCaptchabooleanNão
contactMode"off" | "create_or_update" | "create_only"Não
contactOwnerIdstring | nullNão
actionsobjectNão
actions.listIdsarray of string (uuid)Nãomax items 20
actions.tagIdsarray of string (uuid)Nãomax items 50
actions.webhookobjectNão
actions.webhook.enabledbooleanNãodefault false
actions.webhook.urlstring (uri) | ""Nãodefault ""
notifyMemberIdsarray of stringNãomax items 50
templateId"classic" | "modern" | "minimal" | "bold" | nullNão
themeobjectNão
theme.primaryColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNãopattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNãopattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nãomax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"Não
activebooleanNãodefault true

Resposta

43 campos
CampoTipoSempre presente
actionsobjectSim
actions.listIdsarray of string (uuid)Sim
actions.tagIdsarray of string (uuid)Sim
actions.webhookobjectSim
actions.webhook.enabledbooleanSim
actions.webhook.urlstringSim
activebooleanSim
contactModestringSim
contactOwnerIdstring (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
descriptionnull nos exemplosSim
embedScriptUrlstring (uri)Sim
fieldsarray of objectSim
fields[].defaultValuestring | nullSim
fields[].helpnull nos exemplosSim
fields[].keystringSim
fields[].labelstringSim
fields[].mapTostring | nullSim
fields[].maxinteger | nullSim
fields[].mininteger | nullSim
fields[].optionsarray of stringSim
fields[].placeholdernull nos exemplosSim
fields[].requiredbooleanSim
fields[].typestringSim
fields[].widthstringSim
idstring (uuid)Sim
lastSubmissionAtnull nos exemplosSim
namestringSim
notifyMemberIdsarray of string (uuid)Sim
publicIdstringSim
redirectUrlstring | null (uri)Sim
requireCaptchabooleanSim
submissionCountintegerSim
submitLabelstring | nullSim
successMessagestring | nullSim
templateIdnull nos exemplosSim
themeobjectSim
titlestring | nullSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
webhookSecretstringSim
Exemplo
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": "…"
    }
  ]
}'

Resposta (201), com valores de exemplo:

{
  "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}

Exclui um formulário e suas respostas.

ExcluirEm caso de sucesso: 204.Permissão: Excluir.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
Exemplo
curl -X DELETE "https://api.firmado.app/v1/forms/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/forms/{id}

Retorna um formulário com suas perguntas e configurações.

Ver umEm caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

43 campos
CampoTipoSempre presente
actionsobjectSim
actions.listIdsarray of string (uuid)Sim
actions.tagIdsarray of string (uuid)Sim
actions.webhookobjectSim
actions.webhook.enabledbooleanSim
actions.webhook.urlstringSim
activebooleanSim
contactModestringSim
contactOwnerIdstring (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
descriptionnull nos exemplosSim
embedScriptUrlstring (uri)Sim
fieldsarray of objectSim
fields[].defaultValuestring | nullSim
fields[].helpnull nos exemplosSim
fields[].keystringSim
fields[].labelstringSim
fields[].mapTostring | nullSim
fields[].maxinteger | nullSim
fields[].mininteger | nullSim
fields[].optionsarray of stringSim
fields[].placeholdernull nos exemplosSim
fields[].requiredbooleanSim
fields[].typestringSim
fields[].widthstringSim
idstring (uuid)Sim
lastSubmissionAtstring (date-time)Sim
namestringSim
notifyMemberIdsarray of string (uuid)Sim
publicIdstringSim
redirectUrlstring | null (uri)Sim
requireCaptchabooleanSim
submissionCountintegerSim
submitLabelnull nos exemplosSim
successMessagenull nos exemplosSim
templateIdnull nos exemplosSim
themeobjectSim
titlestring | nullSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
webhookSecretstringSim
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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}

Altera um formulário: perguntas, visual e o que acontece depois da resposta.

AtualizarEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
namestringNãomin length 1 · max length 120
titlestring | nullNão
descriptionstring | nullNão
fieldsarray of objectNãomax items 50
fields[].keystringSimpattern ^[a-z][a-z0-9_]{0,39}$
fields[].type"text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "hidden"Sim
fields[].labelstringSimmin length 1 · max length 200
fields[].placeholderstring | nullNão
fields[].helpstring | nullNão
fields[].requiredbooleanNãodefault false
fields[].optionsarray of stringNãomax items 100
fields[].minnumber | nullNão
fields[].maxnumber | nullNão
fields[].defaultValuestring | nullNão
fields[].width"full" | "half"Nãodefault "full"
fields[].mapTo"firstName" | "lastName" | "fullName" | "email" | "phone" | "jobTitle" | "department" | "birthday" | "address" | "city" | "state" | "postalCode" | "country" | "marketingOptIn" | string | nullNão
submitLabelstring | nullNão
successMessagestring | nullNão
redirectUrlstring (uri) | null | ""Não
requireCaptchabooleanNão
contactMode"off" | "create_or_update" | "create_only"Não
contactOwnerIdstring | nullNão
actionsobjectNão
actions.listIdsarray of string (uuid)Nãomax items 20
actions.tagIdsarray of string (uuid)Nãomax items 50
actions.webhookobjectNão
actions.webhook.enabledbooleanNãodefault false
actions.webhook.urlstring (uri) | ""Nãodefault ""
notifyMemberIdsarray of stringNãomax items 50
templateId"classic" | "modern" | "minimal" | "bold" | nullNão
themeobjectNão
theme.primaryColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNãopattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNãopattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNãopattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nãomax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"Não
activebooleanNão

Resposta

43 campos
CampoTipoSempre presente
actionsobjectSim
actions.listIdsarray of string (uuid)Sim
actions.tagIdsarray of string (uuid)Sim
actions.webhookobjectSim
actions.webhook.enabledbooleanSim
actions.webhook.urlstringSim
activebooleanSim
contactModestringSim
contactOwnerIdstring (uuid)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
descriptionnull nos exemplosSim
embedScriptUrlstring (uri)Sim
fieldsarray of objectSim
fields[].defaultValuestring | nullSim
fields[].helpnull nos exemplosSim
fields[].keystringSim
fields[].labelstringSim
fields[].mapTostring | nullSim
fields[].maxinteger | nullSim
fields[].mininteger | nullSim
fields[].optionsarray of stringSim
fields[].placeholdernull nos exemplosSim
fields[].requiredbooleanSim
fields[].typestringSim
fields[].widthstringSim
idstring (uuid)Sim
lastSubmissionAtstring | null (date-time)Sim
namestringSim
notifyMemberIdsarray of string (uuid)Sim
publicIdstringSim
redirectUrlstring | null (uri)Sim
requireCaptchabooleanSim
submissionCountintegerSim
submitLabelnull nos exemplosSim
successMessagenull nos exemplosSim
templateIdnull nos exemplosSim
themeobjectSim
titlestring | nullSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
webhookSecretstringSim
Exemplo
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": "…"
    }
  ]
}'

Resposta (200), com valores de exemplo:

{
  "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

Lista as respostas de um formulário.

Ler/{id}/submissionsEm caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Parâmetros da consulta

CampoTipoObrigatórioObservações
pageintegerNãomin 1 · default 1
pageSizeintegerNãomin 1 · max 100 · default 25

Resposta

20 campos
CampoTipoSempre presente
dataarray of objectSim
data[].answersarray of objectSim
data[].answers[].keystringSim
data[].answers[].labelstringSim
data[].answers[].typestringSim
data[].answers[].valuearray | boolean | integer | string | nullSim
data[].contactobject | nullSim
data[].contact.idstring (uuid)Sim
data[].contact.namestringSim
data[].contactIdstring | null (uuid)Sim
data[].createdAtstring (date-time)Sim
data[].formIdstring (uuid)Sim
data[].idstring (uuid)Sim
data[].pageUrlstring | null (uri)Sim
data[].sourcestringSim
data[].webhookErrornull nos exemplosSim
data[].webhookStatusinteger | nullSim
pageintegerSim
pageSizeintegerSim
totalintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "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

Envia o formulário pelos sistemas da própria organização, como um visitante faria (Pro).

Criar/{id}/submissionsEm caso de sucesso: 201.Permissão: Criar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
answersobject of anySim

Resposta

2 campos
CampoTipoSempre presente
contactIdstring (uuid)Sim
idstring (uuid)Sim
Exemplo
curl -X POST "https://api.firmado.app/v1/forms/{id}/submissions" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "answers": {}
}'

Resposta (201), com valores de exemplo:

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

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

Exclui uma resposta.

Excluir/{id}/submissions/{submissionId}Em caso de sucesso: 204.Permissão: Excluir.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
submissionIdstringSim
Exemplo
curl -X DELETE "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}" \
  -H "X-Api-Key: fmd_..."

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

Retorna uma resposta com seus valores.

Ler/{id}/submissions/{submissionId}Em caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
submissionIdstringSim
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions/{submissionId}" \
  -H "X-Api-Key: fmd_..."

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

Baixa as respostas de um formulário em CSV.

Ler/{id}/submissions/exportEm caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/{id}/submissions/export" \
  -H "X-Api-Key: fmd_..."

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

Envia uma resposta inventada ao webhook do formulário e diz como foi.

Atualizar/{id}/webhook/testEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
urlstring (uri)Nãomax length 2000

Resposta

2 campos
CampoTipoSempre presente
errornull nos exemplosSim
statusintegerSim
Exemplo
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"
}'

Resposta (200), com valores de exemplo:

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

GET/v1/forms/look

O visual de que parte a prévia de um formulário; não salva nada.

Ler/lookEm caso de sucesso: 200.Permissão: Ler.

Parâmetros da consulta

CampoTipoObrigatórioObservações
templateId"classic" | "modern" | "minimal" | "bold"Não

Resposta

12 campos
CampoTipoSempre presente
organizationobjectSim
organization.languagestringSim
organization.namestringSim
templateIdstringSim
themeobjectSim
theme.accentColorstringSim
theme.backgroundColorstringSim
theme.bodyFontstringSim
theme.cornerRadiusstringSim
theme.headingFontstringSim
theme.primaryColorstringSim
theme.textColorstringSim
Exemplo
curl -X GET "https://api.firmado.app/v1/forms/look" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "organization": {
    "name": "Ana Lima",
    "language": "…"
  },
  "templateId": "…",
  "theme": {
    "primaryColor": "…",
    "accentColor": "…",
    "backgroundColor": "…",
    "textColor": "…",
    "headingFont": "…",
    "bodyFont": "…",
    "cornerRadius": "…"
  }
}

Eventos de webhook

Mudanças desta funcionalidade que os webhooks podem enviar.

  • form.createdCriar
  • form.updatedAtualizar
  • form.deletedExcluir
  • form.submittedCriar
  • form.submission_deletedExcluir