Docs

Content API reference

Schema version 6.3.0

casadigital.pt hosts a multi-tenant backoffice where customers manage the content of their own websites. Each customer website fetches its content through the authenticated Site API (documented at /api-docs); only casadigital.pt talks to the database.

This page documents the content formats: the normalized database collections and the per-resource shapes served by the Site API. It exposes field formats only, never content.

These collections are NOT directly accessible over HTTP. Writes happen exclusively through the casadigital.pt backoffice and its AI seeding tools; reads happen through the per-resource Site API endpoints. See /api-docs for the Site API.

Endpoints

Tenant model

Every tenant is one document in the sites collection. Its key field (the siteKey) identifies the tenant; consumer apps authenticate with the site's API key, which resolves to this document.

All other content documents carry a siteId field referencing the owning sites document. companies and siteSettings are one-per-site; legalTexts is one-per-document-key; services, products, projects, posts, testimonials, faqs, locations and values are one-per-slug within a site; assets are one-per-pathname.

All documents also carry MongoDB _id, createdAt and updatedAt fields managed by the database layer; they are omitted from the tables below.

Contract scope

The platform owns design-agnostic business data only: business identity and contacts, opening hours, the services performed, the products sold, the projects published, the posts written, the testimonials received, the questions answered, locations, company values, and the legal documents the client maintains. Every client website has its own bespoke design, so page structure, layout, section copy and metadata (band headings, stat figures, call-to-action labels, intro blocks) live in the client site's own repository and are deliberately absent from this contract.

Each resource maps to one collection: settings to companies, services/products/projects/testimonials/faqs/locations/values to their per-slug collections (array position stored in each document's order field), posts to the posts collection (ordered by the publishedAt date each post carries rather than by a sort index), and legal to one legalTexts document per document key. Platform-only data never leaves: companies.availability is the schedule designer's working data (client sites read the schedule lines derived from it), posts.status decides whether a post is served at all rather than being served alongside it, and the whole siteSettings document holds backoffice preferences.

A service is work scoped per job and carries no price; a product is something sold at a stated price, stored as an amount plus its currency and billing period so each website can format it in its own style; a project is work already delivered, told as problem, solution and results; a post is something the business wrote, dated and published on its own decision; a testimonial is what somebody else said about the business, optionally rated and attributed; an FAQ is one question and its answer, grouped under a heading the tenant chose.

Resource responses omit siteId and every platform-only field, and they are fully defaulted: missing strings come back as empty strings and missing arrays as empty arrays. A site with no content yet returns valid empty resources rather than an error, so client sites can render an empty state.

One field is markup rather than text: a post's body is an HTML fragment. It is sanitised against a fixed element allowlist when the tenant saves it, so what the collection stores is already what may be rendered, and a consumer inserts it as HTML rather than escaping it. Every other text field on this contract is plain.

Two collections are served with a document withheld rather than flagged, so a consumer never has a state to check: an unpublished post, and a testimonial created but not yet written. Everything else in a collection is served as stored.

Every uploaded file lives in the assets collection, stored in Vercel Blob through the backoffice. The pathname is the storage key and stays internal: the Site API delivers each file as an absolute url on the store's CDN, which a client site uses directly. A service, a product, a testimonial or a post's cover embeds the pathname of its single image; a project references whole asset documents, so its files arrive with their kind, MIME type, name, size and pixel dimensions resolved. A post does both: the images inside its body carry their URLs in the markup, and the document lists the asset ids behind them so an image still in use is never retired.

Site API resources

GET /api/v1/settings

The business: identity, contacts, opening hours and social links. One per site.

FieldTypeRequiredDescription
namestringnoBusiness name as displayed across the site.
taglinestringnoOne-line slogan shown near the logo/footer. Portuguese.
descriptionstringnoShort description of the business, 1-2 sentences. Portuguese.
phonestringnoDisplay phone number, formatted for reading (e.g. "+351 912 345 678"). Empty string if none. Derive a tel: URI from it by stripping everything but + and digits.
emailstringnoPublic contact email. Empty string if none.
whatsappstringnoWhatsApp chat URL (e.g. "https://wa.me/351912345678"). Empty string if none.
appUrlstringnoMobile app store URL if the business has an app. Empty string if none.
schedulearray of objectnoOpening schedule rows, in display order.
schedule[].daysstringnoDay range label (e.g. "Seg – Sáb"). Portuguese.
schedule[].hoursstringnoOpening hours label (e.g. "09h – 19h" or "Fechado").
socialobjectnoSocial media profile links.
social.facebookstringnoFacebook page URL. Empty string if none.
social.instagramstringnoInstagram profile URL. Empty string if none.
social.linkedinstringnoLinkedIn page URL. Empty string if none.
social.xstringnoX/Twitter profile URL. Empty string if none.
social.youtubestringnoYouTube channel URL. Empty string if none.

GET /api/v1/services

Services offered by the business, in display order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].titlestringnoService name. Portuguese.
[].icon"truck" | "wrench" | "packageCheck" | "hammer" | "boxes" | "warehouse" | "arrowDownToLine" | "zap" | "clock" | "shieldCheck"yesIcon key from the fixed icon set (Lucide-style names).
[].imageobjectnoIllustrative image stored in Vercel Blob.
[].image.assetIdstringnoAsset document id, set by the backoffice after upload.
[].image.urlstringnoAbsolute URL of the image, served from the blob store's CDN. Use it directly as an image source; no API key is involved. Allow the host in your image optimiser.
[].image.altstringnoImage alt text. Portuguese.
[].image.widthintegernoImage width in pixels.
[].image.heightintegernoImage height in pixels.
[].tier"primary" | "featured" | "secondary"yesDisplay tier: "primary" for the main highlighted services, "featured" for the secondary highlights, "secondary" for the rest.
[].shortstringnoOne-sentence summary shown on service cards. Portuguese.
[].descriptionstringnoFull description. Portuguese.
[].bulletsarray of stringnoBullet-point highlights. Portuguese.

GET /api/v1/products

Products sold by the business, in display order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].titlestringnoProduct name. Portuguese.
[].icon"truck" | "wrench" | "packageCheck" | "hammer" | "boxes" | "warehouse" | "arrowDownToLine" | "zap" | "clock" | "shieldCheck"yesIcon key from the fixed icon set (Lucide-style names).
[].imageobjectnoIllustrative image stored in Vercel Blob.
[].image.assetIdstringnoAsset document id, set by the backoffice after upload.
[].image.urlstringnoAbsolute URL of the image, served from the blob store's CDN. Use it directly as an image source; no API key is involved. Allow the host in your image optimiser.
[].image.altstringnoImage alt text. Portuguese.
[].image.widthintegernoImage width in pixels.
[].image.heightintegernoImage height in pixels.
[].skustringnoInternal reference or article number. Empty string if none.
[].pricenumbernoPrice amount in the currency below. 0 means the price is not published.
[].currency"EUR" | "USD" | "GBP"noCurrency of the price amount.
[].pricePeriod"once" | "month" | "year"noBilling period the price refers to: "once" for a one-off price, "month" or "year" for a subscription.
[].priceNotestringnoShort qualifier shown next to the price (e.g. "IVA incluído"). Portuguese.
[].shortstringnoOne-sentence summary shown on product cards. Portuguese.
[].descriptionstringnoFull description. Portuguese.
[].bulletsarray of stringnoBullet-point highlights. Portuguese.
[].featuredbooleannoTrue for a product the website should highlight.
[].availablebooleannoFalse for a product kept on record but not currently sold.

GET /api/v1/projects

Projects published by the business, in display order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].titlestringnoName of the project, as the website should title it. Read this as the heading; a project stored before 6.1.0 may carry only `client`, so fall back to that when this is empty.
[].clientstringnoName of the client the work was delivered for. Empty when there is no client to name — the business's own product, or work it may not attribute.
[].problemstringnoThe situation the client was in. Portuguese.
[].solutionstringnoWhat the business did about it. Portuguese.
[].resultsstringnoWhat the client got out of it. Portuguese.
[].linksarray of objectnoRelated links, in display order.
[].links[].titlestringnoLink label. Portuguese. May be empty — fall back to showing the URL.
[].links[].urlstringnoAbsolute URL, including the scheme.
[].assetsarray of objectnoEvery attached file in one list, in display order. Group them by `kind` if your design shows media separately from documents.
[].assets[].kind"image" | "video" | "document"yesWhat the file is, derived from its MIME type: "image" and "video" are media, everything else is a "document". Split a list on this rather than on the file extension.
[].assets[].urlstringyesAbsolute URL of the file, served from the blob store's CDN. Use it directly — as an image source, a video source, or the href of a download link — with no API key involved.
[].assets[].contentTypestringnoMIME type the file was stored with (e.g. "image/webp", "application/pdf").
[].assets[].namestringnoOriginal filename at upload time. Use it as the download label for a document.
[].assets[].altstringnoAlt text, when one was written. Often empty — fall back to the surrounding context.
[].assets[].sizeintegernoFile size in bytes, when known.
[].assets[].widthintegernoIntrinsic width in pixels. Present for media, absent for documents.
[].assets[].heightintegernoIntrinsic height in pixels. Present for media, absent for documents.

GET /api/v1/posts

Published posts, newest first by publishedAt. Drafts are absent, so the list is exactly what may be shown.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].titlestringnoHeadline of the post. Portuguese.
[].excerptstringnoStandfirst: one or two sentences summarising the post. Plain text, no markup — it is written for a card and for a meta description. Portuguese.
[].bodystringnoThe post itself, as an HTML fragment (no <html> or <body> wrapper). Render it as HTML; it is sanitised on save against a fixed allowlist, so the only elements it can contain are p, h2, h3, h4, strong, em, u, s, code, pre, blockquote, ul, ol, li, a, img, hr, br. Headings start at h2, because the page's h1 is the title above. An <a> carries href, and one leaving the site also carries target and rel. An <img> is always a file from this tenant's own blob store and carries src, alt, width, height and data-align ("left", "center" or "right") — style the alignment yourself, there is no inline CSS. Empty string for a post with no body yet.
[].coverImageobjectnoLead image for the post, shown on a card and at the top of the page.
[].coverImage.assetIdstringnoAsset document id, set by the backoffice after upload.
[].coverImage.urlstringnoAbsolute URL of the image, served from the blob store's CDN. Use it directly as an image source; no API key is involved. Allow the host in your image optimiser.
[].coverImage.altstringnoImage alt text. Portuguese.
[].coverImage.widthintegernoImage width in pixels.
[].coverImage.heightintegernoImage height in pixels.
[].publishedAtstringnoThe day the post is dated, as "YYYY-MM-DD". Treat it as a calendar date, not an instant: format it in UTC or the day will read as the one before west of Greenwich. Posts arrive newest first.
[].updatedOnstringnoThe day the post was last revised, as "YYYY-MM-DD". Empty when it has not been revised since publishing — useful as dateModified in structured data.
[].tagsarray of stringnoFree-text labels the business groups its posts by. Display order. Not a fixed vocabulary and not slugs — slugify them yourself if you route by them.
[].authorstringnoWho wrote it, as it should be credited. Empty when the business does not by-line its posts.

GET /api/v1/testimonials

Testimonials the business publishes, in display order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].authorstringnoWho said it, as they should be credited. Empty for an anonymous testimonial.
[].rolestringnoWho the author is, in their own words (e.g. "Gerente, Padaria Central"). One line, meant to be read under the name. Portuguese.
[].quotestringnoWhat they said. Plain text, no markup. Portuguese.
[].ratingintegernoStars out of 5. 0 means the testimonial came without a rating — show the words alone rather than zero stars.
[].datestringnoThe day it was given, as "YYYY-MM-DD". Empty when it is not dated. A calendar date, not an instant: format it in UTC.
[].imageobjectnoPhotograph of the author, when there is one. Often absent.
[].image.assetIdstringnoAsset document id, set by the backoffice after upload.
[].image.urlstringnoAbsolute URL of the image, served from the blob store's CDN. Use it directly as an image source; no API key is involved. Allow the host in your image optimiser.
[].image.altstringnoImage alt text. Portuguese.
[].image.widthintegernoImage width in pixels.
[].image.heightintegernoImage height in pixels.

GET /api/v1/faqs

Frequently asked questions, in display order. Questions sharing a category arrive together, in that order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated. Stable, so it works as the anchor of a linkable question.
[].questionstringnoThe question, as a client would ask it. Portuguese.
[].answerstringnoThe answer. Plain text, no markup; split it on its line breaks to lay out paragraphs, like a legal section's body. Portuguese.
[].categorystringnoFree-text heading this question is grouped under (e.g. "Entregas"). Empty for an ungrouped question. Not a fixed vocabulary and not a slug — group by the exact string, and expect an empty one alongside filled ones.

GET /api/v1/locations

Physical locations of the business, in display order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].citystringnoCity or locality name.
[].linesarray of stringnoAddress lines, in display order.
[].mapsSearchUrlstringnoGoogle Maps search/share URL for this address. Empty string if none.
[].mapEmbedUrlstringnoGoogle Maps embed URL (iframe src). Empty string if none.
[].primarybooleannoTrue for the main location (at most one per site).

GET /api/v1/values

Company values, in display order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].titlestringnoValue name (e.g. Qualidade). Portuguese.
[].descriptionstringnoShort explanation of the value. Portuguese.

GET /api/v1/legal

Legal documents the client maintains, keyed by document. Only documents that have been written are present.

FieldTypeRequiredDescription
<key>objectnoOne legal document.
<key>.sectionsarray of objectnoOrdered sections, as the document should read.
<key>.sections[].titlestringnoSection heading. Portuguese.
<key>.sections[].bodystringnoSection body prose; plain text, may contain multiple sentences. Portuguese.

Normalized collections

sites

sites collection: one document per tenant (client website). Sites have no lifecycle state — a client site always serves the latest content.

FieldTypeRequiredDescription
keystringyesUnique tenant slug (siteKey). Echoed in every Site API response envelope; the tenant itself is selected by the API key, not by this value.
namestringyesBusiness name.
domainstringnoProduction domain of the client site.

companies

companies collection: the business itself, one document per site (unique siteId).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
namestringyesBusiness name as displayed across the site.
taglinestringnoOne-line slogan. Portuguese.
descriptionstringnoShort business description. Portuguese.
phonestringnoDisplay phone number, formatted for reading.
emailstringnoPublic contact email.
whatsappstringnoWhatsApp chat URL.
appUrlstringnoMobile app store URL.
socialobjectnoSocial media profile links.
social.facebookstringnoFacebook page URL.
social.instagramstringnoInstagram profile URL.
social.linkedinstringnoLinkedIn page URL.
social.xstringnoX/Twitter profile URL.
social.youtubestringnoYouTube channel URL.
availabilityarray of objectnoStructured weekly opening hours from the backoffice designer. Never served to client sites — they read the derived schedule below.
availability[].idstringyesStable slot identifier.
availability[].week_dayintegeryesDay of week, 0 = Sunday.
availability[].start_timestringyesStart time as "HH:mm".
availability[].end_timestringyesEnd time as "HH:mm".
availability[].activebooleannoFalse for a slot kept but not in effect.
schedulearray of objectnoDisplay lines derived from availability on save, in display order.
schedule[].daysstringyesDay range label (e.g. "Segunda – Sábado").
schedule[].hoursstringyesOpening hours label (e.g. "09:00 – 19:00").

siteSettings

siteSettings collection: backoffice preferences, one document per site (unique siteId).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
crmobjectnoBackoffice notification preferences. Never served to client sites.
crm.smsOnNewLeadbooleannoSend an SMS when a lead arrives.
crm.notificationsPhonestringnoNumber to notify.
crm.telegramOnNewLeadbooleannoSend a Telegram message when a lead arrives.
crm.telegramBotTokenstringnoToken of the tenant's own Telegram bot, from BotFather.
crm.telegramChatIdstringnoChat to post into: a person, a group or a channel.
crm.autoReplyOnNewLeadbooleannoEmail the person who filled the form a confirmation. Absent means on.
crm.autoReplyWindowstringnoHow soon the business answers, in its own words ("24 horas úteis").

services

services collection: one document per service (unique siteId+slug).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
slugstringyesURL-safe identifier, unique per site.
titlestringyesService name. Portuguese.
icon"truck" | "wrench" | "packageCheck" | "hammer" | "boxes" | "warehouse" | "arrowDownToLine" | "zap" | "clock" | "shieldCheck"yesIcon key from the fixed icon set.
imageobjectnoOptional illustrative image stored in Vercel Blob.
image.assetIdstringnoReference to the assets collection.
image.pathnamestringnoBlob storage pathname; the Site API delivers it to client sites as an absolute url.
image.altstringnoImage alt text.
image.widthintegernoImage width in pixels.
image.heightintegernoImage height in pixels.
tier"primary" | "featured" | "secondary"yesDisplay tier: "primary", "featured", or "secondary".
shortstringnoOne-sentence summary. Portuguese.
descriptionstringnoFull description. Portuguese.
bulletsarray of stringnoBullet-point highlights. Portuguese.
orderintegernoSort index, ascending.

products

products collection: one document per product (unique siteId+slug).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
slugstringyesURL-safe identifier, unique per site.
titlestringyesProduct name. Portuguese.
icon"truck" | "wrench" | "packageCheck" | "hammer" | "boxes" | "warehouse" | "arrowDownToLine" | "zap" | "clock" | "shieldCheck"yesIcon key from the fixed icon set.
imageobjectnoOptional illustrative image stored in Vercel Blob.
image.assetIdstringnoReference to the assets collection.
image.pathnamestringnoBlob storage pathname; the Site API delivers it to client sites as an absolute url.
image.altstringnoImage alt text.
image.widthintegernoImage width in pixels.
image.heightintegernoImage height in pixels.
skustringnoInternal reference or article number.
pricenumbernoPrice amount; 0 when not published.
currency"EUR" | "USD" | "GBP"yesCurrency of the price amount.
pricePeriod"once" | "month" | "year"yesBilling period: "once", "month" or "year".
priceNotestringnoShort qualifier shown next to the price.
shortstringnoOne-sentence summary. Portuguese.
descriptionstringnoFull description. Portuguese.
bulletsarray of stringnoBullet-point highlights. Portuguese.
featuredbooleannoTrue for a product the website should highlight.
availablebooleannoFalse for a product not currently sold.
orderintegernoSort index, ascending.

projects

projects collection: one document per project (unique siteId+slug).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
slugstringyesURL-safe identifier, unique per site.
titlestringnoName of the project. The heading a website shows.
clientstringnoName of the client the work was delivered for. Absent for the business's own work.
problemstringnoThe situation the client was in. Portuguese.
solutionstringnoWhat the business did about it. Portuguese.
resultsstringnoWhat the client got out of it. Portuguese.
linksarray of objectnoRelated links, in display order.
links[].titlestringnoLink label. Portuguese.
links[].urlstringnoAbsolute URL.
assetsarray of stringnoReferences into the assets collection, in display order. One list for media and documents alike; the Site API resolves each reference and reports its kind.
orderintegernoSort index, ascending.

posts

posts collection: one document per post (unique siteId+slug). Ordered by publishedAt rather than by a stored sort index, because a post is dated and a service is arranged.

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
slugstringyesURL-safe identifier, unique per site.
titlestringyesHeadline of the post. Portuguese.
excerptstringnoOne- or two-sentence summary, plain text. Portuguese.
bodystringnoThe post itself, as an HTML fragment. Sanitised on save against a fixed allowlist of elements and attributes, so what is stored is already what may be rendered.
coverImageobjectnoOptional lead image stored in Vercel Blob.
coverImage.assetIdstringnoReference to the assets collection.
coverImage.pathnamestringnoBlob storage pathname; the Site API delivers it to client sites as an absolute url.
coverImage.altstringnoImage alt text.
coverImage.widthintegernoImage width in pixels.
coverImage.heightintegernoImage height in pixels.
status"draft" | "published"yesWhether the post is published. Platform-only: the Site API serves "published" posts and omits drafts entirely, so no client site ever sees this field.
publishedAtstringnoThe day the post is dated, as "YYYY-MM-DD". Posts are read newest first.
updatedOnstringnoThe day the post was last revised, as "YYYY-MM-DD". Absent until it is revised.
tagsarray of stringnoFree-text labels, in display order.
authorstringnoWho the post is credited to.
assetsarray of stringnoEvery asset the post uses: its cover image and each image placed in the body. Derived from the body on save, not edited directly — it is what keeps an image in use from being retired.

testimonials

testimonials collection: one document per testimonial (unique siteId+slug).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
slugstringyesURL-safe identifier, unique per site.
authorstringnoWho said it. Absent for an anonymous testimonial.
rolestringnoWho the author is, in one line. Portuguese.
quotestringnoWhat they said, plain text. Absent only for a testimonial created and not yet written; the Site API withholds those. Portuguese.
ratingintegernoStars out of 5. 0 or absent means the testimonial came without a rating.
datestringnoThe day it was given, as "YYYY-MM-DD".
imageobjectnoOptional photograph of the author, stored in Vercel Blob.
image.assetIdstringnoReference to the assets collection.
image.pathnamestringnoBlob storage pathname; the Site API delivers it to client sites as an absolute url.
image.altstringnoImage alt text.
image.widthintegernoImage width in pixels.
image.heightintegernoImage height in pixels.
orderintegernoSort index, ascending.

faqs

faqs collection: one document per question (unique siteId+slug).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
slugstringyesURL-safe identifier, unique per site. Usable as a link anchor.
questionstringyesThe question. Portuguese.
answerstringnoThe answer, plain text. Portuguese.
categorystringnoFree-text heading this question is grouped under. Absent for an ungrouped question.
orderintegernoSort index, ascending.

locations

locations collection: one document per location (unique siteId+slug).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
slugstringyesURL-safe identifier, unique per site.
citystringyesCity or locality name.
linesarray of stringyesAddress lines, in display order.
mapsSearchUrlstringnoGoogle Maps search/share URL.
mapEmbedUrlstringnoGoogle Maps embed URL (iframe src).
primarybooleannoTrue for the main location. At most one per site (enforced by a partial unique index).
orderintegernoSort index, ascending.

values

values collection: one document per company value (unique siteId+slug).

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
slugstringyesURL-safe identifier, unique per site.
titlestringyesValue name. Portuguese.
descriptionstringnoShort explanation. Portuguese.
orderintegernoSort index, ascending.

legalTexts

legalTexts collection: one document per site per legal document (unique siteId+key). The only page-shaped content the platform stores.

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
key"terms" | "privacy"yesWhich legal document. Unique per site.
sectionsarray of objectnoOrdered sections, as the document should read.
sections[].titlestringnoSection heading.
sections[].bodystringnoSection body prose, plain text.

assets

assets collection: files uploaded through the backoffice to Vercel Blob (unique siteId+pathname). Services, products, testimonials and a post's cover embed the pathname of their single image; projects reference whole documents by _id, which is how they can carry files of mixed kinds with their type and dimensions. A post does both: its body carries the URL of each image it shows and the document lists the ids behind them, so an image still in use is not retired.

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
pathnamestringyesBlob storage pathname, unique per site. The storage key: the Site API delivers an absolute url built from it, and never the pathname itself.
urlstringnoAbsolute Blob URL, as returned when the file was uploaded.
originalNamestringnoOriginal filename at upload time.
contentTypestringnoMIME type.
sizeintegernoFile size in bytes.
widthintegernoImage width in pixels.
heightintegernoImage height in pixels.
blurDataURLstringnoBase64 blur placeholder for images.
altstringnoDefault alt text.
deletedAtstring | nullnoSoft-delete timestamp (ISO date), or null while active.