Skip to content
BuildBase

Editorial content overview

Five editorial content types - blogs, docs, FAQs, testimonials, and rich content - authored in the console.

The content module holds editorial entities you want non-engineers to edit: marketing pages, help articles, FAQ groups, testimonials. They are authored in the console and read over the API.

curl -G https://api.console.buildbase.app/api/blogs \
  -H "Authorization: Bearer $BUILDBASE_TOKEN" \
  --data-urlencode 'filter={"published":true}' \
  --data-urlencode 'sort={"createdAt":-1}'

Before you start

Author content in the BuildBase console. Every endpoint here is token-authenticated, so a public website reads it from your own backend or at build time - not directly from the browser.

The five types

TypeBase pathShape
Blogs/api/blogsPosts in folders, with tags and authors
Docs/api/docsSame structure as blogs, separate tree
FAQs/api/faqsQuestions, arranged in ordered groups
Testimonials/api/testimonialsname, avatar, content, position, company (name, website, logo), published, publishedAt
Content blocks (rich content)/api/rich-contentA named block of rich text, fetched by slug

Blogs and docs share an implementation - folders, paths, tags, authors, drafts - so one page covers both.

Content blocks

Content blocks (Content blocks in the console, rich content in the API, /api/rich-content) are the simplest and the most useful of the five: a named block of formatted text your app renders wherever it likes. Terms of service, an announcement banner, a pricing footnote.

Content blocks in the console writes one step by step. Fetch it by slug rather than id, so the reference in your code stays readable:

curl https://api.console.buildbase.app/api/rich-content/slug/refund-policy \
  -H "Authorization: Bearer $BUILDBASE_TOKEN"

Testimonials

MethodPathPurpose
GET/api/testimonialsList testimonials
GET/api/testimonials/:idOne testimonial
POST/api/testimonialsCreate one, unpublished
PATCH/api/testimonials/:idEdit it, publish it, or archive it

There is no delete: set archived: true to take one down, and false to bring it back. Testimonials in the console adds and publishes one step by step.

FAQs

FAQs have two records. A question is a standalone document at /api/faqs. A group (a collection) at /api/faqs/collections holds an ordered list of question ids, and it is what a page shows: a help center, a pricing page.

Questions:

MethodPathPurpose
GET/api/faqsList questions
GET/api/faqs/:idOne question
POST/api/faqsCreate a question
PATCH/api/faqs/:idEdit a question
DELETE/api/faqs/:idDelete a question

Groups:

MethodPathPurpose
GET/api/faqs/collectionsList groups
GET/api/faqs/collections/:idOne group
GET/api/faqs/collections/:id/faqsThe group's questions, in order
GET/api/faqs/collections/:id/faqs/suggestionsQuestions not yet in the group
POST/api/faqs/collectionsCreate a group
PATCH/api/faqs/collections/:idRename or describe a group
PATCH/api/faqs/collections/:id/faqs/addAdd questions: { "faqs": ["<id>", ...] }
PATCH/api/faqs/collections/:id/faqs/removeRemove questions: { "faqs": ["<id>", ...] }
PATCH/api/faqs/collections/:id/faqs/updateReplace the whole ordered list, which is how you reorder
PATCH/api/faqs/collections/:id/archiveArchive a group (groups are not deleted)

Order lives on the group, so the same question can sit in several groups at a different position in each, without a sort field on the question. The two question reads answer in that order unless you pass a sort of your own. In the console, the arrows on a question's row move it; set up an FAQ section walks through it.

Content is not assets

This module stores text. Images belong to assets, which handles upload, storage, and public or private URLs. Assets take images only - JPEG, PNG, GIF, WebP and SVG - so a PDF or another download is hosted outside BuildBase and linked by its URL.

The two connect by reference: rich text embeds an asset's URL. Uploading an image while editing a post creates an asset record; the post stores the link to it. Deleting a post does not delete the asset.

Next Steps

  • Publish a post - write and publish a blog post in the console, step by step.
  • Blogs and docs - folders, paths, and drafts.
  • Delivering content - showing this content in any stack without calling BuildBase on every page load.
  • Assets - the files this content links to.