---
title: How SharpWrite works
description: The ideas behind SharpWrite in plain words: workspaces, sites, content types, entries, pages, API keys, previews, webhooks, and the difference between Cloud and Self-host.
url: https://sharpwritecms.com/docs/concepts
updated: 2026-11-22
site: SharpWrite (https://sharpwritecms.com)
---

# How SharpWrite works

> Ten minutes with this page makes every other page easier. It explains the words SharpWrite uses and how the pieces fit together.

## The big picture

SharpWrite is a content management system (CMS). You write and organise content in SharpWrite. Your own website reads that content through a plain JSON API and shows it to visitors. SharpWrite never decides how your site looks; it only holds the words, images and settings.

The flow is always the same:

1. You model your content once: for example a "Posts" type with a title, an excerpt and a body.
2. You write entries in the editor. An entry starts as a draft and stays private until you press **Publish**.
3. Your website asks the API for published entries and renders them.
4. When you publish, SharpWrite can ping a webhook so your site rebuilds with the new content.

You can use SharpWrite in two ways. **Cloud** is hosted by us, with a 7-day free trial and a monthly or yearly plan. **Self-host** is a one-time license: you download the software and run it on your own Cloudflare account. The editor and the API are the same in both.

## The words we use

| Word | What it means |
|---|---|
| Workspace | Your account. It holds the plan, the billing, the team and the sites. A person has one workspace of their own and can be invited into others. |
| Site | A project inside a workspace, for example "Marketing blog". Content, images, API keys, webhooks and previews belong to one site. |
| Content type | A blueprint: a name, an API id and a list of fields. "Posts" is a type. |
| Field | One piece of a type: a short text, a rich-text body, a number, a date, a yes/no, or a choice list. |
| Entry | One piece of content of a type: one post, one product. It has a slug, a status and the field values. |
| Slug | The part of an entry's address after its type, such as `hello-world`. |
| Draft and published | A draft is only visible inside SharpWrite and to preview tokens. A published entry is served by the public API. |
| Page | A page you build from widgets with the page builder, without code. Pages are served by the same API under the type `site-pages`. |
| API key | A secret that lets one site's content be read by your website or an AI agent. Looks like `sw_live_...`. |
| Preview token | A second secret that lets your own site read drafts too, for private previews. Looks like `sw_prev_...`. |
| Webhook | An address SharpWrite calls when content is published, changed, unpublished or deleted. |
| MCP | The standard way for AI tools such as Claude to talk to an app. SharpWrite has an MCP endpoint. |

## What belongs to what

- A **user** signs in with an emailed link (or with Google on Cloud).
- A **workspace** has an Owner, and can have Admins, Editors and Viewers. Everyone in a workspace can reach every site of that workspace.
- A **site** owns its content types, entries, pages, media, API keys, MCP keys, webhooks and preview tokens. Nothing is shared between sites, and nothing is ever shared between workspaces.

## Drafts, publishing and your live site

Publishing is a deliberate step. Saving never changes your live site. When you press **Publish**, the entry becomes visible in the public API within about 30 seconds (the API response may be cached by a CDN for that long).

Your website decides when to show new content:

- A **static site** (Astro, Next.js with static export) needs a rebuild. Add a webhook that triggers your host's deploy hook.
- A **server-rendered site** reads the API on each request and can show new content right away.

You can also preview drafts on your real site with a preview token. See [Connect your site](https://sharpwritecms.com/docs/connect-your-site).

## Content types and entries

A content type is the shape of your content. You can start from a template (Blog posts, Changelog, Pages, Products, Newsletter issues) or build one field by field. The editor form for an entry is generated from the type, and the API returns entries with the same fields.

Two things are deliberately fixed after you create them, because live websites depend on them:

- A type's **API id** (for example `posts`) cannot change.
- Entry **slugs** are unique inside a type.

Everything else can be renamed and reordered later. See [Content types](https://sharpwritecms.com/docs/content-types).

## Reading content from your site

Your site calls the public API with an API key as a bearer token:

```
GET https://app.sharpwritecms.com/api/public/v1/posts
Authorization: Bearer sw_live_YOUR_KEY
```

The response is JSON with the published entries, newest first. Rich text arrives as safe HTML. A key belongs to one site and can only read that site. Keep keys on your server or in a build step, never in browser code. The full details are in the [API reference](https://sharpwritecms.com/docs/api), and a machine-readable description is available as [OpenAPI](https://sharpwritecms.com/openapi.json).

## AI in SharpWrite

There are two separate ideas, and they are easy to mix up:

- **Built-in AI tools** (Cloud only): rewrite and improve text in the editor, and generate images, within monthly allowances for your plan. Self-host has no built-in AI.
- **AI agents over MCP** (Cloud and Self-host): your own AI tool, such as Claude, connects to your site's MCP endpoint. It can read your content and save **drafts**. It can never publish or delete. A person always reviews and publishes. See [AI agents (MCP)](https://sharpwritecms.com/docs/ai-agents).

## Cloud and Self-host side by side

| | Cloud | Self-host |
|---|---|---|
| Who runs it | We do | You, on your own Cloudflare account |
| Pay | Monthly or yearly (Starter $39, Pro $59 a month) | Once (Single $149, Agency $349) |
| Free trial | 7 days, no card | Refundable within 7 days |
| Sites | 1 on Starter, 5 on Pro | As many as you like |
| Sign-in | Emailed link or Google | Emailed link |
| Built-in AI tools | Yes, with monthly allowances | No (use MCP with your own AI) |
| Your data lives | In our database | In your own D1 database and R2 bucket |
| Updates | Always the newest version | One year of updates included; it keeps working afterwards |
| If a plan or license ends | Editing pauses; reading and the API keep working | Editing pauses; reading and the API keep working |

Whatever happens with billing, your live website keeps getting its content. That is a design rule, not a courtesy.

## Where to go next

- New here: [Getting started](https://sharpwritecms.com/docs/getting-started)
- Building a site: [Connect your site](https://sharpwritecms.com/docs/connect-your-site)
- Organising a team: [Team and roles](https://sharpwritecms.com/docs/team-and-roles) and [Workspaces, sites and settings](https://sharpwritecms.com/docs/workspaces-and-sites)
- Running it yourself: [Self-host guide](https://sharpwritecms.com/docs/self-host) and [The license portal](https://sharpwritecms.com/docs/license-portal)
- Using an AI assistant: [AI reference](https://sharpwritecms.com/docs/ai-reference)
