ContentZen Logo
ContentZen

Developer Documentation

Everything you need to integrate ContentZen into your applications. From quick start guides to advanced API documentation.

Quick Start Guide

Get up and running with ContentZen in minutes

1

Access Your Dashboard

Sign up for a free ContentZen account and access your dashboard. This is where you'll manage all your content, collections, and API settings.

// Click "Get Started" in the header or footer
// Complete registration with your email and password
// Access your dashboard at https://app.contentzen.io
Go to Dashboard
2

Create Collections & Documents

Create your first collection to define the structure of your content, then add documents with your actual content.

// In dashboard: Collections → Create Collection
// Name: "Blog Posts"
// Fields: title (text), content (rich text), published (boolean)
// Then: Documents → Create Document
// Fill in your content and save
3

Get Your API Key

Navigate to the API Tokens section in your dashboard and create a new token for your application. Keep this key secure.

// Dashboard: Settings → API Tokens → Create Token
// Copy your API key (starts with 'cz_live_')
const API_TOKEN = 'cz_live_1234567890abcdef...'
Manage API Tokens
4

Install SDK in Your Project

Install the ContentZen SDK for your programming language and configure it with your API key.

// JavaScript/Node.js
npm install @contentzen/sdk

// Python
pip install contentzen

// PHP
composer require contentzen/sdk
5

Use Content in Your App

Connect to ContentZen API and start using your content in your application.

// JavaScript example
import { ContentZen } from '@contentzen/sdk';

const client = new ContentZen({
  apiToken: 'cz_live_1234567890abcdef...'
});

// Get all blog posts
const posts = await client.documents.list({
  collectionId: 'blog-posts'
});

SDKs & Libraries

Official SDKs and libraries for popular programming languages

JS

JavaScript

Official JavaScript SDK for Node.js and browser environments.

npm install @contentzen/sdk
yarn add @contentzen/sdk
Py

Python

Python SDK for building content-driven applications.

pip install contentzen
PHP

PHP

PHP SDK for Laravel, WordPress, and other PHP frameworks.

composer require contentzen/sdk
Rb

Ruby

Ruby gem for Rails and other Ruby applications.

gem install contentzen
Go

Go

Go SDK for high-performance applications.

go get github.com/contentzen/sdk
.NET

.NET

.NET SDK for C# and F# applications.

dotnet add package ContentZen.Sdk

Code Examples

Real-world examples to help you get started quickly

JavaScript Example

import { ContentZen } from '@contentzen/sdk';

const client = new ContentZen({
  apiToken: 'your-api-token'
});

// Get all collections
const collections = await client.collections.list();

// Create a new document
const document = await client.documents.create({
  collectionId: 'blog-posts',
  data: {
    title: 'My First Post',
    content: 'Hello, World!',
    published: true
  }
});

// Get documents with filters
const posts = await client.documents.list({
  collectionId: 'blog-posts',
  filter: { published: true },
  sort: { createdAt: 'desc' }
});

Python Example

from contentzen import ContentZen

client = ContentZen(api_token='your-api-token')

# Get all collections
collections = client.collections.list()

# Create a new document
document = client.documents.create(
    collection_id='blog-posts',
    data={
        'title': 'My First Post',
        'content': 'Hello, World!',
        'published': True
    }
)

# Get documents with filters
posts = client.documents.list(
    collection_id='blog-posts',
    filter={'published': True},
    sort={'created_at': 'desc'}
)

Ready to Get Started?

Join thousands of developers building amazing content experiences with ContentZen.