Full CRUD API Access - Marble

Full CRUD API Access

February 19, 2026

2minute read

The Marble API now supports full CRUD (Create, Read, Update, Delete) operations.

Previously, the API was read-only great for fetching your posts and rendering them on a custom frontend, but limiting if you wanted to programmatically publish content, sync from external sources, or manage your authors and tags.

Starting today, you have full Read & Write access to your workspace resources.

Public vs. Private Keys

To support these new capabilities securely, we've introduced Private Keys alongside the existing Public Keys.

Supported Resources

You can now perform full CRUD operations on:

For each of these resources, the following HTTP methods are available:

Example: Creating a Post

const response = await fetch("https://api.marblecms.com/v1/posts", {
  method: "POST",
  headers: {
    "Authorization": "Bearer msk_YOUR_PRIVATE_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    title: "Understanding Server Actions in Next.js",
    slug: "understanding-server-actions",
    content: "Building interactive applications used to require...",
    published: true,
    publishedAt: new Date().toISOString()
  })
});

const data = await response.json();
console.log(data);

Automatic Formatting & Validation

We've baked in a ton of automatic validation to make the API a joy to use:

You can create or manage your API keys, including setting expiration dates, directly in your Marble dashboard settings. Happy building.