Pesquisas

Pesquisas de NPS e satisfação, convites e respostas.

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/surveys

Lista as pesquisas.

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

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

POST/v1/surveys

Cria uma pesquisa.

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

Corpo

CampoTipoObrigatórioObservações
namestringSimmin length 1 · max length 120
titlestring | nullNão
descriptionstring | nullNão
questionsarray of objectNãomax items 50
questions[].keystringSimpattern ^[a-z][a-z0-9_]{0,39}$
questions[].type"text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps"Sim
questions[].labelstringSimmin length 1 · max length 500
questions[].placeholderstring | nullNão
questions[].helpstring | nullNão
questions[].requiredbooleanNãodefault false
questions[].optionsarray of stringNãomax items 100
questions[].minnumber | nullNão
questions[].maxnumber | nullNão
questions[].defaultValuestring | nullNão
questions[].width"full" | "half"Nãodefault "full"
submitLabelstring | nullNão
successMessagestring | nullNão
status"draft" | "active" | "closed"Nãodefault "draft"
anonymousbooleanNãodefault false
singleResponsebooleanNãodefault true
responseWindowDaysinteger | nullNão
openLinkbooleanNãodefault false
closesAtstring (date-time) | nullNão
deliveryobjectNão
delivery.emailbooleanNãodefault true
delivery.whatsappobjectNão
delivery.whatsapp.enabledbooleanNãodefault false
delivery.whatsapp.connectionIdstring (uuid) | nullNão
delivery.whatsapp.templateNamestring | nullNão
delivery.whatsapp.languagestring | nullNão
delivery.whatsapp.paramsobject of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline"Não
delivery.reminderDaysBeforeinteger | nullNão
delivery.messagestring | nullNão
triggersobjectNão
triggers.listsarray of objectNãomax items 10
triggers.lists[].listIdstring (uuid)Sim
triggers.eventsarray of objectNãomax items 10
triggers.events[].type"deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed"Sim
triggers.events[].formIdstring (uuid) | nullNão
triggers.events[].delayHoursintegerNãomin 0 · max 1440 · default 0
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

Resposta

59 campos
CampoTipoSempre presente
activatedAtstring | null (date-time)Sim
anonymousbooleanSim
closesAtnull nos exemplosSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
deliveryobjectSim
delivery.emailbooleanSim
delivery.messagenull nos exemplosSim
delivery.reminderDaysBeforenull nos exemplosSim
delivery.whatsappobjectSim
delivery.whatsapp.connectionIdnull nos exemplosSim
delivery.whatsapp.enabledbooleanSim
delivery.whatsapp.languagenull nos exemplosSim
delivery.whatsapp.paramsobjectSim
delivery.whatsapp.templateNamenull nos exemplosSim
descriptionnull nos exemplosSim
idstring (uuid)Sim
namestringSim
notifyMemberIdsarray of string (uuid)Sim
openLinkbooleanSim
publicIdstringSim
questionsarray of objectSim
questions[].defaultValuenull nos exemplosSim
questions[].helpnull nos exemplosSim
questions[].keystringSim
questions[].labelstringSim
questions[].maxinteger | nullSim
questions[].minnull nos exemplosSim
questions[].optionsarray of stringSim
questions[].placeholdernull nos exemplosSim
questions[].requiredbooleanSim
questions[].typestringSim
questions[].widthstringSim
responseWindowDaysinteger | nullSim
singleResponsebooleanSim
statsobjectSim
stats.answeredintegerSim
stats.expiredintegerSim
stats.invitedintegerSim
stats.lastResponseAtnull nos exemplosSim
stats.pendingintegerSim
stats.responseRatenull nos exemplosSim
stats.responsesintegerSim
statusstringSim
submitLabelnull nos exemplosSim
successMessagenull nos exemplosSim
templateIdnull nos exemplosSim
themeobjectSim
titlestring | nullSim
triggersobjectSim
triggers.eventsarray of objectSim
triggers.events[].delayHoursintegerSim
triggers.events[].formIdstring (uuid)Sim
triggers.events[].typestringSim
triggers.listsarray of objectSim
triggers.lists[].listIdstring (uuid)Sim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
Exemplo
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": "…"
    }
  ]
}'

Resposta (201), com valores de exemplo:

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

Exclui uma pesquisa 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/surveys/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/surveys/{id}

Retorna uma pesquisa com suas perguntas e configurações.

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

Parâmetros do caminho

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

PATCH/v1/surveys/{id}

Altera uma pesquisa: perguntas, visual, gatilhos e status.

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
questionsarray of objectNãomax items 50
questions[].keystringSimpattern ^[a-z][a-z0-9_]{0,39}$
questions[].type"text" | "textarea" | "email" | "phone" | "number" | "date" | "url" | "select" | "radio" | "checkboxes" | "checkbox" | "rating" | "nps"Sim
questions[].labelstringSimmin length 1 · max length 500
questions[].placeholderstring | nullNão
questions[].helpstring | nullNão
questions[].requiredbooleanNãodefault false
questions[].optionsarray of stringNãomax items 100
questions[].minnumber | nullNão
questions[].maxnumber | nullNão
questions[].defaultValuestring | nullNão
questions[].width"full" | "half"Nãodefault "full"
submitLabelstring | nullNão
successMessagestring | nullNão
status"draft" | "active" | "closed"Não
anonymousbooleanNão
singleResponsebooleanNão
responseWindowDaysinteger | nullNão
openLinkbooleanNão
closesAtstring (date-time) | nullNão
deliveryobjectNão
delivery.emailbooleanNãodefault true
delivery.whatsappobjectNão
delivery.whatsapp.enabledbooleanNãodefault false
delivery.whatsapp.connectionIdstring (uuid) | nullNão
delivery.whatsapp.templateNamestring | nullNão
delivery.whatsapp.languagestring | nullNão
delivery.whatsapp.paramsobject of "link" | "firstName" | "name" | "surveyTitle" | "organization" | "deadline"Não
delivery.reminderDaysBeforeinteger | nullNão
delivery.messagestring | nullNão
triggersobjectNão
triggers.listsarray of objectNãomax items 10
triggers.lists[].listIdstring (uuid)Sim
triggers.eventsarray of objectNãomax items 10
triggers.events[].type"deal.accepted" | "invoice.paid" | "form.submitted" | "appointment.completed"Sim
triggers.events[].formIdstring (uuid) | nullNão
triggers.events[].delayHoursintegerNãomin 0 · max 1440 · default 0
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

Resposta

55 campos
CampoTipoSempre presente
activatedAtstring (date-time)Sim
anonymousbooleanSim
closesAtnull nos exemplosSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
deliveryobjectSim
delivery.emailbooleanSim
delivery.messagenull nos exemplosSim
delivery.reminderDaysBeforenull nos exemplosSim
delivery.whatsappobjectSim
delivery.whatsapp.connectionIdnull nos exemplosSim
delivery.whatsapp.enabledbooleanSim
delivery.whatsapp.languagenull nos exemplosSim
delivery.whatsapp.paramsobjectSim
delivery.whatsapp.templateNamenull nos exemplosSim
descriptionnull nos exemplosSim
idstring (uuid)Sim
namestringSim
notifyMemberIdsarray of string (uuid)Sim
openLinkbooleanSim
publicIdstringSim
questionsarray of objectSim
questions[].defaultValuenull nos exemplosSim
questions[].helpnull nos exemplosSim
questions[].keystringSim
questions[].labelstringSim
questions[].maxinteger | nullSim
questions[].minnull nos exemplosSim
questions[].optionsarray of stringSim
questions[].placeholdernull nos exemplosSim
questions[].requiredbooleanSim
questions[].typestringSim
questions[].widthstringSim
responseWindowDaysinteger | nullSim
singleResponsebooleanSim
statsobjectSim
stats.answeredintegerSim
stats.expiredintegerSim
stats.invitedintegerSim
stats.lastResponseAtstring | null (date-time)Sim
stats.pendingintegerSim
stats.responseRatenull nos exemplosSim
stats.responsesintegerSim
statusstringSim
submitLabelnull nos exemplosSim
successMessagenull nos exemplosSim
templateIdnull nos exemplosSim
themeobjectSim
titlestring | nullSim
triggersobjectSim
triggers.eventsarray of anySim
triggers.listsarray of anySim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
Exemplo
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": "…"
    }
  ]
}'

Resposta (200), com valores de exemplo:

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

Copia uma pesquisa.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
namestringSimmin length 1 · max length 120
Exemplo
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

Os contatos convidados para uma pesquisa, e se responderam.

Ler/{id}/recipientsEm 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
status"pending" | "answered" | "expired"Não
qstringNãomax length 200

Resposta

27 campos
CampoTipoSempre presente
dataarray of objectSim
data[].addedBystring | null (uuid)Sim
data[].contactobjectSim
data[].contact.emailstring (email)Sim
data[].contact.idstring (uuid)Sim
data[].contact.namestringSim
data[].contact.phonenull nos exemplosSim
data[].contactIdstring (uuid)Sim
data[].expiresAtstring | null (date-time)Sim
data[].idstring (uuid)Sim
data[].invitedAtstring (date-time)Sim
data[].notifiedAtstring | null (date-time)Sim
data[].notifiedViaarray of stringSim
data[].notifyAtstring | null (date-time)Sim
data[].notifyErrornull nos exemplosSim
data[].openedAtnull nos exemplosSim
data[].remindedAtnull nos exemplosSim
data[].respondedAtstring | null (date-time)Sim
data[].responseCountintegerSim
data[].sourcestringSim
data[].sourceRefstring | nullSim
data[].statusstringSim
data[].surveyIdstring (uuid)Sim
data[].urlstring (uri)Sim
pageintegerSim
pageSizeintegerSim
totalintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys/{id}/recipients" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

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

Convida contatos, por id ou todos os de uma lista agora.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
contactIdsarray of string (uuid)Nãomax items 1000
listIdstring (uuid)Não

Resposta

3 campos
CampoTipoSempre presente
invitedintegerSim
limitedintegerSim
skippedintegerSim
Exemplo
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"
}'

Resposta (200), com valores de exemplo:

{
  "invited": 1,
  "skipped": 1,
  "limited": 1
}

DELETE/v1/surveys/{id}/recipients/{recipientId}

Remove um convite.

Atualizar/{id}/recipients/{recipientId}Em caso de sucesso: 204.Permissão: Atualizar.

Parâmetros do caminho

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

POST/v1/surveys/{id}/recipients/{recipientId}/resend

Envia de novo o link a um contato convidado.

Atualizar/{id}/recipients/{recipientId}/resendEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
recipientIdstringSim
Exemplo
curl -X POST "https://api.firmado.app/v1/surveys/{id}/recipients/{recipientId}/resend" \
  -H "X-Api-Key: fmd_..."

GET/v1/surveys/{id}/responses

Lista as respostas de uma pesquisa.

Ler/{id}/responsesEm 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

18 campos
CampoTipoSempre presente
dataarray of objectSim
data[].answersarray of objectSim
data[].answers[].keystringSim
data[].answers[].labelstringSim
data[].answers[].typestringSim
data[].answers[].valuearray | integer | string | nullSim
data[].contactobjectSim
data[].contact.idstring (uuid)Sim
data[].contact.namestringSim
data[].contactIdstring (uuid)Sim
data[].createdAtstring (date-time)Sim
data[].idstring (uuid)Sim
data[].recipientIdstring (uuid)Sim
data[].sourcestringSim
data[].surveyIdstring (uuid)Sim
pageintegerSim
pageSizeintegerSim
totalintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys/{id}/responses" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

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

Responde uma pesquisa pelos sistemas da própria organização, como um contato faria.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
answersobject of anySim
contactIdstring (uuid)Não
Exemplo
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}

Exclui uma resposta.

Excluir/{id}/responses/{responseId}Em caso de sucesso: 204.Permissão: Excluir.

Parâmetros do caminho

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

GET/v1/surveys/{id}/responses/{responseId}

Retorna uma resposta.

Ler/{id}/responses/{responseId}Em caso de sucesso: 200.Permissão: Ler.

Parâmetros do caminho

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

GET/v1/surveys/{id}/responses/export

Baixa as respostas de uma pesquisa em CSV.

Ler/{id}/responses/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/surveys/{id}/responses/export" \
  -H "X-Api-Key: fmd_..."

GET/v1/surveys/{id}/summary

Os resultados de uma pesquisa: nota, distribuição e respostas por pergunta.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

25 campos
CampoTipoSempre presente
dailyarray of objectSim
daily[].datestring (date)Sim
daily[].totalintegerSim
questionsarray of objectSim
questions[].answeredintegerSim
questions[].averagenumberNão
questions[].choicesarray of objectNão
questions[].choices[].countintegerSim
questions[].choices[].optionstringSim
questions[].distributionarray of objectNão
questions[].distribution[].countintegerSim
questions[].distribution[].valueintegerSim
questions[].keystringSim
questions[].labelstringSim
questions[].npsinteger | nullNão
questions[].samplesarray of stringNão
questions[].typestringSim
statsobjectSim
stats.answeredintegerSim
stats.expiredintegerSim
stats.invitedintegerSim
stats.lastResponseAtstring (date-time)Sim
stats.pendingintegerSim
stats.responseRateintegerSim
stats.responsesintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/surveys/{id}/summary" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

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

O visual de que parte a prévia de uma pesquisa; 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/surveys/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.

  • survey.createdCriar
  • survey.updatedAtualizar
  • survey.deletedExcluir
  • survey.recipients_addedAtualizar
  • survey.recipient_removedAtualizar
  • survey.respondedCriar
  • survey.response_deletedExcluir