The entities at a glance
Every entity is scoped to a workspace and has a
URL-friendly
slug that’s unique within that workspace. You can fetch most
resources by either their id or their slug.Posts
A post is the unit of content you write in the editor. Beyond its title and body, a post carries the metadata your frontend needs to render and route it. Key fields returned by the API:Content format
Post content can be delivered as HTML (default) or Markdown using theformat query parameter — useful if you’d rather render Markdown yourself on the frontend:
Status and drafts
A post ispublished, draft, or scheduled. By default the API returns only published posts. Pass status=draft or status=all to include drafts — handy for building a preview environment. Pass status=scheduled to list posts waiting to go live. status=all returns published and draft posts and never includes scheduled ones, so a build that fetches all can’t render a post early. Every status except published needs a private key with the posts_read_drafts scope.
Scheduling a post
To schedule a post, sendstatus: "scheduled" and a future publishedAt to POST /v1/posts or PATCH /v1/posts/{identifier}. Marble publishes it within about a minute of that time and sends the post.published webhook.
publishedAt accepts three forms:
A no-zone time that daylight saving skips returns
400, as does scheduling a time that isn’t in the future. A no-zone time that happens twice, when the clocks go back, means the first one. Responses return publishedAt in UTC, so you can confirm the time back to whoever asked for it. Older workspaces may still be on the default Europe/London, so check the timezone in workspace settings before you rely on no-zone times.
A post with status: "published" and a future publishedAt goes live immediately. Only scheduled waits. To publish a scheduled post early, PATCH it with status: "published", which sets publishedAt to now unless you send one. To unschedule it, PATCH it with status: "draft".
Authors
An author is a byline you attach to posts. Authors are managed at the workspace level and reused across posts, so updating an author’s bio updates it everywhere. An author includesname, slug, bio, image, role, and an array of socials (each with a platform and url). A post can have multiple authors, with one designated as the primary author.
Categories
A category is the single, primary grouping for a post — think “Engineering”, “Product”, or “Changelog”. Each post belongs to exactly one category, which makes categories ideal for top-level sections and routing (e.g./blog/[category]/[slug]).
A category has a name, slug, and optional description. You can filter posts by category, or exclude categories, when listing posts:
Tags
A tag is a lightweight, flexible label. Unlike categories, a post can have many tags, making them well suited to cross-cutting topics like “javascript”, “tutorial”, or “release”. Tags have the same shape as categories (name, slug, description) and support the same include/exclude filtering via the tags and excludeTags parameters.
Category vs. tag: use a single category for the primary section a post
belongs to, and tags for the many topics it touches.
Custom fields
Custom fields let you extend the post schema with workspace-specific metadata — a release date, a priority score, a list of related links — without changing your code on the CMS side. Field values come back on each post underfields, keyed by the field’s key. See Custom Fields for setup and the full list of field types.
How it maps to the API
When you fetch a post, the related entities are embedded directly in the response, so a single request gives you everything you need to render it:Next steps
Custom Fields
Extend posts with your own metadata.
Filtering
Query posts by category, tag, and search.
API Reference
Full endpoint reference for every resource.
TypeScript SDK
Typed access to posts, authors, categories, and tags.