> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lovable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect your app to Ghost

> Connect your app to Ghost, an open-source publishing platform, to read and publish posts and pages and manage members and newsletters from your Lovable app.

[Ghost](https://ghost.org/) is an open-source publishing platform for blogs, newsletters, and memberships. The Ghost connector lets your Lovable app read and publish content and manage members on one Ghost site. It's designed for apps that show your Ghost content in your own design, editorial tools, and signup flows backed by your Ghost site.

Ghost is available as an [app + chat connector](https://docs.lovable.dev/integrations/app-connectors.md): one shared connection that works in [Chats](https://docs.lovable.dev/features/chats.md), in the project chat while you build, and in your published apps.

With Ghost, your app can:

* List and display posts and pages, including drafts and scheduled posts
* Create, update, and publish posts and pages
* Read and manage tags
* Look up members, add members, and subscribe them to newsletters
* Read newsletters, membership tiers (paid membership levels), and offers (discounts on those levels)
* Upload images to your Ghost site for use in posts and pages
* Register a webhook, so Ghost notifies your app when content or members change

The connector works with self-hosted Ghost sites that use HTTPS and with Ghost(Pro), the hosting service run by Ghost, on plans that include custom integrations. A custom integration is how Ghost gives an external app its own keys. The Ghost(Pro) Starter plan does not include custom integrations.

## Common use cases and example apps

These examples show what you can build with Ghost, each with a prompt to start from.

| Example app | Example prompt | Description |
| :- | :- | :- |
| **Custom blog front end** | *Use Ghost and build a blog that lists my published posts with their tags and authors and shows each post on its own page.* | **Show Ghost content in your own design.** The app reads published posts from your Ghost site and displays them, so writers keep working in Ghost. |
| **Newsletter signup page** | *Use Ghost and build a landing page with a signup form that adds each person as a member subscribed to my weekly newsletter.* | **Grow your member list from any page.** The app adds each signup to your Ghost site as a member and subscribes the member to the newsletter you choose. |
| **Guest post submissions** | *Use Ghost and build a form where contributors submit an article that is saved as a draft post on my Ghost site.* | **Turn submissions into drafts.** The app creates a draft post for each submission, so your editors review and publish it in Ghost. |
| **Editorial dashboard** | *Use Ghost and build a dashboard that shows my draft, scheduled, and published posts with a button to publish a draft.* | **See and move content through its stages.** The app reads posts by status and publishes a draft when you ask it to. |
| **Members overview** | *Use Ghost and build an admin page that lists my members with their labels and lets me search for a member by email.* | **Find members without opening Ghost Admin.** The app reads members from your Ghost site and looks up one member by email address. |
| **Latest posts feed** | *Use Ghost and build a "What's new" page that updates when I publish a post on my Ghost site.* | **Keep a page current as you publish.** The app registers a webhook with Ghost and refreshes its list of posts when Ghost reports a new one. |

## How to connect Ghost

Who can create Ghost connections depends on your plan and workspace settings. App + chat connectors are available by default. On Business and Enterprise plans, [Who can create connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-create-connections-and-clients) starts at **Admins**. Some Enterprise workspaces start at **No one**, which disables the connector. An admin or owner changes it in **Connectors → Admin settings → App + chat connectors**.

You can create multiple Ghost connections using different API keys, which is useful for separating environments (for example, staging and production) or connecting more than one Ghost site.

When the connection is created, you can [link it to the projects](https://docs.lovable.dev/integrations/app-connectors.md#link-a-connection-to-a-project) where you want to use it. Anyone building in a project can ask Lovable in the project chat to link their project to it. Linking follows the connection's access rules.

### Prerequisites

Before connecting Ghost, make sure you have:

* A Ghost site that uses HTTPS: self-hosted, or on a Ghost(Pro) plan that includes custom integrations
* An Administrator or Owner account on that site
* An Admin API key from a custom integration on that site
* Permission to **create connections** in your Lovable workspace (see [Who can create connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-create-connections-and-clients))

> [!NOTE]
>
> All requests made through this connector run against your Ghost site. Hosting and subscription costs are billed by Ghost or your hosting provider, not Lovable.

### Step 1: Get a Ghost Admin API key

A Ghost Admin API key lets your Lovable app read and change the content and members of one Ghost site. The key belongs to a custom integration. Ghost has no sign-in window for external apps, so you connect with this key.

Requests from your app go through Lovable's [connector gateway](https://docs.lovable.dev/integrations/app-connectors.md#gateway-based-connectors), which adds the Ghost credentials. Your Admin API key is not exposed to your published app.

To create a Ghost Admin API key:

**1. Open Ghost Admin**

Sign in to Ghost Admin for the site you want to connect.

**2. Navigate to integrations**

Go to **Settings → Integrations**.

**3. Create a custom integration**

Click **Add custom integration**. Give it a descriptive name, for example `Lovable integration`.

**4. Copy the key**

Copy the **Admin API key** and store it securely. The integration also shows a Content API key. Lovable does not accept the Content API key.

**5. Note your Admin URL**

Note the address you use to open Ghost Admin, without the `/ghost` path at the end. On Ghost(Pro), use the `ghost.io` address, for example `https://your-site.ghost.io`, not a custom domain.

> [!WARNING]
>
> Your API key functions like a password. Keep it secure and never share it publicly. You'll need it in the next step.

See Ghost documentation for more: [Ghost Admin API](https://ghost.org/docs/admin-api/).

### Step 2: Connect Ghost to Lovable

Each Ghost connection reaches one Ghost site with one Admin API key.

**1. Open Ghost in Connectors**

Open [Connectors](https://lovable.dev/dashboard?connectors) and select **Ghost**. For the other places to open the catalog from, see [Where to find connectors](https://docs.lovable.dev/integrations/introduction#where-to-find-connectors).

**2. Add a connection**

Click **Connect** on the connector page. The form is split into collapsible sections, **Details**, **Configure connection**, and **Sharing**.

**3. Name the connection**

Under **Details**, Lovable fills in a name for the connection, which you can change. The name is only used inside Lovable to identify the connection.

**4. Configure the connection**

Under **Configure connection**, enter:

1. **Admin URL**: enter the address you noted when you created the key, for example `https://your-site.ghost.io`. The address must start with `https://`. You cannot change the Admin URL after the connection is created, so check that it is the site you want. To use a different site, create a new connection.
2. **Admin API key**: paste the whole Admin API key you copied from Ghost Admin, including the colon in the middle.

**5. Choose who can use this connection**

Under **Sharing**, the connection is private to you by default and shows a **Private** label. To share it, click **Share with others**. Then add workspace members by email, or click **Invite entire workspace** to make the connection available to everyone in your Lovable workspace.

See [Who can use connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-use-connections-and-clients) for more information.

**6. Connect**

Click **Connect** at the bottom of the form. Lovable verifies the Admin API key against the Ghost Admin API before saving the connection.

When connected, anyone building in a project can ask Lovable in the project chat to link their project to Ghost. Linking follows the connection's access rules. Your Lovable apps can then read and publish content and manage members on your Ghost site.

If the custom integration is deleted in Ghost, or its Admin API key changes, the creator of the connection opens it and clicks **Edit** next to **Admin API key** under **Configure connection**, pastes the new key, and clicks **Update**.

## Limitations

The Ghost connector cannot:

* Use the Ghost Content API or a Content API key. Your app reads posts, pages, tags, and authors through the Ghost Admin API instead.
* Connect to a Ghost site over plain HTTP.
* Show which Ghost staff member is signed in. The connection belongs to an integration, not to a staff account.
* List the webhooks on your Ghost site. Ghost lets an integration create, update, and delete webhooks, but not list them.
* Support per-end-user Ghost login. Each connection represents a single Ghost site shared across all projects linked to it.

## Manage your Ghost connection

Connections are managed from [**Connectors**](https://lovable.dev/dashboard?connectors): select **Ghost**, then open the connection.

* **Unlink projects** to remove Ghost access from specific projects while keeping the connection available for others. See [Unlink projects from a connection](https://docs.lovable.dev/integrations/app-connectors.md#unlink-projects-from-a-connection) for the steps.
* **Delete the connection** to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use Ghost stop working until a new connection is added. See [Delete a connection](https://docs.lovable.dev/integrations/app-connectors.md#delete-a-connection) for the steps and who can delete.
