# Quillhive developer docs > Build on Quillhive. Read content with the Content API, let agents write through the MCP server, render your own frontend and react to changes with webhooks. Quillhive is a publishing space for modern teams and their AI agents. These docs are for developers building on it. Looking for how to write, publish or manage your blog? See the [Help center](/help). ## What you can build with - **Content API**. A read-only REST API that returns your published posts, pages, tags, authors and menus as JSON. No key needed to read. Use it for your own frontend, an app or a newsletter. - **MCP server**. Connect Claude, Cursor or any MCP client. Agents read, draft and edit posts next to your team, under the same roles and rules. - **Headless sites**. Render the blog with your own frontend while your team keeps writing in the dashboard. - **Webhooks**. A signed request to your server every time content changes, so caches and other systems stay fresh. ## Where to start - Building a frontend? Start with the [Content API overview](/docs/api), then [Headless sites](/docs/headless). - Bringing in an AI agent? Read the [MCP overview](/docs/mcp) and [Connect a client](/docs/mcp/clients). - Keeping a cache or another system in sync? Set up [Webhooks](/docs/webhooks). You need a site to build against. Create one in a few minutes with [Getting started](/help/getting-started). ## Docs for AI tools Every page here is also plain Markdown: add `.md` to the URL, or use **Copy page** at the top. The whole set is listed at [/llms.txt](/llms.txt). See [Docs for AI tools](/docs/llms). ## Get help Browse the [Help center](/help), or email [hi@tinilab.com](mailto:hi@tinilab.com). We read everything. --- # Docs for AI tools > Every page is available as Markdown, plus llms.txt indexes for assistants and coding agents. These docs are written to be read by people and by AI assistants. Point your coding agent here when it builds on Quillhive. ## Markdown pages Add `.md` to any docs or help URL to get the page as plain Markdown: ```text https://quillhive.com/docs/api/posts.md https://quillhive.com/docs/mcp/tools.md https://quillhive.com/docs/index.md https://quillhive.com/help/writing.md ``` Every page also has a **Copy page** button at the top, to paste it into a chat. ## llms.txt | File | Contents | | -------------------------------- | ------------------------------------------------------------------------------------------------ | | [/llms.txt](/llms.txt) | An index of every docs page and help article, with a one-line summary and a link to its Markdown | | [/llms-full.txt](/llms-full.txt) | Every docs page and help article in one Markdown file | Give an assistant `llms-full.txt` when it needs the whole picture, for example to build a [headless frontend](/docs/headless). ## Let agents work on your blog To let an assistant read and write posts directly, rather than read about the API, connect it to the [MCP server](/docs/mcp). --- # Content API > A read-only REST API for your site's published posts, pages, tags and authors. Plain JSON, no key needed to read. Use the Content API to show your Quillhive content anywhere: your own frontend (Next.js, Astro, anything), a mobile app, a newsletter, a help center. It returns published content only. To write, use the dashboard or the [MCP server](/docs/mcp). ## Base URL ```text https://api.quillhive.com/api/public/v1 ``` Every endpoint lives under a site: ```text https://api.quillhive.com/api/public/v1/sites/{siteId}/... ``` Find your **site ID** in the dashboard under **Settings → Developer → API**. That page also has a copyable base URL, an example request and a headless setup checklist. ## Your first request ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/posts?limit=3 ``` ```javascript title="JavaScript" const res = await fetch( 'https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/posts?limit=3', ) const { posts, meta } = await res.json() ``` ## Authentication Reading published content is public. No key is needed. You can send a site API key as a bearer token. A key is **required** only for the [preview endpoint](/docs/api/posts#preview-a-post), which returns drafts. ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/posts \ -H "Authorization: Bearer blgg_..." ``` - Create keys in **Settings → Developer → API**. Each key belongs to one site. - A key must match the `siteId` in the path. A wrong, unknown or mismatched key gets a `401`, even on public endpoints. - Keys can read drafts. Keep them on your server and never ship them to a browser. ## Endpoints | Endpoint | Returns | | --- | --- | | [`GET /sites/{siteId}`](/docs/api/sites#get-a-site) | Site settings, SEO fields and navigation | | [`GET /sites/{siteId}/navigation-items`](/docs/api/sites#get-navigation-menus) | Header and footer menus. Filter with `?group=` | | [`GET /sites/slug/{slug}`](/docs/api/sites#find-a-site-by-slug-or-domain) | A site by its slug | | [`GET /sites/domain/{domain}`](/docs/api/sites#find-a-site-by-slug-or-domain) | A site by its custom domain | | [`GET /sites/{siteId}/posts`](/docs/api/posts#list-posts) | Published posts, paginated, filterable by tag and author | | [`GET /sites/{siteId}/posts/{idOrSlug}`](/docs/api/posts#get-a-post) | One published post or page with HTML | | [`GET /sites/{siteId}/posts/preview/{idOrUuid}`](/docs/api/posts#preview-a-post) | Any post or page, drafts included. Key required | | [`GET /sites/{siteId}/pages`](/docs/api/pages#list-pages) | Published pages | | [`GET /sites/{siteId}/pages/{idOrSlug}`](/docs/api/pages#get-a-page) | One published page with HTML | | [`GET /sites/{siteId}/tags`](/docs/api/tags#list-tags) | Tags with post counts | | [`GET /sites/{siteId}/tags/{slug}`](/docs/api/tags#get-a-tag) | One tag | | [`GET /sites/{siteId}/authors`](/docs/api/authors#list-authors) | Author profiles | | [`GET /sites/{siteId}/authors/{slug}`](/docs/api/authors#get-an-author) | One author | ## Conventions - Responses are JSON objects with one named key: `{ "post": … }`, `{ "posts": […] }`. - Dates are ISO 8601 strings in UTC. - Only published content is returned. Drafts and scheduled posts return `404`, except through the preview endpoint. - Content is HTML in `html`, ready to render. It is the same HTML the hosted blog uses. ## Keeping a cache fresh If you cache responses, register a [webhook](/docs/webhooks). Quillhive sends one when posts, pages, tags or site settings change, so you can drop just what changed. --- # Sites > Site settings, branding, SEO defaults and navigation menus. ## Get a site ```endpoint GET /sites/{siteId} ``` Returns the site's public settings: name and title, branding, layout, SEO and social card defaults, headless settings, and the header and footer menus. ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID ``` ```json title="Response" { "site": { "id": "clx123...", "name": "Field Notes", "title": "Field Notes", "tagline": "Building in public", "description": "Notes from a small product team", "slug": "field-notes", "language": "en", "logo": "https://...", "logoIcon": "https://...", "logoFavicon": "https://...", "darkMode": "dark_mode", "blogLayout": "grid", "copyrightText": "© Field Notes", "metaTitle": "Field Notes: building in public", "metaDescription": "Notes from a small product team", "ogTitle": null, "ogDescription": null, "ogImage": "https://...", "facebookImage": null, "twitterTitle": null, "twitterDescription": null, "twitterImage": null, "headless": false, "frontendUrl": null, "postUrlPattern": null, "pageUrlPattern": null, "navigationItems": { "header": [ { "id": "...", "title": "About", "url": "/about", "description": null, "group": "header", "children": [] } ], "footer": [] } } } ``` ### Fields worth knowing | Field | Notes | | --- | --- | | `title`, `tagline`, `description` | What the blog shows in its header and home page | | `logo`, `logoIcon`, `logoFavicon` | Image URLs, or `null` | | `metaTitle`, `metaDescription` | Search result title and description for the home page | | `ogTitle`, `ogDescription`, `facebookImage` | Open Graph card (Facebook, LinkedIn) | | `twitterTitle`, `twitterDescription`, `twitterImage` | X card | | `ogImage` | The default social image | | `headless`, `frontendUrl`, `postUrlPattern`, `pageUrlPattern` | [Headless](/docs/headless) settings | | `navigationItems` | Published `header` and `footer` menu items in order. Each item can have `children` | Any SEO field may be `null` or empty. Fall back in this order: the X card falls back to the Open Graph card, which falls back to `metaTitle` / `metaDescription`. `facebookImage` and `twitterImage` fall back to `ogImage`. The site's preview URL pattern is never returned here, since it may contain a secret. ## Get navigation menus ```endpoint GET /sites/{siteId}/navigation-items ``` Returns the site's published header and footer menus, in the order set in the dashboard. Use it when you only need the menus, without the rest of the site. | Parameter | Type | Description | | --- | --- | --- | | `group` | `header` or `footer` | Only one menu. Leave it out to get both | ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/navigation-items ``` ```json title="Response" { "navigationItems": { "header": [ { "id": "clx456...", "title": "About", "url": "/about", "description": null, "group": "header", "children": [ { "id": "clx457...", "title": "Team", "url": "/team", "description": null, "group": "header" } ] } ], "footer": [ { "id": "clx789...", "title": "Privacy", "url": "/privacy", "description": null, "group": "footer", "children": [] } ] } } ``` With `?group=header`, `navigationItems` is a single list of header items instead. - Only published items and published children are returned. Children don't have children of their own. - `url` can be a path on your blog (`/about`), a full link, or `null` for an item that only groups its children. - Any other `group` value returns `400`. An unknown site returns `404` with `{ "navigationItems": null }`. ## Find a site by slug or domain ```endpoint GET /sites/slug/{slug} GET /sites/domain/{domain} ``` Look up a site when you know its address but not its ID. The domain lookup also returns `domain` and `domainVerified`. ```bash curl https://api.quillhive.com/api/public/v1/sites/slug/field-notes curl https://api.quillhive.com/api/public/v1/sites/domain/blog.example.com ``` Both return `{ "site": null }` with a `404` when nothing matches. --- # Posts > List published posts, fetch one with its HTML, and preview drafts from your server. ## List posts ```endpoint GET /sites/{siteId}/posts ``` Returns published posts. By default featured posts come first, then the rest, newest first. ### Query parameters | Parameter | Type | Description | | --- | --- | --- | | `tag` | string | Only posts with this tag slug | | `author` | string | Only posts by this author slug | | `exclude` | string | A post id to leave out, such as the current post in a "related posts" list | | `order` | `featured` or `latest` | `featured` (default): featured first, then newest. `latest`: newest first | | `limit` | number | Posts per page, 1 to 100. Leave it out to get every matching post | | `page` | number | Page number, from 1. Only used with `limit` | ```bash curl "https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/posts?tag=engineering&limit=10&page=2" ``` ```json title="Response" { "posts": [ { "id": "clx123...", "title": "Offline sync: what we learned", "slug": "offline-sync", "excerpt": "Six months, three rewrites...", "featureImage": "https://...", "featured": false, "publishedAt": "2026-10-02T10:00:00.000Z", "updatedAt": "2026-10-05T15:30:00.000Z", "tags": [ { "id": "...", "name": "Engineering", "slug": "engineering" } ], "authors": [ { "id": "...", "slug": "minji-ahn", "name": "Minji Ahn", "avatar": "https://..." } ] } ], "meta": { "page": 2, "limit": 10, "total": 42, "totalPages": 5 } } ``` - Tags are in the post's order, so the first is the **primary tag**. - Authors are in byline order. - Without `limit`, `meta` is `{ "page": 1, "limit": null, "total": 42, "totalPages": 1 }`. ## Get a post ```endpoint GET /sites/{siteId}/posts/{idOrSlug} ``` Returns one published post with its full HTML, by id or slug. Posts and pages share slugs, so this also finds pages. Drafts and scheduled posts return `404`. ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/posts/offline-sync ``` ```json title="Response" { "post": { "id": "clx123...", "title": "Offline sync: what we learned", "slug": "offline-sync", "html": "

Six months ago we...

", "excerpt": "Six months, three rewrites...", "featureImage": "https://...", "featureImageAlt": "A whiteboard full of arrows", "featured": false, "publishedAt": "2026-10-02T10:00:00.000Z", "updatedAt": "2026-10-05T15:30:00.000Z", "tags": [ { "id": "...", "name": "Engineering", "slug": "engineering" } ], "authors": [ { "id": "...", "slug": "minji-ahn", "name": "Minji Ahn", "bio": "Writes about sync and storage.", "avatar": "https://...", "website": null, "twitter": "minjiahn", "linkedin": null } ] } } ``` A missing post returns `404` with `{ "post": null }`. ## Preview a post ```endpoint GET /sites/{siteId}/posts/preview/{idOrUuid} ``` Returns a post or page **in any status**: draft, scheduled or published. Look it up by id or uuid, never by slug. Use it to show unpublished drafts on your own frontend. > [!WARNING] > This endpoint **requires the site's API key**. Call it from your server only, and never expose the key to browsers. ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/posts/preview/0b6c1f9e-... \ -H "Authorization: Bearer blgg_..." ``` The response is shaped like [Get a post](#get-a-post), plus `status` and `uuid`. It is sent with `Cache-Control: private, no-store`. | Status | When | | --- | --- | | `401` | No key, or a key for another site | | `404` | No post or page with that id or uuid | To open drafts from the editor's **Preview** button on your frontend, see [Draft previews](/docs/headless#draft-previews-on-your-frontend). --- # Pages > List published pages and fetch one with its HTML. Pages are standalone content such as *About* or *Pricing*. They have no tags and don't appear in post lists. ## List pages ```endpoint GET /sites/{siteId}/pages ``` Returns every published page. ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/pages ``` ```json title="Response" { "pages": [ { "id": "clx123...", "title": "About", "slug": "about", "updatedAt": "2026-10-01T10:00:00.000Z" } ] } ``` ## Get a page ```endpoint GET /sites/{siteId}/pages/{idOrSlug} ``` Returns one published page with its full HTML, by id or slug. ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/pages/about ``` ```json title="Response" { "page": { "id": "clx123...", "title": "About", "slug": "about", "html": "

We are a small team...

", "featureImage": "https://...", "updatedAt": "2026-10-01T10:00:00.000Z" } } ``` A missing or unpublished page returns `404` with `{ "page": null }`. To preview a draft page, use the [preview endpoint](/docs/api/posts#preview-a-post). It serves pages too. --- # Tags > List a site's tags with post counts, and fetch one tag's details. ## List tags ```endpoint GET /sites/{siteId}/tags ``` Returns every tag on the site. `postCount` is the number of published posts using it. ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/tags ``` ```json title="Response" { "tags": [ { "id": "clx123...", "name": "Engineering", "slug": "engineering", "description": "How we build things", "postCount": 12 } ] } ``` ## Get a tag ```endpoint GET /sites/{siteId}/tags/{slug} ``` Returns one tag with its feature image and SEO fields, for a tag page. ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/tags/engineering ``` ```json title="Response" { "tag": { "id": "clx123...", "name": "Engineering", "slug": "engineering", "description": "How we build things", "featureImage": "https://...", "metaTitle": "Engineering | Field Notes", "metaDescription": "How the Field Notes team builds things" } } ``` A missing tag returns `404` with `{ "tag": null }`. For the tag's posts, call [List posts](/docs/api/posts#list-posts) with `?tag=engineering`. --- # Authors > The public author profiles behind your bylines. Authors are the public bylines on posts. Emails are never returned. ## List authors ```endpoint GET /sites/{siteId}/authors ``` ```bash curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/authors ``` ```json title="Response" { "authors": [ { "id": "clx123...", "slug": "minji-ahn", "name": "Minji Ahn", "bio": "Writes about sync and storage.", "avatar": "https://...", "website": "https://minji.dev", "twitter": "minjiahn", "linkedin": null } ] } ``` ## Get an author ```endpoint GET /sites/{siteId}/authors/{slug} ``` Returns `{ "author": { ... } }` with the fields above, or `404` with `{ "author": null }`. For an author's posts, call [List posts](/docs/api/posts#list-posts) with `?author=minji-ahn`. It returns posts that list the author, and posts they created when a post lists no authors. ## Authors who left An author who has left the site keeps their name on their posts but has `"slug": null`, so there is no author page to link to. Check `slug` before building a link. --- # Errors > Status codes the Content API returns and what to do about them. The Content API uses standard HTTP status codes. A successful request returns `200`. | Status | Meaning | What to do | | --- | --- | --- | | `400` | A query parameter is invalid, such as `limit=500` | Fix the request | | `401` | The API key is unknown, malformed, or belongs to another site. Or the preview endpoint was called without a key | Check the key and the `siteId` | | `404` | The site, post, page, tag or author doesn't exist, or isn't published | Show your not-found page | | `500` | Something went wrong on our side | Retry later. If it keeps happening, email us | ## Not found A `404` for a single resource returns that key set to `null`, so you can handle it like any other response: ```json { "post": null } ``` Drafts and scheduled posts are reported as `404`, the same as missing ones. Nothing about unpublished content leaks through the public endpoints. ## Unauthorized A `401` carries an `error` message: ```json { "error": "API key does not match the requested site" } ``` | Message | Cause | | --- | --- | | `Invalid authorization header format` | The header isn't `Authorization: Bearer ` | | `Invalid API key` | The key doesn't exist or was deleted | | `API key does not match the requested site` | The key belongs to another site | | `An API key is required for previews` | The preview endpoint was called without a key | > [!TIP] > Public endpoints work without a key. If you only read published content, leaving the header out avoids every `401`. --- # MCP server > Connect Claude, Cursor or any MCP client. Agents read, draft and edit posts and pages next to your team, under your rules. Quillhive runs a [Model Context Protocol](https://modelcontextprotocol.io) server. Connect an AI assistant to it and the assistant can work on your blog with you: draft new posts, make targeted edits, retag and, when you ask, publish. Everything it does follows the same roles as people in the dashboard, and every change can be undone. ## Endpoint ```text https://api.quillhive.com/api/mcp ``` Streamable HTTP, stateless. Authenticate with a bearer token: ```http Authorization: Bearer blgg_pat_... ``` ## Get started in two steps 1. Create a **personal access token** in the dashboard: open the user menu and choose **MCP server**. Pick read-only or read and write. 2. Add the server to your client. For Claude Code: ```bash claude mcp add --transport http quillhive https://api.quillhive.com/api/mcp \ --header "Authorization: Bearer blgg_pat_..." ``` Then ask something like *"List my drafts on Quillhive"* or *"Draft a post about our new pricing and leave it as a draft"*. Other clients: see [Connect a client](/docs/mcp/clients). ## What agents can do | Tools | Access | | --- | --- | | `list_sites`, `get_site`, `list_tags` | Read | | `list_posts`, `get_post`, `list_pages`, `get_page` | Read | | `list_post_revisions`, `list_page_revisions` | Read | | `create_post`, `create_page` | Write | | `update_post`, `update_page`, `edit_post`, `edit_page` | Write | | `restore_post_revision`, `restore_page_revision` | Write | | `trash_post`, `trash_page`, `restore_post_from_trash`, `restore_page_from_trash` | Write | Write tools only appear for tokens and keys that can write. Full parameters are in [Tools](/docs/mcp/tools). ## How it stays safe - **Your roles apply.** An agent acts as a person (or as an agent staff member) and has exactly their access. Authors only see their own posts. - **Drafts by default.** New posts and pages are drafts unless the agent sets a status. - **No overwrites.** Every write must name the revision it's based on. If someone saved since, the write is refused. - **Risky changes need a person.** Unpublishing, changing a live slug, gutting a published post or dropping all its tags is refused until the user confirms. - **Deletes go to the trash.** An agent can move a post or page to the trash, but only people can delete it for good. No bulk tools: one item per call. - **Everything is undoable.** Each change keeps the version it replaced. Read [Collaborating safely](/docs/mcp/safety) for how this works in practice. ## One server for all your sites A personal access token reaches every blog you're staff on. Every tool takes an optional `site` (id or slug). Leave it out when the token reaches only one site. --- # Authentication > Personal access tokens, site API keys and agent staff members, and when to use each. The MCP server accepts three kinds of credentials, all sent as a bearer token: ```http Authorization: Bearer ``` | | Personal access token | Site API key | Agent staff member | | --- | --- | --- | --- | | Prefix | `blgg_pat_` | `blgg_` | `blgg_` | | Acts as | You | The admin who created it | The agent | | Sites | All of yours, or the ones you pick | One | One | | Role | Yours, on each site | The creator's | Author or editor | | Created in | User menu → **MCP server** | **Settings → Developer → API** | **Settings → Staff → Add agent** | Every request checks the current role on the site it targets. Change a role or remove someone, and their tokens follow at once. ## Personal access tokens Recommended when you are the one working with the assistant. 1. In the dashboard, open the user menu and choose **MCP server**. 2. Create a token. Optionally limit it to some blogs, and choose **read-only** or **read & write**. 3. Copy it. It is shown once; only a hash is stored. A token acts as you on **every blog you're active staff on**, with your role on each, including blogs you join later. Leaving a blog, or being deactivated on it, cuts the token off from that blog. Revoke a token from the same page. ## Site API keys A site key reaches only its own blog. 1. Open **Settings → Developer → API** (admins only). 2. Create a key. It is **read-only** unless you turn on **Allow agents to edit content**. A key acts as the admin who created it: - Content it creates or edits is attributed to that person. - Its permissions follow that person's current role on the site. - If that person is removed from the site, their keys stop working. Delete a key to revoke it at once. The same keys work with the [Content API](/docs/api#authentication). ## Agent staff members Give an assistant its own identity, so its work is credited to it rather than to a person. 1. Open **Settings → Staff** and choose **Add agent** (admins only). 2. Name it, choose **author** or **editor**, and read or write access. 3. Copy the key. It is shown once. - Agents are never admins and can't sign in to the dashboard. - In the dashboard, the agent's changes are credited to the agent. Posts it creates get the person who added it as their public byline, so agents never show on your blog. - **New API key** on the Staff page replaces the key; the old one stops working at once. - Deactivating the agent pauses its key; removing the agent deletes it. ## Which sites a call targets Every tool except `list_sites` takes an optional `site`: a site id or slug. - With a site key, an agent key, or a token limited to one blog, leave it out. - With several sites and no `site`, the call fails and lists the sites you can use. - `list_sites` shows each site with your role and whether you can write. --- # Connect a client > Set up Claude Code, Claude Desktop, Cursor and other MCP clients. You need the endpoint and a token from [Authentication](/docs/mcp/authentication). ```text https://api.quillhive.com/api/mcp ``` ## Claude Code ```bash claude mcp add --transport http quillhive https://api.quillhive.com/api/mcp \ --header "Authorization: Bearer blgg_pat_..." ``` Add `--scope user` to use it in every project. Run `/mcp` inside Claude Code to check it's connected. ## Cursor and other remote MCP clients Clients that support remote (HTTP) servers take a URL and headers. In Cursor, add this to `.cursor/mcp.json` or **Settings → MCP**: ```json title="mcp.json" { "mcpServers": { "quillhive": { "url": "https://api.quillhive.com/api/mcp", "headers": { "Authorization": "Bearer blgg_pat_..." } } } } ``` ## Clients that only speak stdio Bridge with the [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) npm package. This works for Claude Desktop and any client that starts servers as local commands: ```json title="claude_desktop_config.json" { "mcpServers": { "quillhive": { "command": "npx", "args": [ "mcp-remote", "https://api.quillhive.com/api/mcp", "--header", "Authorization: Bearer ${QUILLHIVE_API_KEY}" ], "env": { "QUILLHIVE_API_KEY": "blgg_pat_..." } } } } ``` ## Check it works Ask your assistant: - *"Which Quillhive sites can you see?"* It calls `list_sites`. - *"Show me my latest drafts."* It calls `list_posts` with `status: "draft"`. If you see an authentication error, check that the header is `Authorization: Bearer ` and that the token hasn't been revoked. > [!TIP] > Keep tokens out of files you commit. Most clients can read the token from an environment variable, as in the `mcp-remote` example. --- # Tools > Every MCP tool with its parameters. Content is GitHub-flavored Markdown. Every tool except `list_sites` takes an optional `site` (id or slug), left out of the tables below. Post and page tools are mirrors of each other: `get_post` and `get_page`, `edit_post` and `edit_page`, and so on. Pages have no `featured` or `tags`. Write tools only appear for tokens and keys with write access. ## Sites and tags ### list_sites Sites this token can work on, with your role and write access on each. No parameters. ### get_site The site's details and your access level on it: role and whether you can write. ### list_tags Tags on the site, with how many posts use each. ## Reading content ### list_posts · list_pages Most recently updated first. | Parameter | Type | Description | | --- | --- | --- | | `status` | `draft` or `published` or `scheduled` or `all` | Defaults to `all` | | `query` | string | Filter by title, case-insensitive | | `tag` | string | Posts only. Tag name or slug | | `limit` | number | 1 to 100. Default 20 | | `offset` | number | For paging. Results are sorted by last update, newest first | ### get_post · get_page The full Markdown content and the current `revision`. | Parameter | Type | Description | | --- | --- | --- | | `id` | string | Id or slug | If the content has blocks Markdown can't represent, the result includes a `warning`. See [Content format](#content-format). ## Writing content ### create_post · create_page Saved as a draft unless `status` is set. | Parameter | Type | Description | | --- | --- | --- | | `title` | string | Required | | `content` | string | Required. Markdown body | | `slug` | string | Defaults to one made from the title | | `excerpt` | string | Short summary for listings | | `status` | `draft` or `published` or `scheduled` | Default `draft`. `scheduled` needs a `publishedAt`; the item goes live within a minute of it. `published` with a future `publishedAt` schedules instead | | `publishedAt` | string | ISO 8601 with an offset. Defaults to now when publishing. A time that has already passed publishes a `scheduled` item at once | | `featureImage` | string | Image URL | | `featureImageAlt` | string | Alt text | | `featured` | boolean | Posts only. Pin to the top of the blog | | `tags` | string[] | Posts only. Tag names; missing tags are created | ### update_post · update_page Changes only the fields you pass. `content` replaces the whole body; use `edit_*` for small changes. | Parameter | Type | Description | | --- | --- | --- | | `id` | string | Id or slug | | `revision` | string | Required. From your latest read or write of this item | | `title`, `content`, `slug`, `excerpt`, `status`, `publishedAt`, `featureImage`, `featureImageAlt`, `featured`, `tags` | | As in `create_*`. `tags` replaces all tags | | `allowLossyRewrite` | boolean | Allow a rewrite that drops blocks Markdown can't represent | | `confirm` | boolean | Confirms a [risky change](/docs/mcp/safety#confirming-risky-changes) to published content. Only after the user approves | ### edit_post · edit_page Find-and-replace edits on the Markdown body, as returned by `get_*`. Edits apply in order, all or nothing. | Parameter | Type | Description | | --- | --- | --- | | `id` | string | Id or slug | | `revision` | string | Required | | `edits` | array | At least one `{ find, replace, replaceAll? }` | | `allowLossyRewrite` | boolean | As above | | `confirm` | boolean | As above | Each `find` must match exactly once, unless `replaceAll` is `true`. An empty `replace` deletes the text. ```json title="edit_post" { "id": "launch-notes", "revision": "2026-10-13T09:12:44.120Z", "edits": [ { "find": "We shipped", "replace": "Today we shipped" }, { "find": "beta", "replace": "preview", "replaceAll": true } ] } ``` ## Revisions ### list_post_revisions · list_page_revisions Earlier versions, newest first. Each is the state right before a change replaced it, with who made the change, through what (`mcp`, `dashboard`, `restore` or `schedule`), the title, slug, status and a content preview. | Parameter | Type | Description | | --- | --- | --- | | `id` | string | Id or slug | | `limit` | number | 1 to 50. Default 10 | | `offset` | number | For paging | ### restore_post_revision · restore_page_revision Puts the item back to an earlier version: title, slug, excerpt, status, publish date, feature image, tags and content. The current version is saved as a revision first, so a restore can be undone. | Parameter | Type | Description | | --- | --- | --- | | `id` | string | Id or slug | | `revisionId` | string | From `list_*_revisions` | | `revision` | string | The item's current revision | | `confirm` | boolean | Needed when restoring a published item would unpublish it, change its slug, gut its text or drop its tags | ## Trash ### trash_post · trash_page Deletes an item by moving it to the trash. It disappears from the blog and from `list_*` / `get_*`, but nothing is lost: it keeps its content, tags, slug and revisions. Only people can delete trashed items for good, from the dashboard. | Parameter | Type | Description | | --- | --- | --- | | `id` | string | Id or slug | | `confirm` | boolean | Needed when the item is published, since trashing it takes it off the blog | ### restore_post_from_trash · restore_page_from_trash Takes an item out of the trash with the status, slug and content it had. Find trashed items with `list_posts` / `list_pages` and `status: "trashed"`. | Parameter | Type | Description | | --- | --- | --- | | `id` | string | Id or slug of the trashed item | ## Content format Agents read and write GitHub-flavored Markdown: headings, emphasis, links, lists, block quotes, code blocks, tables, images and horizontal rules. Quillhive converts it to the same content the editor and blog use. Images, galleries, link cards and YouTube videos from the editor come back as Markdown, so editing the text around them keeps them: - An image is `![alt](src "caption")`. Its width setting (normal, wide or full) is kept as long as the `src` stays the same, or when you only swap image URLs (for example to re-host them) without adding or removing images. New images use normal width. - A gallery is a list of images between two comment lines. The first names the gallery width: `normal`, `wide` or `full`. - A link card is its link between two comment lines, with the card's title as the link text. Quillhive fills in its description and preview image: from the post's excerpt and feature image for a link to a post on the same site (`/post//`), otherwise from the page's `og:description` and `og:image`. They are kept as long as the URL stays the same. - A YouTube video is its URL between two comment lines. Any YouTube video link works (`youtu.be`, watch, shorts or playlist). Its start time and size are kept as long as it's the same video. ```md ![First photo](https://example.com/1.jpg) ![Second photo](https://example.com/2.jpg) [Card title](https://example.com/page) https://www.youtube.com/watch?v=dQw4w9WgXcQ ``` Links are `[text](url)` or ``. A bare URL or email address in the text stays plain text and is never turned into a link. New links open in the same window. Editing the text around a link keeps its "open in new window" setting as long as the URL stays the same. Links to your own site are never marked `nofollow`, so search engines follow them between your pages. Strikethrough is `~~text~~`. A single `~` is always literal, so prices like "(~$5)" are safe to write as they are. Underline is `text`. Text from the editor comes back escaped where Markdown would otherwise read it as markup, for example `\
` for the literal text "
" and `\&` for "&". Keep the backslashes when editing nearby text. Tables with a single header row and one line of text per cell are Markdown tables. A line break in a cell is `
` and a `|` in a cell is `\|`. Tables with merged cells, a header column, or lists or several paragraphs in a cell come back as HTML so nothing is lost; edit the text inside it and leave the tags as they are. Column widths are kept as long as the table keeps the same columns. Some editor blocks have no Markdown form: X embeds, math and highlights. When a post has them: - `get_*` returns a `warning`. - Rewriting the content (`update_*` with `content`, or `edit_*`) is refused, so those blocks aren't dropped by accident. - Changing only metadata (title, tags, status…) still works. - Pass `allowLossyRewrite: true` when removing them is intended. --- # Collaborating safely > Revisions, confirmations and undo. How agents and people edit the same posts without stepping on each other. ## Revisions prevent overwrites Every read and write returns a `revision`. Update, edit and restore calls must send the revision they're based on. If anyone, a person in the dashboard or another agent, saved the item since then, the call fails with a revision conflict that names who changed it. The agent should re-read the item and apply its change again, instead of overwriting their work. ```text → get_post { "id": "launch-notes" } ← { "id": "clx…", "revision": "2026-10-13T09:12:44.120Z", "content": "# Launch notes\n\nWe shipped…" } → edit_post { "id": "clx…", "revision": "2026-10-13T09:12:44.120Z", "edits": [{ "find": "We shipped", "replace": "Today we shipped" }] } ← { "id": "clx…", "slug": "launch-notes", "status": "draft", "revision": "2026-10-13T09:15:02.871Z" } ``` ## Confirming risky changes When a post or page is **published**, these changes are refused unless the call passes `confirm: true`: | Change | Why it's guarded | | --- | --- | | Unpublishing (`status` set to `draft` or `scheduled`) | Takes a live page off the blog | | Changing the `slug` | Breaks existing links and search rankings | | Emptying the body, or cutting its text below half | Usually a mistaken rewrite. The shrink check applies when the current text is at least 200 characters | | `tags: []` on a post that has tags | Drops it from every tag page | The refusal names every guarded change at once, and nothing is saved: ```text This post is published at /launch-notes. This change would unpublish it (status "draft") and change its slug from "launch-notes" to "launch", breaking existing links. Nothing was saved. Ask the user to confirm, then retry with confirm: true. ``` The agent should ask its user, and retry with `confirm: true` only after they approve. It must never set `confirm` on its own. Drafts aren't guarded, and changes that hit no guard need no flag. The guards apply to every role, since they exist to catch mistakes, not to enforce permissions. ## Undo with revisions Every change to an existing post or page keeps the version it replaced. If an agent makes a mistake, it should not rebuild the old state by hand: 1. `list_post_revisions { "id": "…" }` to find the version from before the change. `replacedAt`, `source`, `status` and the content preview help pick it. 2. `restore_post_revision { "id": "…", "revisionId": "…", "revision": "" }`. A restore saves the current state first, so it can be undone the same way. People can do the same from **History** in the editor. See [Revision history](/help/revision-history). ## Rules that don't change Agents can read and write content, but some things stay with people. These are deliberate: - **Deletes go to the trash.** `trash_post` and `trash_page` move an item to the trash, where it stays recoverable. Trashing a published item needs `confirm: true`. Only people delete trashed items for good, from the dashboard. No tool deletes tags, media, sites or staff. - **One item per call.** No bulk or "apply to all" tools. An agent that changes many items makes one call each, so every change is checked against permissions and revisions. - **Publishing is visible.** Publishing through MCP refreshes the live blog and fires [webhooks](/docs/webhooks), just like the dashboard. ## Good habits for agents The server sends these instructions to every client: - Leave publishing to people unless they asked you to publish. - Prefer `edit_*` for small changes over rewriting the whole body. - Pass back the `revision` from your latest read. On a conflict, re-read and reapply. - Ask before risky changes, and tell people when you restored something. --- # Headless sites > Render your blog with your own frontend, using Quillhive as the CMS and API. A site is either **hosted** or **headless**. - **Hosted** (the default): Quillhive renders the blog on its free address or your custom domain. - **Headless**: your own frontend renders it from the [Content API](/docs/api) and stays fresh with [webhooks](/docs/webhooks). Quillhive is the editor and the API. Switch modes in **Settings → Developer → Domains** (admins only). ## Settings | Setting | Meaning | Example | | --- | --- | --- | | Frontend URL | Where your frontend lives. A base path is allowed | `https://example.com` | | Post URL pattern | Where a published post lives. Defaults to `{slug}` | `/blog/{slug}` | | Page URL pattern | Where a published page lives. Defaults to `{slug}` | `/{slug}` | | Preview URL pattern | Where to see an unpublished post or page. No default | `/preview/{uuid}` | Placeholders: `{slug}`, `{id}`, `{uuid}` and `{type}` (`post` or `page`). Values are URL-encoded. A pattern resolves against the frontend URL the way a link does. With a frontend URL of `https://example.com/blog`: | Pattern | Resolves to | | --- | --- | | `/post/{slug}` (leading `/`) | `https://example.com/post/hello-world` | | `post/{slug}` (no leading `/`) | `https://example.com/blog/post/hello-world` | | `https://news.example.com/{slug}` | Used as is | The [Site endpoint](/docs/api/sites) returns `headless`, `frontendUrl`, `postUrlPattern` and `pageUrlPattern`, so your frontend can build the same links. The preview pattern is never public, because it may carry a secret. ## What changes in headless mode | | Hosted | Headless | | --- | --- | --- | | **View site** in the dashboard | Your blog's address | Your frontend URL | | **View post** / **View page** | `/{slug}` on the hosted blog | Your post and page patterns | | **Preview** on drafts | The hosted blog | Your preview pattern; hidden until set | | Domains page | Connect custom domains | Mode and frontend URL only | | The free address | Serves the blog | Redirects to the same path on your frontend | Custom domains connected before the switch are kept but not used. Point their DNS at your frontend instead. Switching back to hosted restores them. ## Build a frontend 1. Get your site ID from **Settings → Developer → API**. 2. Fetch content from the [Content API](/docs/api): the site with its menus, posts (paginated), single posts by slug, pages, tags and authors. 3. Render `post.html` as the body. It's ready-made HTML. 4. Use the site's SEO fields for ``, meta and social tags. See [Sites](/docs/api/sites#fields-worth-knowing) for the fallbacks. 5. Cache responses, and register a [webhook](/docs/webhooks) to drop the cache when content changes. 6. Turn on headless mode and set your URL patterns so the dashboard links to your pages. ## Draft previews on your frontend 1. Create an API key under **Settings → Developer → API**. Keep it on your server. 2. Add a preview route, for example `/preview/[uuid]`. On the server, load the draft from the [preview endpoint](/docs/api/posts#preview-a-post) with the key, and render it without caching and with `noindex`. 3. Set **Preview URL** to that route, for example `/preview/{uuid}`. The editor's **Preview** button then opens drafts on your frontend. > [!WARNING] > A `uuid` is random, so the link works as a share-by-link preview. If drafts must stay private, add your own check, such as a signed-in session or a secret in the URL. --- <!-- https://quillhive.com/docs/webhooks --> # Webhooks > Get a signed HTTP request whenever posts, pages, tags or site settings change. Webhooks tell your systems when content changes: refresh a cache, rebuild a static site, post to Slack. Changes made in the dashboard and by agents over MCP both trigger them. ## Add a webhook 1. Open **Settings → Developer → Webhooks** (admins only). 2. Enter the URL that should receive requests. 3. Pick the events to listen to. Tick a group such as **Posts** to select all of its events. 4. Save, and copy the **signing secret** (`whsec_…`). Use **Send test** to deliver a sample request. Each webhook shows the time, HTTP status and error of its last attempt. A site can have up to 50 webhooks. ## Events | Event | When | | --- | --- | | `site.updated` | Site settings, design, integrations or navigation change | | `post.created` | A post is created, in any status | | `post.updated` | A post is saved | | `post.published` | A post is created as, or changes to, published, including a scheduled post going live at its publish date | | `post.deleted` | A post is deleted (moved to the trash) | | `page.created` · `page.updated` · `page.deleted` | The same for pages | | `tag.created` · `tag.updated` · `tag.deleted` | Tag changes | A webhook only receives the events you ticked. Events added to Quillhive later are not turned on for existing webhooks. ## The request Quillhive sends one `POST` per event: ```http POST /your/endpoint HTTP/1.1 Content-Type: application/json User-Agent: Blogging-Webhooks/1.0 X-Blogging-Event: post.published X-Blogging-Delivery: 5f0c… X-Blogging-Signature: t=1762682400,v1=3b1f… { "id": "5f0c…", "event": "post.published", "createdAt": "2026-11-09T10:00:00.000Z", "site": { "id": "…", "slug": "field-notes" }, "data": { "postId": "…", "postSlug": "hello-world" } } ``` `data` carries the ids and slugs of what changed: `postId` and `postSlug`, `pageId` and `pageSlug`, `tagSlug`, or `tagSlugs`. Fetch the full object from the [Content API](/docs/api) if you need it. A test delivery sends `{ "test": true }` as `data`. ## Verify the signature Always check that a request came from Quillhive before acting on it. `X-Blogging-Signature` has a timestamp `t` and a signature `v1`. `v1` is the hex HMAC-SHA256 of `` `${t}.${rawBody}` ``, keyed with your signing secret. Compute it over the **raw** request body, before parsing JSON. ```typescript title="verify.ts" import { createHmac, timingSafeEqual } from 'crypto' export function verifyQuillhiveSignature( rawBody: string, header: string, secret: string, ) { const { t, v1 } = Object.fromEntries( header.split(',').map((part) => part.split('=')), ) const expected = createHmac('sha256', secret) .update(`${t}.${rawBody}`) .digest('hex') // Reject old requests to block replays const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300 return ( fresh && v1?.length === expected.length && timingSafeEqual(Buffer.from(v1), Buffer.from(expected)) ) } ``` ```typescript title="Next.js route handler" import { revalidateTag } from 'next/cache' export async function POST(request: Request) { const body = await request.text() const signature = request.headers.get('x-blogging-signature') ?? '' if (!verifyQuillhiveSignature(body, signature, process.env.QUILLHIVE_WEBHOOK_SECRET!)) { return new Response('Invalid signature', { status: 401 }) } const { event, data } = JSON.parse(body) if (data.postSlug) revalidateTag(`post:${data.postSlug}`) revalidateTag('posts') return Response.json({ ok: true, event }) } ``` A site has **one signing secret shared by all its webhooks**, so one endpoint can verify every event with one value. Rotate it from the Webhooks page; the new secret applies to every webhook at once. ## Delivery - Sent right after the change is saved. One attempt with a 10 second timeout; there are no retries yet. - Any `2xx` response counts as success. - URLs must be `http` or `https` and resolve to a public address. Redirects are not followed. - Respond quickly, and do slow work in the background. > [!TIP] > Since there are no retries, also give cached content a time limit, so a missed webhook only delays an update. --- <!-- https://quillhive.com/help --> # How Quillhive works > Plain answers about writing and publishing, your blog's look and domain, and working with your team and AI agents. ## Common questions ### How do I take a post down? Open the post and choose **Unpublish**. It goes back to being a draft, and your blog, tag pages and sitemap update at once. [Read more](/help/writing#publishing) ### Can I undo a change, mine or an agent's? Yes. Choose **History** in the editor, pick an earlier version and choose **Restore this version**. The current state is saved first, so a restore can be undone too. [Read more](/help/revision-history#restore-a-version) ### Why isn't my blog showing up in search engines? Search engines only index your blog once **Allow indexing** is on in **Settings → Design**. On the free address, turning it on sends the site for a short review first. [Read more](/help/design#search-engines) ### Can I use my own domain? Yes. Add it in **Settings → Developer → Domains**, add the DNS records Quillhive shows you, then choose **Verify**. Use a subdomain such as `blog.yourcompany.com`. [Read more](/help/domains) ### What's the difference between an author, an editor and an admin? Authors write and manage their own posts. Editors edit and publish everyone's posts and pages and manage tags. Admins also run settings, design, domains and the team. [Read more](/help/team#roles) ### Can an AI agent delete or publish posts? Agents can delete posts and pages, but they only go to the [trash](/help/trash): nothing is gone until you empty it. An agent added as an editor can publish, but risky changes, like unpublishing or changing a live slug, wait until you agree. [Read more](/help/agents#what-agents-cant-do) ### Can I move my blog from Ghost? Yes. Export your content from Ghost, then drop the file into **Settings → Import**. Posts, pages, tags, authors and images come across. [Read more](/help/import-export#import-from-ghost) ### How do I preview a draft? Choose **Preview** in the editor to see the draft the way readers will. Once the post is live, the same button becomes **View post**. [Read more](/help/writing#previews) ### How do I change my blog's logo, fonts or colors? Open **Settings → Design**. Upload a logo and favicon, pick heading and body fonts, turn on dark mode and choose the home page layout. [Read more](/help/design#design) ### How do I add links to my blog's header or footer? Open **Settings → Navigation** and add items to the **Header** or **Footer** menu. Each item links to a page on your blog or any other URL. [Read more](/help/design#navigation) ### How do I invite someone to my blog? Open **Settings → Staff**, choose **Invite member**, enter their email and pick a role. They join once they accept the email invitation. [Read more](/help/team#invite-someone) ### Can I add Google Analytics? Yes. Open **Settings → Developer → Integrations** and connect **Google Analytics 4** with your measurement ID, or **OpenPanel**. [Read more](/help/design#analytics) ### Can I download all my content? Yes. Open **Settings → Export** and choose **Download export**. You get one JSON file with every post and page, drafts included, plus tags and authors. [Read more](/help/import-export#export) --- <!-- https://quillhive.com/help/getting-started --> # Getting started > Create your blog, write and publish your first post, and invite your team. About five minutes. ## Create your site 1. Go to [app.quillhive.com](https://app.quillhive.com) and sign in with Google. 2. Give your blog a name and pick an address. It becomes your blog's free address, which you can swap for your own domain later. 3. You land on the site's dashboard. Your blog is already live, with no posts yet. You can change the name, title, tagline and address later in **Settings → General**. ## Write your first post 1. Open **Posts** and choose **New post**. 2. Type a title, then start writing. Type `/` on an empty line for headings, lists, images, embeds and more. 3. Open the post settings from the editor's header to set the URL, an excerpt, tags, authors and a feature image. Posts save as drafts. Nobody outside your team sees a draft. See [Writing and publishing](/help/writing). ## Publish Choose **Publish** in the editor and confirm. The post appears on your blog right away. Use **Unpublish** to take it back to a draft. > [!TIP] > Use **Preview** to see a draft the way readers will before you publish. ## Invite your team Open **Settings → Staff**, choose **Invite member**, enter their email and pick a role: **admin**, **editor** or **author**. See [Team and roles](/help/team). ## Make it yours - **Design**: logo, fonts, dark mode and home page layout. See [Design and navigation](/help/design). - **Domain**: serve the blog from `blog.yourcompany.com`. See [Custom domains](/help/domains). - **Moving from Ghost?** Bring your posts, tags and authors with [Import and export](/help/import-export). - **Writing with AI?** Add an assistant to your team. See [AI agents](/help/agents). New to the words Quillhive uses? Read [Core concepts](/help/concepts). Building your own frontend or integration? Head to the [developer docs](/docs). --- <!-- https://quillhive.com/help/concepts --> # Core concepts > Sites, posts, pages, tags, authors, your team and revisions, and how they fit together. ## Sites A **site** is one blog. It has a name, a slug (the start of its free address), optional custom domains, a design, navigation and its own team. One account can belong to many sites, with a different role on each. Quillhive hosts your blog for you by default. Developers can also render it with their own frontend instead. See [Headless sites](/docs/headless) in the developer docs. ## Posts and pages - **Posts** are dated entries: articles, updates, changelogs. They show up in the blog's post list, tag pages and feeds. A post can be **featured** to pin it to the top. - **Pages** are standalone content such as _About_ or _Pricing_. They don't appear in post lists. Link to them from the navigation, or use one as the home page. Posts and pages share one set of slugs on a site, so `/about` can only be one of them. ## Status | Status | Who sees it | | ----------- | ------------------------------------------------------------------- | | `draft` | Only your team, in the dashboard and through previews | | `scheduled` | Only your team until its publish date, then it's published for you | | `published` | Everyone. Appears on the blog and in the sitemap | See [Scheduling a post](/help/writing#scheduling-a-post). Use **Preview** in the editor to see a draft the way readers will. See [Writing and publishing](/help/writing#previews). ## Tags Tags group posts. Each tag has its own page (`/tag/<slug>`) with a name, description, feature image and SEO fields. A post's first tag is its **primary tag**. ## Authors Authors are the public bylines on posts. Each has a slug, name, bio, avatar and links. A post can have several authors, shown in byline order. Author profiles are separate from staff accounts, so you can credit people who never log in. Author emails are never public. ## Staff and roles Staff are the people (and agents) who can work on a site. Each has one role: **admin**, **editor** or **author**. AI agents can be added as staff too, with their own key. See [Team and roles](/help/team) and [AI agents](/help/agents). ## Revisions Every change to a post or page keeps the version it replaced. You can look back through them and restore one from **History** in the editor. See [Revision history](/help/revision-history). --- <!-- https://quillhive.com/help/writing --> # Writing and publishing > The editor, post settings, publishing and previews. ## The editor Open **Posts** or **Pages** in the dashboard and choose **New post** or **New page**. Write a title, then the body. Type `/` on an empty line to insert a block: | Block | What it does | | -------------------------- | --------------------------------------------------------------- | | Text, Heading, Subheading | Paragraphs and section titles | | Bullet List, Numbered List | Lists | | Quote | A block quote | | Code | A code block with syntax highlighting | | Table | A table you can add rows and columns to | | Image, Unsplash | Upload an image, or pick a free photo from Unsplash with credit | | Gallery | Several images in a grid | | Youtube, X | Embed a video or a post | | Link Card | A preview card for any URL | Markdown shortcuts work as you type: `#` for a heading, `-` for a list, `>` for a quote, three backticks for code. Save with **Save** or `⌘S` / `Ctrl+S`. Once a post is live, the button says **Update**. ## Post settings Open the settings sidebar from the editor's header. For a post you can set: - **URL**: the slug, the last part of the post's address. - **Publish date**: shown on the post and used to sort the blog. A date in the future schedules the post. See [Scheduling a post](#scheduling-a-post). - **Excerpt**: the short summary on post cards and in search results. - **Feature this post**: featured posts are listed first on the blog. - **Authors**: the public byline, in order. See [Authors](/help/concepts#authors). - **Tags**: the first tag is the primary tag. - **Feature image**: with alt text. Upload one or pick from Unsplash. Search and social card fields live under **Metadata**. See [SEO and social cards](/help/seo). ## Publishing New posts and pages are drafts. Choose **Publish** and confirm to put one live. The blog's home page, tag pages, author pages and sitemap update at once. [Webhooks](/docs/webhooks) fire for the change. A post published this way is dated now. To show a different date, for example when moving an older article over, set **Publish date** in the settings sidebar before you publish. To take a post down, choose **Unpublish**. It goes back to being a draft. ## Scheduling a post 1. Open the settings sidebar and set **Publish date** to a time in the future. The time uses your computer's time zone, shown next to the field. 2. The **Publish** button becomes **Schedule**. Choose it and confirm. The post is now `scheduled`: readers can't see it yet, and the post list shows when it goes live. Within a minute of that time it's published on its own: the blog updates and [webhooks](/docs/webhooks) fire, as if you had chosen **Publish** yourself. To change the time, edit **Publish date** and choose **Update**. Moving it to a time that has already passed publishes the post right away. To cancel, choose **Unschedule**: the post goes back to being a draft. > [!NOTE] > Authors can only edit their own posts. Editors and admins can edit and publish everything. See [Team and roles](/help/team). ## Previews **Preview** opens a draft the way readers will see it. Once the post is live, the same button becomes **View post**. On a [headless site](/docs/headless), both open your own frontend, using the URL patterns you set. ## Pages Pages work like posts, without tags or a place in the post list. Use them for _About_, _Contact_ or a landing page. Add them to your header or footer from **Settings → Navigation**, or make one your home page in **Settings → Design**. --- <!-- https://quillhive.com/help/revision-history --> # Revision history > Every change keeps the version it replaced, so mistakes by people or agents can be undone. Posts and pages keep their earlier versions. When someone saves a change, from the dashboard or through an [AI agent](/docs/mcp), the version from right before the change is stored. You can look through them and put one back. ## Open the history In the post or page editor, choose **History** in the header. You see earlier versions, newest first, with: - when the version was replaced, and by whom; - where the change came from: the **dashboard**, an agent over **MCP**, a **restore**, or a **schedule** (a scheduled post going live on its own); - the title, slug and status the item had then. Select a version to read it. Nothing changes until you restore it. ## Restore a version Select a version, choose **Restore this version** and confirm. Quillhive puts back the title, slug, excerpt, status, publish date, feature image, tags and content. Restoring is safe to try. The current state is saved as a new revision first, so a restore can be undone the same way. Restoring follows the [scheduling rules](/help/writing#scheduling-a-post): a version scheduled for a time that has already passed is published right away, and a published version dated in the future comes back scheduled. A restore is refused when: - someone saved the item while you were looking. Reload and try again; - another post now uses the old version's slug. ## What gets saved | Change | Saves a revision | | ------------------- | ----------------------------------- | | Agent edit over MCP | Always | | Restore | Always | | Dashboard save | Once per editing session, see below | The editor saves often, so a burst of saves by the same person within 10 minutes keeps a single revision: the version from before they started. Publishing, unpublishing, changing the slug, and any hand-over between people or agents always get their own revision. The newest 50 revisions of each post or page are kept. SEO metadata and authors are not versioned. ## Changes made by agents Agents see the same history. If an agent makes a mistake, it can put back the earlier version itself, or you can restore it from **History**. Developers can read how this works in [Collaborating safely](/docs/mcp/safety#undo-with-revisions). --- <!-- https://quillhive.com/help/trash --> # Trash > Deleted posts and pages go to the trash, so you can bring them back or delete them for good later. Deleting a post or page doesn't remove it right away. It moves to the **trash**, and stays there until you restore it or delete it for good. This is the same whether you delete it yourself or an [AI agent](/help/agents) does. While an item is in the trash: - it's gone from your blog, your posts and pages lists, and the [Content API](/docs/api); - it keeps its content, tags, authors, slug and [revision history](/help/revision-history); - nothing else can use its slug, so its link still works if you restore it. ## Delete a post or page In the editor, open the settings sidebar and choose **Move to trash**. A message offers **Undo** right away. ## Restore something Open **Trash** in the sidebar. Find the item and choose **Restore**. It comes back exactly as it was, published or draft. The trash shows when each item was deleted and by whom, so you can tell what an agent removed. ## Delete for good In **Trash**, choose **Delete forever** on an item, or **Empty trash** to remove everything in it. This also removes the revision history and can't be undone. Authors see and manage only their own deleted posts. Editors and admins manage the whole trash. --- <!-- https://quillhive.com/help/import-export --> # Import and export > Move your blog from Ghost to Quillhive, and download all your content as JSON. Both live under **Settings → Advanced settings** and are for admins. ## Import from Ghost Quillhive imports exports from **Ghost 4, 5 and 6**. 1. In Ghost, go to **Settings → Advanced → Import/Export** and choose **Export content**. Recent versions download a `.zip`; older ones a `.json`. 2. In Quillhive, open **Settings → Import** and choose **Ghost**. 3. Enter your Ghost site URL. Quillhive uses it to find images that the export links to. 4. Drop the export file. Quillhive checks it straight away, before anything is imported. 5. Review what it found: - how many posts, pages, tags, authors and images it contains; - what will be skipped, such as posts or tags that already exist; - who each Ghost author's posts are credited to. Add them as new authors, invite them as staff, or credit their posts to someone on your team; - warnings, such as members-only posts that will become public. 6. Pick the options and choose **Import**: - **Download images** copies images into Quillhive storage (on by default). - **Import published posts as drafts** lets you review everything before it goes live. The import runs in the background. Its page shows progress and, at the end, what was imported, skipped or failed. Running the same import twice is safe: existing posts are skipped. > [!NOTE] > Only content is imported. Members, subscriptions, comments, themes and redirects from old URLs are not. WordPress, Substack, Medium, Beehiiv and Squarespace are coming. They show as _Coming soon_ on the Import page. ## Export Open **Settings → Export** and choose **Download export**. You get one JSON file with: - all posts and pages, drafts included, with HTML and editor content; - tags with their descriptions and SEO settings; - author names, bios and links (no email addresses); - SEO and social metadata for every post; - image URLs. The images themselves stay in storage. Keep it as a backup, or take your content elsewhere. --- <!-- https://quillhive.com/help/design --> # Design and navigation > Branding, fonts, dark mode, home page layout and menus for your hosted blog. Design settings apply to the blog Quillhive hosts for you. On a [headless site](/docs/headless), your frontend decides how things look and can read these settings from the [Site endpoint](/docs/api/sites). ## Design Open **Settings → Design**. ### Brand | Field | Notes | | --------- | ------------------------------------------------------- | | Logo | Shown in the header. PNG or SVG, 200×50px or larger | | Logo icon | Square, 512×512px. Used where the full logo doesn't fit | | Favicon | The browser tab icon | ### Theme - **Dark mode**: _Light only_, or let visitors switch to a dark theme. - **Heading font** and **Body font**: pick sans-serif, serif or monospace fonts for titles and body text. ### Layout - **Homepage**: _Latest posts_, or _A specific page_ you choose. - **Post list**: _Grid_ or _List_. - **Feature images**: show or hide feature images on post cards. - **Copyright text**: shown in the footer. ### Search engines **Allow indexing** lets search engines index the site. On the free address, turning it on sends the site for a short review first. With a verified [custom domain](/help/domains), it takes effect at once. ## Navigation Open **Settings → Navigation** to edit the **Header** and **Footer** menus. Each item has a label and a URL: a path on your blog such as `/about` or `/tag/news`, or any full link. Put items under a parent to group them, keep an item as a draft until it's ready, and reorder items with the arrows. The [Content API](/docs/api/sites#get-navigation-menus) returns both menus, with the site or on their own, so a headless frontend can use them too. ## Analytics Open **Settings → Developer → Integrations** to connect **Google Analytics 4** (with your measurement ID) or **OpenPanel**. The tracking code is added to every page of your hosted blog. --- <!-- https://quillhive.com/help/seo --> # SEO and social cards > Titles, descriptions and share images for your site, posts and tags. Quillhive fills in sensible defaults from your titles, excerpts and feature images. Override them where it matters. ## Site defaults In **Settings → General**, set the site-wide values used on the home page and as a fallback everywhere else: - **Meta title** and **Meta description**, for search results. - **X title** and **X description**, for cards on X. - **Facebook title** and **Facebook description**, for Open Graph cards on Facebook and LinkedIn. - A default social image. ## Per post and page In the editor, open **Metadata**: | Field | Falls back to | | --------------------------------------------- | ------------------------------------ | | Meta title | The post title | | Meta description | The excerpt | | X image, title, description | The feature image, title and excerpt | | Facebook & LinkedIn image, title, description | The feature image, title and excerpt | ## Tags Each tag can have its own meta title, meta description and feature image for its tag page. ## What the hosted blog adds for you - Canonical URLs, Open Graph and X card tags on every page. - A sitemap at `/sitemap.xml` and a `robots.txt`. - A generated social image when a post has no feature image. Search engines only index your blog once **Allow indexing** is on. See [Design and navigation](/help/design#search-engines). --- <!-- https://quillhive.com/help/domains --> # Custom domains > Serve your blog from your own domain, like blog.yourcompany.com. Every site gets a free address when you create it. Connect your own domain to serve the blog from it instead. Only admins can manage domains. ## Connect a domain 1. Open **Settings → Developer → Domains** and choose to add a domain. 2. Enter the domain, for example `blog.example.com`. 3. Pick how SSL is handled: - **Free, bring your own SSL**: you add a CNAME and a TXT record, and handle TLS yourself (for example with Cloudflare's proxy). - **Managed SSL**: Quillhive issues and renews the certificate for you. Works with any DNS provider. 4. Add the DNS records Quillhive shows at your DNS provider. 5. Back in the dashboard, choose **Verify**. The domain turns verified once the records are found. ## DNS records For the free option you add two records. The dashboard shows the exact name and value for each: | Type | Name | Value | Purpose | | ------- | ------------------------------------ | ------------------------------------- | -------------------------- | | `CNAME` | Your domain, e.g. `blog.example.com` | The target shown in the dashboard | Sends traffic to Quillhive | | `TXT` | The name shown in the dashboard | The token shown in the dashboard | Proves you own the domain | A proxied CNAME (Cloudflare's orange cloud) is fine. DNS changes can take a few minutes to an hour to show up. > [!TIP] > Use a subdomain such as `blog.` or `news.`. Many DNS providers don't allow a CNAME on the root of a domain. ## Primary domain With more than one domain connected, pick the **primary** one. Links, the sitemap and canonical URLs use it, and the dashboard's **View site** opens it. ## Headless sites If your own frontend renders the site, you don't connect domains here. Set the frontend URL instead. See [Headless sites](/docs/headless). --- <!-- https://quillhive.com/help/team --> # Team and roles > Invite people to a site and choose what each of them can do. ## Roles Each staff member has one role on a site. The same person can have different roles on different sites. | | Author | Editor | Admin | | ----------------------------------------------- | ------ | ------ | ----- | | Write and edit their own posts | ✓ | ✓ | ✓ | | Edit and publish everyone's posts and pages | | ✓ | ✓ | | Manage tags | | ✓ | ✓ | | Change settings, design, navigation and domains | | | ✓ | | Invite and remove staff, add agents | | | ✓ | | API keys, webhooks, import and export | | | ✓ | Authors only see their own posts in the dashboard, and the same goes for anything they do through the API or an agent. ## Invite someone 1. Open **Settings → Staff**. 2. Choose **Invite member**, enter their email and pick a role. 3. They get an email with a link. Once they accept, they appear in the staff list. Pending invitations are listed on the same page, where you can cancel them. ## Change a role or remove someone From **Settings → Staff**, change a member's role at any time, or deactivate them to pause their access without removing them. Removing someone takes away their access at once, including any API keys they created and anything their personal access token could reach on that site. When you remove them, you can reassign their posts and tags to another member. ## AI agents as staff Admins can add an AI assistant as its own staff member, with its own role and key, so its changes are credited to the agent. See [AI agents](/help/agents). --- <!-- https://quillhive.com/help/agents --> # AI agents > Let Claude, Cursor or another assistant draft and edit with your team, under rules you set. Quillhive is built for teams that write with AI agents. Agents connect through the [MCP server](/docs/mcp). They can read your posts, draft new ones and make targeted edits. People stay in charge of what gets published. ## Three ways to connect an agent | Credential | Acts as | Reaches | Create it in | | ------------------------- | ------------------------------------- | ------------------------------------------ | ----------------------------------- | | **Personal access token** | You, with your role on each site | Every site you're on, or the ones you pick | User menu → **MCP server** | | **Site API key** | The admin who created it | One site | **Settings → Developer → API** | | **Agent staff member** | The agent itself, as author or editor | One site | **Settings → Staff → Add agent** | Use a **personal access token** when you are the one working with the assistant. Use an **agent staff member** when the agent works on its own and you want its changes credited to it. See [Authentication](/docs/mcp/authentication) for the details. ## Add an agent as staff 1. Open **Settings → Staff** and choose **Add agent**. 2. Name it (for example _Claude_), then pick a role: - **Author**: creates posts and edits only its own. - **Editor**: edits and publishes all posts, pages and tags. 3. Choose read-only or read and write. 4. Copy the key. It is shown once. The dialog shows setup steps for common clients. Agents can't be admins and can't sign in to the dashboard. What they write is credited to the agent inside the dashboard, while the public byline is the person who added the agent, so agents never show up on the blog. To replace a lost key, choose **New API key** on the Staff page. The old key stops working at once. Deactivate the agent to pause it, or remove it to delete its key. ## What agents can't do These are deliberate rules: - **Deletes go to the trash.** An agent can delete a post or page, but it only moves to the [trash](/help/trash), where you can restore it. Only people can delete things for good. Deleting a published post needs your OK first. Agents can't delete tags, media or anything else. - **One item per call.** There are no bulk tools. Every change is checked on its own. - **Risky changes need you.** Unpublishing, changing a live slug, gutting a published post or removing all its tags is refused until the agent asks you and you agree. - **No overwrites.** If someone saved since the agent read a post, its edit is refused and it has to re-read first. Every change an agent makes can be undone from **History**. See [Revision history](/help/revision-history).