Skip to content

Connecting sites

Connect a Ghost site

Connect a Ghost site with a custom integration's Admin API key, see how posts and SEO fields appear in Ghost, and fix common connection errors.

Updated

On this page

Quillfleet publishes to Ghost through Ghost's own Admin API. There's nothing to install and no theme to change. You add a custom integration in Ghost, paste its Admin API key into Quillfleet, and you're ready to publish. It works with self-hosted Ghost and Ghost(Pro), version 5 or newer.

How it works

  1. You add a custom integration in Ghost. It gets an Admin API key that only works for apps, and you can delete the integration at any time to cut off access.
  2. Quillfleet stores the key encrypted at rest. The key itself is never sent: each request carries a short-lived token signed with it, over HTTPS only, and Quillfleet never follows redirects.
  3. When you publish, Quillfleet creates or updates the post through the Admin API. Ghost converts the content to its own editor format, so the post opens normally in the Ghost editor.
  4. Your site renders the post with your Ghost theme, like any other post.

A few rules keep your existing content safe:

  • Quillfleet only touches its own posts. It remembers the Ghost post id, and each post carries an invisible <!-- quillfleet:<id> --> marker in its footer code injection. If a slug already belongs to a post Quillfleet didn't create, the push fails with slug_conflict and that post is left untouched.
  • Publishing never emails your members. Posts go live on the site only. Send a newsletter from Ghost if you want one.
  • Edits made in Ghost at the same moment are respected. If someone is editing the post in Ghost while Quillfleet saves it, Ghost refuses the save and Quillfleet retries a moment later.

Before you start

You'll need:

  • Ghost 5 or newer, self-hosted or on Ghost(Pro).
  • The Owner or an Administrator role in Ghost, to add an integration.
  • The owner or admin role in your Quillfleet workspace. Editors can't add sites.
  • Room in your plan. See Billing and plans.

Step 1: Create a custom integration in Ghost

  1. In Ghost Admin, go to Settings → Integrations.
  2. Click Add custom integration, name it Quillfleet and click Create.
  3. Ghost shows the integration's keys. Copy the Admin API key (a short id, a colon, then a long string of letters and digits) and the API URL.

Don't use the Content API key. It can only read posts.

Step 2: Add the site in Quillfleet

  1. In Quillfleet, click Sites in the sidebar.
  2. Under Add a site, choose Ghost.
  3. Fill in the form:
    • API URL: the API URL from step 1, for example https://blog.example.com or https://name.ghost.io. Your site's address works too. Quillfleet removes extras like /ghost/.
    • Name (optional): leave it blank to use your Ghost site title.
    • Admin API key: the key you copied.
  4. Click Connect Ghost.

Quillfleet saves the site and tests the connection straight away. You land on the site's page with either "Connected to Ghost. Posts can be published to it now." or "Saved, but the connection check failed:" followed by the reason. The site is saved either way, so fix the problem with the troubleshooting section below and click Test connection.

How your posts appear in Ghost

In Quillfleet In Ghost
Title, Slug, Content Post title, URL and content
Excerpt Excerpt (up to 300 characters)
Published / Draft Published / Draft
Categories, then Tags Tags, matched by name. The first category becomes the primary tag. Missing tags are created.
Cover image and its alt text Feature image and its alt text
SEO title, SEO description Meta title and meta description
Social share image Facebook card image
Canonical URL Canonical URL
Hide from search engines (noindex) A noindex robots tag in the post's header code injection
Taking the site off the post The post is deleted from Ghost. Ghost has no trash, so it can't be restored there, but it stays in Quillfleet.

Other details:

  • Author: posts are created by the integration and show the site owner as the author. The Author field isn't used for Ghost.
  • Scheduling stays in Quillfleet. A scheduled post is sent when its time comes, with the date it first went live.
  • Images stay at their Quillfleet address. Ghost shows images from other addresses, so nothing needs copying. Storing uploads on Ghost itself isn't available, because Ghost's API can't delete images afterwards.
  • Your own code injection is kept. Quillfleet only adds and replaces its own lines in the post's code injection.

Edit in Quillfleet, not in Ghost

Quillfleet is the source of truth. The next time you save the post in Quillfleet, the Ghost post is overwritten and changes made in Ghost are lost. If someone deletes the post in Ghost, the next save recreates it.

Troubleshooting connection errors

"Ghost refused the Admin API key."

The key is wrong, or the integration was deleted or its key regenerated. Copy the Admin API key again from Settings → Integrations → Quillfleet and use Replace Admin API key on the site's page.

If the form says "That doesn't look like a Ghost Admin API key", you've probably pasted the Content API key or only part of the key.

"The Ghost integration isn't allowed to do this."

Make sure you used a custom integration's Admin API key, not a staff user token or the Content API key.

"No Ghost Admin API found at …"

Check the API URL. Use the one shown next to the Admin API key. On Ghost(Pro) with a custom domain, the https://name.ghost.io address always works.

"… redirected to …"

Your site sends visitors to a different address, for example from http:// to https:// or to www.. Quillfleet never follows redirects. Delete the site and add it again with the final address, or with the API URL from the integration.

"Blocked before reaching Ghost (HTTP 401)" or "(HTTP 403)"

A firewall or proxy in front of Ghost stopped the request. Ask whoever manages it to allow requests to /ghost/api/admin/.

"slug_conflict: Ghost already has a post at …"

Ghost already has a post at that URL that Quillfleet didn't create. Change the Slug in Quillfleet and save, or rename or delete the existing post in Ghost and click Retry.

"could not reach site" or "timed out"

The site was down or slow. Quillfleet retries automatically.

Delete a Ghost site from Quillfleet

  1. Take Quillfleet's posts off the site: untick the site in each post and save.
  2. On the site's page, click Delete site.
  3. To fully disconnect, delete the Quillfleet integration in Ghost under Settings → Integrations.

What happens next