Aprovações

PDFs enviados para aprovação e quem aprovou.

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

Lista os documentos enviados para aprovação.

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

Parâmetros da consulta

CampoTipoObrigatórioObservações
pageintegerNãomin 1 · default 1
pageSizeintegerNãomin 1 · max 100 · default 25
qstringNãomin length 1 · max length 200
archivedstringNão
status"draft" | "sent" | "approved" | "declined" | "canceled"Não
contactIdstring (uuid)Não
companyIdstring (uuid)Não
ownerIdstringNãomin length 1
createdFromstring (date-time)Não
createdBeforestring (date-time)Não
sort"createdAt" | "title"Nãodefault "createdAt"
order"asc" | "desc"Nãodefault "desc"

Resposta

28 campos
CampoTipoSempre presente
dataarray of objectSim
data[].approversobjectSim
data[].approvers.approvedintegerSim
data[].approvers.totalintegerSim
data[].canceledAtnull nos exemplosSim
data[].companynull nos exemplosSim
data[].companyIdnull nos exemplosSim
data[].completedAtstring | null (date-time)Sim
data[].createdAtstring (date-time)Sim
data[].createdBystring (uuid)Sim
data[].fileBytesinteger | nullSim
data[].fileHashstring | nullSim
data[].fileNamestring | nullSim
data[].hasFilebooleanSim
data[].idstring (uuid)Sim
data[].languagenull nos exemplosSim
data[].messagestring | nullSim
data[].organizationIdstring (uuid)Sim
data[].ownerIdstring (uuid)Sim
data[].sentAtstring | null (date-time)Sim
data[].statusstringSim
data[].titlestringSim
data[].updatedAtstring (date-time)Sim
data[].updatedBystring (uuid)Sim
data[].verifySignerEmailbooleanSim
pageintegerSim
pageSizeintegerSim
totalintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/approvals" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "data": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "title": "…",
      "message": "…",
      "status": "…",
      "companyId": null,
      "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "language": null,
      "verifySignerEmail": true,
      "fileName": "Ana Lima",
      "fileBytes": 1,
      "fileHash": "…",
      "sentAt": "2026-11-21T14:00:00.000Z",
      "completedAt": "2026-11-21T14:00:00.000Z",
      "canceledAt": null,
      "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",
      "hasFile": true,
      "company": null,
      "approvers": {}
    }
  ],
  "page": 1,
  "pageSize": 1,
  "total": 1
}

POST/v1/approvals

Cria um rascunho de aprovação com seus aprovadores.

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

Corpo

CampoTipoObrigatórioObservações
titlestringSimmin length 1 · max length 200
messagestring | nullNão
companyIdstring (uuid) | nullNão
language"pt" | "es" | "en" | "fr" | nullNão
verifySignerEmailbooleanNão
approversarray of objectNãomax items 20
approvers[].contactIdstring (uuid)Não
approvers[].emailstring (email)Nãomax length 320
approvers[].namestringNãomin length 1 · max length 200

Resposta

41 campos
CampoTipoSempre presente
approversarray of objectSim
approvers[].contactIdstring | null (uuid)Sim
approvers[].decidedAtnull nos exemplosSim
approvers[].declineReasonnull nos exemplosSim
approvers[].emailstring (email)Sim
approvers[].fileHashnull nos exemplosSim
approvers[].firstViewedAtnull nos exemplosSim
approvers[].idstring (uuid)Sim
approvers[].ipAddressnull nos exemplosSim
approvers[].lastViewedAtnull nos exemplosSim
approvers[].namestring | nullSim
approvers[].sendCountintegerSim
approvers[].sentAtnull nos exemplosSim
approvers[].signerNamenull nos exemplosSim
approvers[].signerTaxIdnull nos exemplosSim
approvers[].statusstringSim
approvers[].urlnull nos exemplosSim
approvers[].userAgentnull nos exemplosSim
approvers[].verificationnull nos exemplosSim
approvers[].viewCountintegerSim
canceledAtnull nos exemplosSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
completedAtnull nos exemplosSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
fileBytesnull nos exemplosSim
fileHashnull nos exemplosSim
fileNamenull nos exemplosSim
hasFilebooleanSim
idstring (uuid)Sim
languagenull nos exemplosSim
messagestring | nullSim
organizationIdstring (uuid)Sim
ownerIdstring (uuid)Sim
sentAtnull nos exemplosSim
statusstringSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
verifySignerEmailbooleanSim
Exemplo
curl -X POST "https://api.firmado.app/v1/approvals" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "title": "…",
  "message": "…",
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "language": "pt"
}'

Resposta (201), com valores de exemplo:

{
  "approvers": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "email": "[email protected]",
      "status": "…",
      "url": null,
      "sentAt": null,
      "sendCount": 1,
      "viewCount": 1,
      "firstViewedAt": null,
      "lastViewedAt": null,
      "decidedAt": null,
      "signerName": null,
      "signerTaxId": null,
      "fileHash": null,
      "ipAddress": null,
      "userAgent": null,
      "declineReason": null,
      "verification": null
    }
  ],
  "canceledAt": null,
  "company": null,
  "companyId": null,
  "completedAt": null,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "fileBytes": null,
  "fileHash": null,
  "fileName": null,
  "hasFile": true,
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "language": null,
  "message": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "sentAt": null,
  "status": "…",
  "title": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "verifySignerEmail": true
}

DELETE/v1/approvals/{id}

Exclui uma aprovação.

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

GET/v1/approvals/{id}

Retorna uma aprovação com a resposta de cada aprovador.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

44 campos
CampoTipoSempre presente
approversarray of objectSim
approvers[].contactIdstring | null (uuid)Sim
approvers[].decidedAtstring | null (date-time)Sim
approvers[].declineReasonstring | nullSim
approvers[].emailstring (email)Sim
approvers[].fileHashstring | nullSim
approvers[].firstViewedAtstring | null (date-time)Sim
approvers[].idstring (uuid)Sim
approvers[].ipAddressstring | nullSim
approvers[].lastViewedAtstring | null (date-time)Sim
approvers[].namestring | nullSim
approvers[].sendCountintegerSim
approvers[].sentAtstring (date-time)Sim
approvers[].signerNamestring | nullSim
approvers[].signerTaxIdstring | nullSim
approvers[].statusstringSim
approvers[].urlstring (uri)Sim
approvers[].userAgentnull nos exemplosSim
approvers[].verificationobject | nullSim
approvers[].verification.sendCountintegerSim
approvers[].verification.sentAtstring (date-time)Sim
approvers[].verification.verifiedAtstring | null (date-time)Sim
approvers[].viewCountintegerSim
canceledAtnull nos exemplosSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
completedAtstring (date-time)Sim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
fileBytesintegerSim
fileHashstringSim
fileNamestringSim
hasFilebooleanSim
idstring (uuid)Sim
languagenull nos exemplosSim
messagestring | nullSim
organizationIdstring (uuid)Sim
ownerIdstring (uuid)Sim
sentAtstring (date-time)Sim
statusstringSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
verifySignerEmailbooleanSim
Exemplo
curl -X GET "https://api.firmado.app/v1/approvals/{id}" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "title": "…",
  "message": "…",
  "status": "…",
  "companyId": null,
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "language": null,
  "verifySignerEmail": true,
  "fileName": "Ana Lima",
  "fileBytes": 1,
  "fileHash": "…",
  "sentAt": "2026-11-21T14:00:00.000Z",
  "completedAt": "2026-11-21T14:00:00.000Z",
  "canceledAt": null,
  "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",
  "hasFile": true,
  "company": null,
  "approvers": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "email": "[email protected]",
      "status": "…",
      "url": "https://example.com",
      "sentAt": "2026-11-21T14:00:00.000Z",
      "sendCount": 1,
      "viewCount": 1,
      "firstViewedAt": "2026-11-21T14:00:00.000Z",
      "lastViewedAt": "2026-11-21T14:00:00.000Z",
      "decidedAt": "2026-11-21T14:00:00.000Z",
      "signerName": "Ana Lima",
      "signerTaxId": "…",
      "fileHash": "…",
      "ipAddress": "…",
      "userAgent": null,
      "declineReason": "…",
      "verification": {}
    }
  ]
}

PATCH/v1/approvals/{id}

Altera um rascunho de aprovação: título, mensagem, aprovadores e configurações.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo

CampoTipoObrigatórioObservações
titlestringNãomin length 1 · max length 200
messagestring | nullNão
companyIdstring (uuid) | nullNão
language"pt" | "es" | "en" | "fr" | nullNão
verifySignerEmailbooleanNão
approversarray of objectNãomax items 20
approvers[].contactIdstring (uuid)Não
approvers[].emailstring (email)Nãomax length 320
approvers[].namestringNãomin length 1 · max length 200
Exemplo
curl -X PATCH "https://api.firmado.app/v1/approvals/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "title": "…",
  "message": "…",
  "companyId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "language": "pt"
}'

POST/v1/approvals/{id}/approvers/{approverId}/resend

Envia de novo o link de um aprovador por e-mail.

Atualizar/{id}/approvers/{approverId}/resendEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
approverIdstringSim
Exemplo
curl -X POST "https://api.firmado.app/v1/approvals/{id}/approvers/{approverId}/resend" \
  -H "X-Api-Key: fmd_..."

POST/v1/approvals/{id}/approvers/{approverId}/verification/resend

Envia ao aprovador um novo link para confirmar o e-mail.

Atualizar/{id}/approvers/{approverId}/verification/resendEm caso de sucesso: 200.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
approverIdstringSim
Exemplo
curl -X POST "https://api.firmado.app/v1/approvals/{id}/approvers/{approverId}/verification/resend" \
  -H "X-Api-Key: fmd_..."

POST/v1/approvals/{id}/cancel

Cancela uma aprovação enviada; os links param de funcionar.

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

Parâmetros do caminho

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

GET/v1/approvals/{id}/file

Baixa o PDF da aprovação.

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

Parâmetros do caminho

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

PUT/v1/approvals/{id}/file

Envia o PDF a aprovar (só rascunhos), substituindo o anterior.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Corpo: um formulário multipart, com o arquivo em `file`

CampoTipoObrigatórioObservações
filestring (binary)Sim

Resposta

41 campos
CampoTipoSempre presente
approversarray of objectSim
approvers[].contactIdstring | null (uuid)Sim
approvers[].decidedAtnull nos exemplosSim
approvers[].declineReasonnull nos exemplosSim
approvers[].emailstring (email)Sim
approvers[].fileHashnull nos exemplosSim
approvers[].firstViewedAtnull nos exemplosSim
approvers[].idstring (uuid)Sim
approvers[].ipAddressnull nos exemplosSim
approvers[].lastViewedAtnull nos exemplosSim
approvers[].namestring | nullSim
approvers[].sendCountintegerSim
approvers[].sentAtnull nos exemplosSim
approvers[].signerNamenull nos exemplosSim
approvers[].signerTaxIdnull nos exemplosSim
approvers[].statusstringSim
approvers[].urlnull nos exemplosSim
approvers[].userAgentnull nos exemplosSim
approvers[].verificationnull nos exemplosSim
approvers[].viewCountintegerSim
canceledAtnull nos exemplosSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
completedAtnull nos exemplosSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
fileBytesintegerSim
fileHashstringSim
fileNamestringSim
hasFilebooleanSim
idstring (uuid)Sim
languagenull nos exemplosSim
messagestring | nullSim
organizationIdstring (uuid)Sim
ownerIdstring (uuid)Sim
sentAtnull nos exemplosSim
statusstringSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
verifySignerEmailbooleanSim
Exemplo
curl -X PUT "https://api.firmado.app/v1/approvals/{id}/file" \
  -H "X-Api-Key: fmd_..." \
  -F "file=@./file.pdf"

Resposta (200), com valores de exemplo:

{
  "approvers": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "email": "[email protected]",
      "status": "…",
      "url": null,
      "sentAt": null,
      "sendCount": 1,
      "viewCount": 1,
      "firstViewedAt": null,
      "lastViewedAt": null,
      "decidedAt": null,
      "signerName": null,
      "signerTaxId": null,
      "fileHash": null,
      "ipAddress": null,
      "userAgent": null,
      "declineReason": null,
      "verification": null
    }
  ],
  "canceledAt": null,
  "company": null,
  "companyId": null,
  "completedAt": null,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "fileBytes": 1,
  "fileHash": "…",
  "fileName": "Ana Lima",
  "hasFile": true,
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "language": null,
  "message": "…",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "sentAt": null,
  "status": "…",
  "title": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "verifySignerEmail": true
}

POST/v1/approvals/{id}/send

Envia o rascunho: cada aprovador recebe seu link por e-mail.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

41 campos
CampoTipoSempre presente
approversarray of objectSim
approvers[].contactIdstring | null (uuid)Sim
approvers[].decidedAtnull nos exemplosSim
approvers[].declineReasonnull nos exemplosSim
approvers[].emailstring (email)Sim
approvers[].fileHashnull nos exemplosSim
approvers[].firstViewedAtnull nos exemplosSim
approvers[].idstring (uuid)Sim
approvers[].ipAddressnull nos exemplosSim
approvers[].lastViewedAtnull nos exemplosSim
approvers[].namestring | nullSim
approvers[].sendCountintegerSim
approvers[].sentAtstring (date-time)Sim
approvers[].signerNamenull nos exemplosSim
approvers[].signerTaxIdnull nos exemplosSim
approvers[].statusstringSim
approvers[].urlstring (uri)Sim
approvers[].userAgentnull nos exemplosSim
approvers[].verificationnull nos exemplosSim
approvers[].viewCountintegerSim
canceledAtnull nos exemplosSim
companynull nos exemplosSim
companyIdnull nos exemplosSim
completedAtnull nos exemplosSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
fileBytesintegerSim
fileHashstringSim
fileNamestringSim
hasFilebooleanSim
idstring (uuid)Sim
languagenull nos exemplosSim
messagestring | nullSim
organizationIdstring (uuid)Sim
ownerIdstring (uuid)Sim
sentAtstring (date-time)Sim
statusstringSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
verifySignerEmailbooleanSim
Exemplo
curl -X POST "https://api.firmado.app/v1/approvals/{id}/send" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "organizationId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "title": "…",
  "message": "…",
  "status": "…",
  "companyId": null,
  "ownerId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "language": null,
  "verifySignerEmail": true,
  "fileName": "Ana Lima",
  "fileBytes": 1,
  "fileHash": "…",
  "sentAt": "2026-11-21T14:00:00.000Z",
  "completedAt": null,
  "canceledAt": null,
  "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",
  "hasFile": true,
  "company": null,
  "approvers": [
    {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "contactId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima",
      "email": "[email protected]",
      "status": "…",
      "url": "https://example.com",
      "sentAt": "2026-11-21T14:00:00.000Z",
      "sendCount": 1,
      "viewCount": 1,
      "firstViewedAt": null,
      "lastViewedAt": null,
      "decidedAt": null,
      "signerName": null,
      "signerTaxId": null,
      "fileHash": null,
      "ipAddress": null,
      "userAgent": null,
      "declineReason": null,
      "verification": null
    }
  ]
}

Eventos de webhook

Mudanças desta funcionalidade que os webhooks podem enviar.

  • approval.createdCriar
  • approval.updatedAtualizar
  • approval.sentAtualizar
  • approval.approvedAtualizar
  • approval.completedAtualizar
  • approval.declinedAtualizar
  • approval.canceledAtualizar
  • approval.deletedExcluir