Shared files

Files shared from a page, open, behind a form or a payment.

Values for the examples

Type them once and every example on this page uses them. The API key stays on this page only and is never saved.

GET/v1/shared-files

Lists the shared files.

ListOn success: 200.Permission: Read.

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

POST/v1/shared-files

Shares a file from a public page: open, behind a form or a payment.

CreateOn success: 201.Permission: Create.

Body: a multipart form, with the file in `file`

FieldTypeRequiredNotes
filestring (binary)Yes

Response

27 fields
FieldTypeAlways there
accessstringYes
activebooleanYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
descriptionnull in the examplesYes
downloadsintegerYes
downloads30integerYes
fileBytesintegerYes
fileKindstringYes
fileNamestringYes
formnull in the examplesYes
formIdnull in the examplesYes
idstring (uuid)Yes
issuenull in the examplesYes
leadsintegerYes
priceAmountnull in the examplesYes
priceCurrencynull in the examplesYes
publicIdstringYes
salesintegerYes
templateIdnull in the examplesYes
themeobjectYes
titlestringYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlstring (uri)Yes
viewsintegerYes
views30integerYes
Example
curl -X POST "https://api.firmado.app/v1/shared-files" \
  -H "X-Api-Key: fmd_..." \
  -F "file=@./file.pdf"

Response (201), with sample values:

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

Deletes a shared file and its page.

DeleteOn success: 204.Permission: Delete.

Path parameters

FieldTypeRequiredNotes
idstringYes
Example
curl -X DELETE "https://api.firmado.app/v1/shared-files/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/shared-files/{id}

Returns a shared file with its settings.

Get oneOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

27 fields
FieldTypeAlways there
accessstringYes
activebooleanYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
descriptionnull in the examplesYes
downloadsintegerYes
downloads30integerYes
fileBytesintegerYes
fileKindstringYes
fileNamestringYes
formnull in the examplesYes
formIdnull in the examplesYes
idstring (uuid)Yes
issuestringYes
leadsintegerYes
priceAmountnull in the examplesYes
priceCurrencynull in the examplesYes
publicIdstringYes
salesintegerYes
templateIdnull in the examplesYes
themeobjectYes
titlestringYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlstring (uri)Yes
viewsintegerYes
views30integerYes
Example
curl -X GET "https://api.firmado.app/v1/shared-files/{id}" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

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

Changes a shared file’s page and what it asks for.

UpdateOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body

FieldTypeRequiredNotes
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

Response

31 fields
FieldTypeAlways there
accessstringYes
activebooleanYes
createdAtstring (date-time)Yes
createdBystring (uuid)Yes
descriptionnull in the examplesYes
downloadsintegerYes
downloads30integerYes
fileBytesintegerYes
fileKindstringYes
fileNamestringYes
formobject | nullYes
form.activebooleanYes
form.idstring (uuid)Yes
form.namestringYes
formIdstring | null (uuid)Yes
idstring (uuid)Yes
issuenull in the examplesYes
leadsintegerYes
priceAmountinteger | nullYes
priceCurrencystring | nullYes
publicIdstringYes
salesintegerYes
templateIdstring | nullYes
themeobjectYes
theme.primaryColorstringNo
titlestringYes
updatedAtstring (date-time)Yes
updatedBystring (uuid)Yes
urlstring (uri)Yes
viewsintegerYes
views30integerYes
Example
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"
}'

Response (200), with sample values:

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

Replaces the file; the page keeps its address.

Update/{id}/fileOn success: 200.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes

Body: a multipart form, with the file in `file`

FieldTypeRequiredNotes
filestring (binary)Yes
Example
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

Who got the file, and how.

Read/{id}/leadsOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Response

12 fields
FieldTypeAlways there
[].contactobjectYes
[].contact.idstring (uuid)Yes
[].contact.namestringYes
[].createdAtstring (date-time)Yes
[].deliverystringYes
[].downloadsintegerYes
[].emailstring (email)Yes
[].emailedAtnull in the examplesYes
[].expiresAtstring (date-time)Yes
[].idstring (uuid)Yes
[].lastDownloadAtstring (date-time)Yes
[].statusstringYes
Example
curl -X GET "https://api.firmado.app/v1/shared-files/{id}/leads" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

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

Emails someone their download link again.

Update/{id}/leads/{accessId}/resendOn success: 204.Permission: Update.

Path parameters

FieldTypeRequiredNotes
idstringYes
accessIdstringYes
Example
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

Views and downloads of a shared file, per day.

Read/{id}/statsOn success: 200.Permission: Read.

Path parameters

FieldTypeRequiredNotes
idstringYes

Query parameters

FieldTypeRequiredNotes
daysintegerNodefault 30

Response

19 fields
FieldTypeAlways there
countriesarray of anyYes
daysintegerYes
devicesarray of objectYes
devices[].keystringYes
devices[].viewsintegerYes
downloadsintegerYes
leadsintegerYes
revenuearray of objectYes
revenue[].amountintegerYes
revenue[].currencystringYes
salesintegerYes
seriesarray of objectYes
series[].daystring (date)Yes
series[].downloadsintegerYes
series[].viewsintegerYes
sourcesarray of objectYes
sources[].keystringYes
sources[].viewsintegerYes
viewsintegerYes
Example
curl -X GET "https://api.firmado.app/v1/shared-files/{id}/stats" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

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

The look a shared file’s page preview starts from; saves nothing.

Read/lookOn success: 200.Permission: Read.

Query parameters

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

Response

12 fields
FieldTypeAlways there
organizationobjectYes
organization.languagestringYes
organization.namestringYes
templateIdstringYes
themeobjectYes
theme.accentColorstringYes
theme.backgroundColorstringYes
theme.bodyFontstringYes
theme.cornerRadiusstringYes
theme.headingFontstringYes
theme.primaryColorstringYes
theme.textColorstringYes
Example
curl -X GET "https://api.firmado.app/v1/shared-files/look" \
  -H "X-Api-Key: fmd_..."

Response (200), with sample values:

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

Webhook events

Changes of this feature that webhooks can send.

  • shared_file.createdCreate
  • shared_file.updatedUpdate
  • shared_file.deletedDelete
  • shared_file.requestedCreate