Skip to main content
Use our official SDK for a streamlined development experience with full type safety and convenient helper methods.
We’re actively developing official SDKs. In the meantime, you can use the REST API directly or import TypeScript types from @usemarble/core.

TypeScript Types

While we work on a full SDK, you can use our published TypeScript types for type-safe development:
npm install @usemarble/core
import type {
  MarblePost,
  MarbleCategory,
  MarbleTag,
  MarbleAuthor,
  MarblePagination,
} from "@usemarble/core";

// Use types with fetch
const response = await fetch("https://api.marblecms.com/v1/posts", {
  headers: { Authorization: process.env.MARBLE_API_KEY },
});
const data: { posts: MarblePost[]; pagination: MarblePagination } =
  await response.json();
For full type definitions, see the TypeScript Types reference.

Coming Soon

We’re building official SDKs with convenient methods, automatic retries, and built-in pagination helpers.

TypeScript

Coming soon
Want to be notified when SDKs are released? Follow us on X or join our Discord.