Getting started
Quickstart
1. Create a project
Open the dashboard and create a project. A project is one blog, with its own API keys, content, and domains.
2. Copy your API key
Project → Settings → API keys → Create key. The plaintext key
(pk_live_…) is shown once — only a hash is stored.
3. Write and publish a post
Create a post, save it as a draft, then hit Publish. Publishing sets the status to
published, stamps published_at, and fires the post.published webhook.
4. Fetch it
pnpm add @pagekit/sdk
import { Pagekit } from "@pagekit/sdk";
const blog = new Pagekit({
apiKey: process.env.PAGEKIT_API_KEY!,
});
const posts = await blog.posts.list({ status: "published" });
console.log(posts.data);
Or with plain HTTP:
curl "https://api.pagekit.app/v1/posts?status=published" \
-H "Authorization: Bearer pk_live_xxxxx"
5. Ship it
- Render it in Next.js, Astro, or plain React
- Or point a custom domain at the hosted blog