Getting started
From zero to content on your own site in about ten minutes. These steps use SharpWrite Cloud; Self-host works the same once it is installed.
1. Sign in
Open app.sharpwritecms.com, enter your email address and press the link we send you. There is no password. The same link creates your account the first time, with a 7-day free trial and no card needed.
2. Create a content type
A content type describes one kind of content, such as blog posts or products, and the fields it has. The quickest start is a template: Blog, Changelog, Pages, Products or Newsletter.
To build your own, open Content types and add fields: short text, long text, rich text, number, yes/no, date or a choice list. Mark fields required if you want them enforced. The API id of a type (for example posts) never changes after you create it, so a live site never breaks when you rename the type.
3. Write and publish
- Open the type in the menu and press New entry. Entries stay drafts until you publish them.
- The rich-text editor supports headings, lists, quotes, code, links and images. Choose an image from your media library, upload a new one, or (on Cloud) generate one with AI.
- History keeps the last 20 saved versions of every entry; restore an older one with one click. A restore never changes the slug or the published state.
- On Cloud, the AI button improves, shortens or rewrites the selected text.
4. Create an API key
Open MCP, name a key (for example "My website") and copy it: it is shown once. Keep it on your server; revoke it from the same page if it leaks.
5. Read your content
curl https://YOUR-SHARPWRITE/api/public/v1/posts \
-H "Authorization: Bearer sw_live_YOUR_KEY"---
const base = import.meta.env.SHARPWRITE_URL;
const key = import.meta.env.SHARPWRITE_KEY;
const res = await fetch(`${base}/api/public/v1/posts/${Astro.params.slug}`, {
headers: { Authorization: `Bearer ${key}` },
});
if (!res.ok) return Astro.redirect("/404");
const { data: post } = await res.json();
---
<h1>{post.data.title}</h1>
<article set:html={post.data.body} />There is a complete, ready-to-run Astro blog that reads from SharpWrite in the examples/astro-blog folder of the SharpWrite repository. The API reference lists every endpoint.
6. Rebuild your site when content changes
Static sites need a rebuild after you publish. Open Webhooks, add your host's deploy hook URL (Vercel, Netlify and Cloudflare Pages all offer one) and choose when to call it. SharpWrite calls it whenever an entry is published, changed, unpublished or deleted.
7. Preview drafts on your real site
Create a draft preview token. Your site's server sends it next to the API key, in an X-Preview-Token header, and then receives drafts as well as published entries. Use it for a private "preview" route that editors open before publishing.
8. Invite your team
Under Team invite people by email as Admin, Editor or Viewer. Cloud plans include a number of team members and sites (Starter: 3 members and 1 site; Pro: 10 members and 5 sites). Switch between sites from the menu.