Arquivos compartilhados

Arquivos compartilhados por uma página, livres, com formulário ou pagamento.

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/shared-files

Lista os arquivos compartilhados.

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

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

POST/v1/shared-files

Compartilha um arquivo numa página pública: aberto, atrás de um formulário ou de um pagamento.

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

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

CampoTipoObrigatórioObservações
filestring (binary)Sim

Resposta

27 campos
CampoTipoSempre presente
accessstringSim
activebooleanSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
descriptionnull nos exemplosSim
downloadsintegerSim
downloads30integerSim
fileBytesintegerSim
fileKindstringSim
fileNamestringSim
formnull nos exemplosSim
formIdnull nos exemplosSim
idstring (uuid)Sim
issuenull nos exemplosSim
leadsintegerSim
priceAmountnull nos exemplosSim
priceCurrencynull nos exemplosSim
publicIdstringSim
salesintegerSim
templateIdnull nos exemplosSim
themeobjectSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
viewsintegerSim
views30integerSim
Exemplo
curl -X POST "https://api.firmado.app/v1/shared-files" \
  -H "X-Api-Key: fmd_..." \
  -F "file=@./file.pdf"

Resposta (201), com valores de exemplo:

{
  "access": "…",
  "active": true,
  "createdAt": "2026-11-21T14:00:00.000Z",
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "description": null,
  "downloads": 1,
  "downloads30": 1,
  "fileBytes": 1,
  "fileKind": "…",
  "fileName": "Ana Lima",
  "form": null,
  "formId": null,
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "issue": null,
  "leads": 1,
  "priceAmount": null,
  "priceCurrency": null,
  "publicId": "…",
  "sales": 1,
  "templateId": null,
  "theme": {},
  "title": "…",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "url": "https://example.com",
  "views": 1,
  "views30": 1
}

DELETE/v1/shared-files/{id}

Exclui um arquivo compartilhado e sua página.

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

GET/v1/shared-files/{id}

Retorna um arquivo compartilhado com suas configurações.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

27 campos
CampoTipoSempre presente
accessstringSim
activebooleanSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
descriptionnull nos exemplosSim
downloadsintegerSim
downloads30integerSim
fileBytesintegerSim
fileKindstringSim
fileNamestringSim
formnull nos exemplosSim
formIdnull nos exemplosSim
idstring (uuid)Sim
issuestringSim
leadsintegerSim
priceAmountnull nos exemplosSim
priceCurrencynull nos exemplosSim
publicIdstringSim
salesintegerSim
templateIdnull nos exemplosSim
themeobjectSim
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
viewsintegerSim
views30integerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicId": "…",
  "title": "…",
  "description": null,
  "fileName": "Ana Lima",
  "fileBytes": 1,
  "fileKind": "…",
  "access": "…",
  "formId": null,
  "priceAmount": null,
  "priceCurrency": null,
  "active": true,
  "templateId": null,
  "theme": {},
  "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",
  "form": null,
  "issue": "…",
  "views": 1,
  "views30": 1,
  "downloads": 1,
  "downloads30": 1,
  "leads": 1,
  "sales": 1
}

PATCH/v1/shared-files/{id}

Altera a página de um arquivo compartilhado e o que ela pede.

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
descriptionstring | nullNão
access"link" | "form" | "form_email"Não
formIdstring (uuid) | nullNão
priceAmountinteger | nullNão
priceCurrencystring | nullNão
activebooleanNão
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

31 campos
CampoTipoSempre presente
accessstringSim
activebooleanSim
createdAtstring (date-time)Sim
createdBystring (uuid)Sim
descriptionnull nos exemplosSim
downloadsintegerSim
downloads30integerSim
fileBytesintegerSim
fileKindstringSim
fileNamestringSim
formobject | nullSim
form.activebooleanSim
form.idstring (uuid)Sim
form.namestringSim
formIdstring | null (uuid)Sim
idstring (uuid)Sim
issuenull nos exemplosSim
leadsintegerSim
priceAmountinteger | nullSim
priceCurrencystring | nullSim
publicIdstringSim
salesintegerSim
templateIdstring | nullSim
themeobjectSim
theme.primaryColorstringNão
titlestringSim
updatedAtstring (date-time)Sim
updatedBystring (uuid)Sim
urlstring (uri)Sim
viewsintegerSim
views30integerSim
Exemplo
curl -X PATCH "https://api.firmado.app/v1/shared-files/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "title": "…",
  "description": "…",
  "access": "link",
  "formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10"
}'

Resposta (200), com valores de exemplo:

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicId": "…",
  "title": "…",
  "description": null,
  "fileName": "Ana Lima",
  "fileBytes": 1,
  "fileKind": "…",
  "access": "…",
  "formId": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "priceAmount": 1,
  "priceCurrency": "USD",
  "active": true,
  "templateId": "…",
  "theme": {
    "primaryColor": "…"
  },
  "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",
  "form": {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "name": "Ana Lima",
    "active": true
  },
  "issue": null,
  "views": 1,
  "views30": 1,
  "downloads": 1,
  "downloads30": 1,
  "leads": 1,
  "sales": 1
}

PUT/v1/shared-files/{id}/file

Substitui o arquivo; a página mantém o endereço.

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
Exemplo
curl -X PUT "https://api.firmado.app/v1/shared-files/{id}/file" \
  -H "X-Api-Key: fmd_..." \
  -F "file=@./file.pdf"

GET/v1/shared-files/{id}/leads

Quem recebeu o arquivo, e como.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Resposta

12 campos
CampoTipoSempre presente
[].contactobjectSim
[].contact.idstring (uuid)Sim
[].contact.namestringSim
[].createdAtstring (date-time)Sim
[].deliverystringSim
[].downloadsintegerSim
[].emailstring (email)Sim
[].emailedAtnull nos exemplosSim
[].expiresAtstring (date-time)Sim
[].idstring (uuid)Sim
[].lastDownloadAtstring (date-time)Sim
[].statusstringSim
Exemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}/leads" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

[
  {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "status": "…",
    "delivery": "…",
    "email": "[email protected]",
    "contact": {
      "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
      "name": "Ana Lima"
    },
    "downloads": 1,
    "lastDownloadAt": "2026-11-21T14:00:00.000Z",
    "expiresAt": "2026-11-21T14:00:00.000Z",
    "emailedAt": null,
    "createdAt": "2026-11-21T14:00:00.000Z"
  }
]

POST/v1/shared-files/{id}/leads/{accessId}/resend

Envia de novo o link de download de alguém por e-mail.

Atualizar/{id}/leads/{accessId}/resendEm caso de sucesso: 204.Permissão: Atualizar.

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim
accessIdstringSim
Exemplo
curl -X POST "https://api.firmado.app/v1/shared-files/{id}/leads/{accessId}/resend" \
  -H "X-Api-Key: fmd_..."

GET/v1/shared-files/{id}/stats

Visitas e downloads de um arquivo compartilhado, por dia.

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

Parâmetros do caminho

CampoTipoObrigatórioObservações
idstringSim

Parâmetros da consulta

CampoTipoObrigatórioObservações
daysintegerNãodefault 30

Resposta

19 campos
CampoTipoSempre presente
countriesarray of anySim
daysintegerSim
devicesarray of objectSim
devices[].keystringSim
devices[].viewsintegerSim
downloadsintegerSim
leadsintegerSim
revenuearray of objectSim
revenue[].amountintegerSim
revenue[].currencystringSim
salesintegerSim
seriesarray of objectSim
series[].daystring (date)Sim
series[].downloadsintegerSim
series[].viewsintegerSim
sourcesarray of objectSim
sources[].keystringSim
sources[].viewsintegerSim
viewsintegerSim
Exemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}/stats" \
  -H "X-Api-Key: fmd_..."

Resposta (200), com valores de exemplo:

{
  "days": 1,
  "views": 1,
  "downloads": 1,
  "leads": 1,
  "sales": 1,
  "revenue": [
    {
      "currency": "USD",
      "amount": 1
    }
  ],
  "series": [
    {
      "day": "2026-11-21",
      "views": 1,
      "downloads": 1
    }
  ],
  "sources": [
    {
      "key": "…",
      "views": 1
    }
  ],
  "countries": [],
  "devices": [
    {
      "key": "…",
      "views": 1
    }
  ]
}

GET/v1/shared-files/look

O visual de que parte a prévia da página de um arquivo; 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/shared-files/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.

  • shared_file.createdCriar
  • shared_file.updatedAtualizar
  • shared_file.deletedExcluir
  • shared_file.requestedCriar