Documentation
Follow these five steps to go from zero to delivering content through the API.
Sign up for a free CuberIQ Starter account. No credit card required. You get 1 space, 5 content models, and 1,000 entries to start building immediately.
# Install the CuberIQ CLI npm install -g @cuberiq/cli # Authenticate with your account cuberiq login
A Space is your content workspace. It holds all your content models, entries, and assets. Think of it as a project container.
# Create a new space cuberiq space create --name "my-blog" # Output: # Space created successfully! # Space ID: sp_a1b2c3d4e5 # Environment: master
Content Models define the structure of your content. Add fields like text, rich text, media, references, and more.
{
"name": "blogPost",
"displayName": "Blog Post",
"fields": [
{ "id": "title", "type": "Text", "required": true },
{ "id": "slug", "type": "Symbol", "unique": true },
{ "id": "body", "type": "RichText" },
{ "id": "author", "type": "Reference", "linkType": "Entry" },
{ "id": "coverImage", "type": "Media" },
{ "id": "publishedAt", "type": "DateTime" }
]
}Create entries through the web dashboard or the API. Each entry follows the structure defined by its content model.
# Create an entry via CLI
cuberiq entry create --model blogPost \
--field title="Hello World" \
--field slug="hello-world" \
--field publishedAt="2026-04-06T00:00:00Z"
# Or use the REST API
curl -X POST https://api.cuberiq.com/v2/spaces/sp_a1b2c3d4e5/entries \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"blogPost","fields":{"title":"Hello World"}}'Retrieve your content using the REST or GraphQL API. Use the official SDKs for a type-safe, streamlined developer experience.
import { createClient } from "@cuberiq/sdk";
const client = createClient({
spaceId: "sp_a1b2c3d4e5",
apiKey: process.env.CUBERIQ_API_KEY,
});
// Fetch all blog posts
const posts = await client.entries.getMany({
model: "blogPost",
orderBy: "-publishedAt",
limit: 10,
});
console.log(posts.items);Start building with CuberIQ today. Free tier includes everything you need to get started.