Archivos compartidos

Archivos compartidos desde una página, libres, con formulario o pago.

Valores de los ejemplos

Escríbelos una vez y todos los ejemplos de esta página los usan. La clave de API se queda solo en esta página y nunca se guarda.

GET/v1/shared-files

Lista los archivos compartidos.

ListarSi va bien: 200.Permiso: Leer.

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

POST/v1/shared-files

Comparte un archivo en una página pública: abierto, tras un formulario o un pago.

CrearSi va bien: 201.Permiso: Crear.

Cuerpo: un formulario multipart, con el archivo en `file`

CampoTipoObligatorioNotas
filestring (binary)Sí

Respuesta

27 campos
CampoTipoSiempre presente
accessstringSí
activebooleanSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
descriptionnull en los ejemplosSí
downloadsintegerSí
downloads30integerSí
fileBytesintegerSí
fileKindstringSí
fileNamestringSí
formnull en los ejemplosSí
formIdnull en los ejemplosSí
idstring (uuid)Sí
issuenull en los ejemplosSí
leadsintegerSí
priceAmountnull en los ejemplosSí
priceCurrencynull en los ejemplosSí
publicIdstringSí
salesintegerSí
templateIdnull en los ejemplosSí
themeobjectSí
titlestringSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
urlstring (uri)Sí
viewsintegerSí
views30integerSí
Ejemplo
curl -X POST "https://api.firmado.app/v1/shared-files" \
  -H "X-Api-Key: fmd_..." \
  -F "file=@./file.pdf"

Respuesta (201), con valores de ejemplo:

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

Elimina un archivo compartido y su página.

EliminarSi va bien: 204.Permiso: Eliminar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí
Ejemplo
curl -X DELETE "https://api.firmado.app/v1/shared-files/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/shared-files/{id}

Devuelve un archivo compartido con sus ajustes.

Ver unoSi va bien: 200.Permiso: Leer.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Respuesta

27 campos
CampoTipoSiempre presente
accessstringSí
activebooleanSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
descriptionnull en los ejemplosSí
downloadsintegerSí
downloads30integerSí
fileBytesintegerSí
fileKindstringSí
fileNamestringSí
formnull en los ejemplosSí
formIdnull en los ejemplosSí
idstring (uuid)Sí
issuestringSí
leadsintegerSí
priceAmountnull en los ejemplosSí
priceCurrencynull en los ejemplosSí
publicIdstringSí
salesintegerSí
templateIdnull en los ejemplosSí
themeobjectSí
titlestringSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
urlstring (uri)Sí
viewsintegerSí
views30integerSí
Ejemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

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

Cambia la página de un archivo compartido y lo que pide.

ActualizarSi va bien: 200.Permiso: Actualizar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Cuerpo

CampoTipoObligatorioNotas
titlestringNomin length 1 · max length 200
descriptionstring | nullNo
access"link" | "form" | "form_email"No
formIdstring (uuid) | nullNo
priceAmountinteger | nullNo
priceCurrencystring | nullNo
activebooleanNo
templateId"classic" | "modern" | "minimal" | "bold" | nullNo
themeobjectNo
theme.primaryColorstringNopattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNopattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNopattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNopattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNopattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNopattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nomax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"No

Respuesta

31 campos
CampoTipoSiempre presente
accessstringSí
activebooleanSí
createdAtstring (date-time)Sí
createdBystring (uuid)Sí
descriptionnull en los ejemplosSí
downloadsintegerSí
downloads30integerSí
fileBytesintegerSí
fileKindstringSí
fileNamestringSí
formobject | nullSí
form.activebooleanSí
form.idstring (uuid)Sí
form.namestringSí
formIdstring | null (uuid)Sí
idstring (uuid)Sí
issuenull en los ejemplosSí
leadsintegerSí
priceAmountinteger | nullSí
priceCurrencystring | nullSí
publicIdstringSí
salesintegerSí
templateIdstring | nullSí
themeobjectSí
theme.primaryColorstringNo
titlestringSí
updatedAtstring (date-time)Sí
updatedBystring (uuid)Sí
urlstring (uri)Sí
viewsintegerSí
views30integerSí
Ejemplo
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"
}'

Respuesta (200), con valores de ejemplo:

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

Reemplaza el archivo; la página mantiene su dirección.

Actualizar/{id}/fileSi va bien: 200.Permiso: Actualizar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Cuerpo: un formulario multipart, con el archivo en `file`

CampoTipoObligatorioNotas
filestring (binary)Sí
Ejemplo
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

Quién recibió el archivo, y cómo.

Leer/{id}/leadsSi va bien: 200.Permiso: Leer.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Respuesta

12 campos
CampoTipoSiempre presente
[].contactobjectSí
[].contact.idstring (uuid)Sí
[].contact.namestringSí
[].createdAtstring (date-time)Sí
[].deliverystringSí
[].downloadsintegerSí
[].emailstring (email)Sí
[].emailedAtnull en los ejemplosSí
[].expiresAtstring (date-time)Sí
[].idstring (uuid)Sí
[].lastDownloadAtstring (date-time)Sí
[].statusstringSí
Ejemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}/leads" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

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

Vuelve a enviar a alguien su enlace de descarga por correo.

Actualizar/{id}/leads/{accessId}/resendSi va bien: 204.Permiso: Actualizar.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí
accessIdstringSí
Ejemplo
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 y descargas de un archivo compartido, por día.

Leer/{id}/statsSi va bien: 200.Permiso: Leer.

Parámetros de ruta

CampoTipoObligatorioNotas
idstringSí

Parámetros de consulta

CampoTipoObligatorioNotas
daysintegerNodefault 30

Respuesta

19 campos
CampoTipoSiempre presente
countriesarray of anySí
daysintegerSí
devicesarray of objectSí
devices[].keystringSí
devices[].viewsintegerSí
downloadsintegerSí
leadsintegerSí
revenuearray of objectSí
revenue[].amountintegerSí
revenue[].currencystringSí
salesintegerSí
seriesarray of objectSí
series[].daystring (date)Sí
series[].downloadsintegerSí
series[].viewsintegerSí
sourcesarray of objectSí
sources[].keystringSí
sources[].viewsintegerSí
viewsintegerSí
Ejemplo
curl -X GET "https://api.firmado.app/v1/shared-files/{id}/stats" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

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

El aspecto del que parte la vista previa de la página de un archivo; no guarda nada.

Leer/lookSi va bien: 200.Permiso: Leer.

Parámetros de consulta

CampoTipoObligatorioNotas
templateId"classic" | "modern" | "minimal" | "bold"No

Respuesta

12 campos
CampoTipoSiempre presente
organizationobjectSí
organization.languagestringSí
organization.namestringSí
templateIdstringSí
themeobjectSí
theme.accentColorstringSí
theme.backgroundColorstringSí
theme.bodyFontstringSí
theme.cornerRadiusstringSí
theme.headingFontstringSí
theme.primaryColorstringSí
theme.textColorstringSí
Ejemplo
curl -X GET "https://api.firmado.app/v1/shared-files/look" \
  -H "X-Api-Key: fmd_..."

Respuesta (200), con valores de ejemplo:

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

Eventos de webhook

Cambios de esta funcionalidad que los webhooks pueden enviar.

  • shared_file.createdCrear
  • shared_file.updatedActualizar
  • shared_file.deletedEliminar
  • shared_file.requestedCrear