Docs

Content API reference

Schema version 6.9.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

  • GET /api/v1/integration.md — the full client-site integration contract (start here to build a site).
  • GET /api/v1/openapi.json — OpenAPI 3.1 description of every Site API endpoint.
  • GET /api/content-schema — versioned JSON Schemas of the Site API resources.
  • GET /api/content-schema/entities — versioned JSON Schemas of the normalized collections.
  • GET /api/content-schema/docs — this documentation as Markdown (best for AI agents).
  • GET /api/v1/docs — the Site API reference as Markdown (human version at /api-docs).
  • GET /llms.txt — index of everything an agent should read (/llms-full.txt for one fetch).

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; blocks are one-per-key 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.

Website blocks are the one opening in that rule, and it is the site's to make. A site may declare some of its own copy as blocks — named groups of typed fields (text, richText, number, image, link, list, collection) — in a manifest it syncs with PUT /api/v1/blocks/definitions. The platform then stores one blocks document per declared block, the owner edits its values in the backoffice, and the site reads them from GET /api/v1/blocks. The platform stores the fields and their values only, never the site's markup or styles; which blocks exist, and on which page, is decided by the site's manifest, not in the backoffice.

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), legal to one legalTexts document per document key, and blocks to one blocks document per declared block key (in the manifest's order, hidden blocks left out). 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. Block values are the exception: a block field with no value is absent from its block's values, so the site renders its own fallback copy.

Two kinds of field are markup rather than text: a post's body and a block's richText fields are HTML fragments. Each is sanitised against its own 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.

Content can be multilingual. A site has a main content language (sites.defaultContentLocale) and any number of extra ones (sites.contentLocales), from a fixed list. Main-language text lives in each document's ordinary fields; every other language lives beside it in translations.<locale>, holding only that type's translatable fields. Everything else — slugs, prices, URLs, dates, icons, addresses, the names of people and clients — is language-neutral and stored once. The Site API resolves a language at read time: each resource takes ?locale=, a field with no translation falls back to the main language and is named in the item's untranslated list, and the opening-hours lines are derived from availability in the language asked for. A legal document is served translated whole or not at all. Removing a language from a site hides it from the API and deletes nothing. The translations field itself is never served: a client site receives one language per response, in the resource's ordinary shape.

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, brand, 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. In the response language (`locale`).
descriptionstringnoShort description of the business, 1-2 sentences. In the response language (`locale`).
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. "Segunda – Sábado"). In the response language (`locale`), the main one included: derived from the weekly hours the business drew on every read.
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.
brandobjectnoThe brand: logo and colour palette. Language-neutral: identical in every `locale`.
brand.logoobjectnoThe company logo.
brand.logo.urlstringnoAbsolute URL of the logo, an SVG file on the blob store's CDN. Empty string when the business has uploaded none. Sanitised and with its background removed on upload, so it is safe to inline and sits on any colour; served as `image/svg+xml`.
brand.logo.widthintegernoWidth of the logo's canvas (its viewBox), for its aspect ratio — an SVG has no pixel size.
brand.logo.heightintegernoHeight of the logo's canvas (its viewBox).
brand.palettearray of objectnoThe brand's colours, in the order the business arranged them — any number, possibly none. The order is the business's own and carries no fixed meaning (primary, secondary…); use the names if it matters to your design.
brand.palette[].namestringnoWhat the business calls the colour (e.g. "Azul principal"). Free text, possibly empty, the same in every language.
brand.palette[].hexstringyesThe colour as six-digit lowercase hex, e.g. "#1a2b3c". Never has an alpha channel.
untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

GET /api/v1/services

Services offered by the business, in display order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].titlestringnoService name. In the response language (`locale`).
[].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. In the response language (`locale`). When the alt has no translation yet it is named in `untranslated` (`image.alt`, `coverImage.alt`) and, rather than the main-language alt, the item's translated title — or a testimonial author's name — is served where there is one.
[].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. In the response language (`locale`).
[].descriptionstringnoFull description. In the response language (`locale`).
[].bulletsarray of stringnoBullet-point highlights. In the response language (`locale`), whole: a translation with fewer entries than the main list is not served — the main list is, and `bullets` is named in `untranslated`.
[].untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

GET /api/v1/products

Products sold by the business, in display order.

FieldTypeRequiredDescription
[].slugstringyesURL-safe unique identifier, lowercase, hyphen-separated.
[].titlestringnoProduct name. In the response language (`locale`).
[].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. In the response language (`locale`). When the alt has no translation yet it is named in `untranslated` (`image.alt`, `coverImage.alt`) and, rather than the main-language alt, the item's translated title — or a testimonial author's name — is served where there is one.
[].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"). In the response language (`locale`).
[].shortstringnoOne-sentence summary shown on product cards. In the response language (`locale`).
[].descriptionstringnoFull description. In the response language (`locale`).
[].bulletsarray of stringnoBullet-point highlights. In the response language (`locale`), whole: a translation with fewer entries than the main list is not served — the main list is, and `bullets` is named in `untranslated`.
[].featuredbooleannoTrue for a product the website should highlight.
[].availablebooleannoFalse for a product kept on record but not currently sold.
[].untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

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. In the response language (`locale`).
[].solutionstringnoWhat the business did about it. In the response language (`locale`).
[].resultsstringnoWhat the client got out of it. In the response language (`locale`).
[].linksarray of objectnoRelated links, in display order.
[].links[].titlestringnoLink label. In the response language (`locale`). 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.
[].untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

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. In the response language (`locale`).
[].excerptstringnoStandfirst: one or two sentences summarising the post. Plain text, no markup — it is written for a card and for a meta description. In the response language (`locale`).
[].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"); a <p>, <h2>, <h3> or <h4> the writer centred or right-aligned carries data-align ("center" or "right"), and a left-aligned one nothing — 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. In the response language (`locale`). When the alt has no translation yet it is named in `untranslated` (`image.alt`, `coverImage.alt`) and, rather than the main-language alt, the item's translated title — or a testimonial author's name — is served where there is one.
[].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. In the response language (`locale`), whole: a translation with fewer tags than the main list is not served — the main list is, and `tags` is named in `untranslated`.
[].authorstringnoWho wrote it, as it should be credited. Empty when the business does not by-line its posts.
[].untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

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. In the response language (`locale`).
[].quotestringnoWhat they said. Plain text, no markup. In the response language (`locale`).
[].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. In the response language (`locale`). When the alt has no translation yet it is named in `untranslated` (`image.alt`, `coverImage.alt`) and, rather than the main-language alt, the item's translated title — or a testimonial author's name — is served where there is one.
[].image.widthintegernoImage width in pixels.
[].image.heightintegernoImage height in pixels.
[].untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

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. In the response language (`locale`).
[].answerstringnoThe answer. Plain text, no markup; split it on its line breaks to lay out paragraphs, like a legal section's body. In the response language (`locale`).
[].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. In the response language (`locale`), falling back per question: one question whose category is untranslated arrives with the main-language heading (and `category` in its `untranslated`), so grouping by the exact string puts it under a heading of its own.
[].untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

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). In the response language (`locale`).
[].descriptionstringnoShort explanation of the value. In the response language (`locale`).
[].untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

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. In the response language (`locale`).
<key>.sections[].bodystringnoSection body prose; plain text, may contain multiple sentences. In the response language (`locale`).
<key>.untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language: the fields of this item that have no translation yet (e.g. "description", "image.alt"), served in the main language instead. A list (`bullets`, `tags`) is served whole in one language: a translation with fewer entries than the main list is not served, the main list is, and the field is named here. An untranslated `image.alt` may carry a stand-in already in the response language instead (see `alt`). Absent when the item is fully translated.

GET /api/v1/blocks

GET /api/v1/blocks: one entry per block the site's manifest declares, in the manifest's order, including blocks that hold only defaults or nothing yet. Blocks dropped from the manifest are not served.

FieldTypeRequiredDescription
[].keystringyesThe block's key, as the manifest declares it.
[].valuesobjectyesThe block's values by field id: what the owner saved, or the manifest's defaults where nothing was saved. A field with no value (never set, cleared by the owner, or a collection) is absent: render your own fallback.
[].values.<key>unknownno
[].untranslatedarray of stringnoOnly when the response's `locale` is not the site's main language and something fell back: the paths of the values served in the main language for want of a translation (`title`, `cta.label`, `photo.alt`, `steps.2.label`, or a list's id when the whole list fell back).

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. The backoffice's Website editor previews https://<domain>, so it must be the host the site is actually served on (www.example.pt when the bare domain redirects there).
defaultContentLocale"pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe main content language: the one every document's ordinary fields are written in. Absent means "pt". Served as `defaultLocale` in every Site API envelope.
contentLocalesarray of "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe extra languages the site publishes, besides the main one. Removing one hides it from the Site API and deletes no translation. Served, main language first, as `locales` in every Site API envelope.

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. In the site's main language; other languages in `translations`.
descriptionstringnoShort business description. In the site's main language; other languages in `translations`.
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 the site's main language and in display order. Other languages are derived from availability when they are read.
schedule[].daysstringyesDay range label (e.g. "Segunda – Sábado").
schedule[].hoursstringyesOpening hours label (e.g. "09:00 – 19:00").
brandobjectnoHow the business looks. Language-neutral, so never in `translations`.
brand.logoobjectnoThe company logo. Absent when none was uploaded.
brand.logo.assetIdstringnoThe assets document of the logo: an SVG, sanitised on upload.
brand.logo.pathnamestringnoStorage pathname of the logo in the public blob store.
brand.logo.widthnumbernoWidth of the SVG's canvas (viewBox).
brand.logo.heightnumbernoHeight of the SVG's canvas (viewBox).
brand.palettearray of objectnoBrand colours, in display order.
brand.palette[].namestringnoThe tenant's own name for the colour.
brand.palette[].hexstringyes"#rrggbb", lowercase.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of the company (settings).
translations.<key>.taglinestringnoOne-line slogan.
translations.<key>.descriptionstringnoShort description of the business.

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. In the site's main language; other languages in `translations`.
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. In the site's main language; other languages in `translations` (as `imageAlt`, or `coverAlt` on a post).
image.widthintegernoImage width in pixels.
image.heightintegernoImage height in pixels.
tier"primary" | "featured" | "secondary"yesDisplay tier: "primary", "featured", or "secondary".
shortstringnoOne-sentence summary. In the site's main language; other languages in `translations`.
descriptionstringnoFull description. In the site's main language; other languages in `translations`.
bulletsarray of stringnoBullet-point highlights. In the site's main language; other languages in `translations`.
orderintegernoSort index, ascending.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of a service.
translations.<key>.titlestringnoService name.
translations.<key>.shortstringnoOne-line summary.
translations.<key>.descriptionstringnoFull description.
translations.<key>.bulletsarray of stringnoHighlights, in the same order as the main language's. Served whole, and only once it has as many entries as the main list.
translations.<key>.imageAltstringnoAlt text of the service image.

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. In the site's main language; other languages in `translations`.
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. In the site's main language; other languages in `translations` (as `imageAlt`, or `coverAlt` on a post).
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. In the site's main language; other languages in `translations`.
shortstringnoOne-sentence summary. In the site's main language; other languages in `translations`.
descriptionstringnoFull description. In the site's main language; other languages in `translations`.
bulletsarray of stringnoBullet-point highlights. In the site's main language; other languages in `translations`.
featuredbooleannoTrue for a product the website should highlight.
availablebooleannoFalse for a product not currently sold.
orderintegernoSort index, ascending.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of a product.
translations.<key>.titlestringnoProduct name.
translations.<key>.shortstringnoOne-line summary.
translations.<key>.descriptionstringnoFull description.
translations.<key>.bulletsarray of stringnoHighlights. Served whole, and only once it has as many entries as the main list.
translations.<key>.priceNotestringnoNote shown beside the price.
translations.<key>.imageAltstringnoAlt text of the product image.

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. In the site's main language; other languages in `translations`.
clientstringnoName of the client the work was delivered for. Absent for the business's own work.
problemstringnoThe situation the client was in. In the site's main language; other languages in `translations`.
solutionstringnoWhat the business did about it. In the site's main language; other languages in `translations`.
resultsstringnoWhat the client got out of it. In the site's main language; other languages in `translations`.
linksarray of objectnoRelated links, in display order.
links[].titlestringnoLink label. In the site's main language; other languages in `translations`.
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.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of a project.
translations.<key>.titlestringnoProject title.
translations.<key>.problemstringnoThe problem the project solved.
translations.<key>.solutionstringnoWhat was delivered.
translations.<key>.resultsstringnoWhat it achieved.
translations.<key>.linkTitlesobjectnoLink titles, keyed by the link's URL.
translations.<key>.linkTitles.<key>stringno

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. In the site's main language; other languages in `translations`.
excerptstringnoOne- or two-sentence summary, plain text. In the site's main language; other languages in `translations`.
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. In the site's main language; a translated body in `translations` is sanitised the same way.
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. In the site's main language; other languages in `translations` (as `imageAlt`, or `coverAlt` on a post).
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. In the site's main language; other languages in `translations`.
authorstringnoWho the post is credited to.
assetsarray of stringnoEvery asset the post uses: its cover image and each image placed in the body, in any language. Derived from the bodies on save, not edited directly — it is the record of which files the post uses.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of a post.
translations.<key>.titlestringnoPost title.
translations.<key>.excerptstringnoSummary shown in lists.
translations.<key>.bodystringnoPost body, an HTML fragment.
translations.<key>.tagsarray of stringnoTags. Served whole, and only once it has as many entries as the main list.
translations.<key>.coverAltstringnoAlt text of the cover image.

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. In the site's main language; other languages in `translations`.
quotestringnoWhat they said, plain text. Absent only for a testimonial created and not yet written; the Site API withholds those. In the site's main language; other languages in `translations`.
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. In the site's main language; other languages in `translations` (as `imageAlt`, or `coverAlt` on a post).
image.widthintegernoImage width in pixels.
image.heightintegernoImage height in pixels.
orderintegernoSort index, ascending.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of a testimonial.
translations.<key>.quotestringnoThe quotation, translated.
translations.<key>.rolestringnoThe author's role or company description.
translations.<key>.imageAltstringnoAlt text of the author's photograph.

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. In the site's main language; other languages in `translations`.
answerstringnoThe answer, plain text. In the site's main language; other languages in `translations`.
categorystringnoFree-text heading this question is grouped under. Absent for an ungrouped question. In the site's main language; other languages in `translations`.
orderintegernoSort index, ascending.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of a question.
translations.<key>.questionstringnoThe question.
translations.<key>.answerstringnoThe answer.
translations.<key>.categorystringnoThe group heading. Translate it the same way across the group: each question falls back on its own, so an untranslated one is grouped apart.

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. In the site's main language; other languages in `translations`.
descriptionstringnoShort explanation. In the site's main language; other languages in `translations`.
orderintegernoSort index, ascending.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of a company value.
translations.<key>.titlestringnoValue name.
translations.<key>.descriptionstringnoWhat it means.

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. In the site's main language; other languages in `translations`.
sections[].titlestringnoSection heading.
sections[].bodystringnoSection body prose, plain text.
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe document's text in the site's other content languages, keyed by language. Each entry holds only the fields written in a language; a field left out or empty is served in the main language, and an entry for a language the site no longer publishes is kept, not deleted.
translations.<key>objectnoTranslatable fields of a legal document.
translations.<key>.sectionsarray of objectnoThe whole document in this language. A translated legal text is served whole or not at all — only once it has as many filled sections as the main document — and is never mixed section by section with the main language.
translations.<key>.sections[].titlestringno
translations.<key>.sections[].bodystringno

blocks

blocks collection: one document per block a tenant's website declares (unique siteId+key). Created and reshaped only by the site's manifest sync (PUT /api/v1/blocks/definitions); its values are written only by the owner in the backoffice. Served by GET /api/v1/blocks, hidden blocks left out.

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
keystringyesThe block's key from the site's manifest, unique per site (e.g. "home.hero").
labelstringyesWhat the owner sees in the backoffice's Website editor. From the manifest.
pagestringyesPath of the site page the block is on; the backoffice preview opens it. From the manifest.
orderintegeryesPosition in the manifest, ascending. The order of the editor's list and of GET /api/v1/blocks.
fieldsarray of objectyesThe field declarations from the last sync, in form order. Replaced whole by every sync.
fields[].idstringyesField id: what the site reads the value by and the markup attribute points at.
fields[].type"text" | "richText" | "number" | "image" | "link" | "list" | "collection"yesField type.
fields[].labelstringyesWhat the owner sees above the input.
fields[].fieldsarray of unknownnoA list's item fields, in the same form.
fields[].resource"services" | "products" | "projects" | "posts" | "testimonials" | "faqs" | "locations" | "values"noA collection's resource.
contentobjectyesValues by field id, in the site's main language: what the owner saved, or a manifest default where nothing was saved. A field the owner cleared is stored as null and served as absent. Values of fields no longer declared, or declared with another type, are kept here and never served.
content.<key>unknownno
translationsobject keyed by "pt" | "en" | "es" | "fr" | "de" | "it" | "nl"noThe block's text in the site's other content languages, keyed by language: for each field only what is written in a language (a text or rich text, a link's label, an image's alt, and the same inside each list item). Numbers, link targets, images and their framing are the main language's.
translations.<key>objectno
translations.<key>.<key>unknownno
hiddenAtstring | nullyesWhen a sync found the block missing from the manifest (ISO date), or null while declared. A hidden block keeps its content and returns when the manifest declares it again.

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. One asset may be referenced by several records (a file chosen again from the media library); an image or video is never retired (deletedAt) for being detached — only the media library deletes it, and not while anything uses it — and a document is retired only when nothing references it.

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.

media

media collection: the backoffice media library ("Galeria"), one document per image or video a tenant has, whatever uploaded it (unique siteId+pathname). A layer over assets, never a replacement: content keeps referencing the asset row or the URL, and this document adds the measured dimensions, a name and an archived state. Not served by the Site API — a client site reads the file URLs from the content, as before.

FieldTypeRequiredDescription
siteIdstringyesTenant scope: ObjectId of the owning document in the sites collection.
assetIdstring | nullnoThe assets document behind the file (1:1), or null for a file referenced by URL with no asset row.
pathnamestringyesBlob storage pathname, unique per site — the same as the asset's. Never leaves the platform.
urlstringyesAbsolute Blob URL of the file: the same URL the content already carries, never rewritten.
mediaType"image" | "video"yes`image` or `video`.
contentTypestringyesMIME type.
sizeintegernoFile size in bytes.
widthintegernoIntrinsic width in pixels, when known.
heightintegernoIntrinsic height in pixels, when known.
durationnumbernoA video's length in seconds, when its container declares it.
dimensionsSource"file" | "browser" | "none"yesWhere width and height came from: `file` (read from the file's own header on the server), `browser` (measured by the uploader's browser, or kept from the asset row), `none` (could not be determined).
namestringyesThe tenant's name for the file; the uploaded file name until renamed.
originalNamestringnoThe file name it was uploaded with.
archivedAtstring | nullnoWhen the tenant archived it (ISO date), or null. Archiving hides it in the backoffice library only.