Docs//Untitled

Untitled

5 min read

title: "Ghost CMS Integration" description: "Connect iContentForge to your Ghost CMS for automated publishing. Learn how to generate an Admin API Key and map article fields." section: "CMS Integrations"

Ghost CMS Integration

Connect your iContentForge project to a Ghost publication to automatically publish AI-generated articles. This guide walks you through generating the required Admin API Key in Ghost and configuring the connection in iContentForge.

Prerequisites

Before you begin, ensure you have:

  • An active iContentForge project with articles in the Ready status.
  • Owner or Administrator access to your Ghost publication's admin area.
  • Ghost v4.x or v5.x (Ghost 5.x is strongly recommended it uses the modern Lexical editor format).

Step 1: Generate a Ghost Admin API Key

The integration uses Ghost's Admin API, which requires a dedicated API Key.

  1. Log in to your Ghost Admin dashboard (typically at yourdomain.com/ghost).
  2. Navigate to Settings by clicking the gear icon in the bottom left.
  3. Click Integrations in the settings menu.
  4. Click Add custom integration.
  5. Give your integration a descriptive name, such as "iContentForge Auto-Publish".
  6. Click Create.
  7. On the integration details page, find the API Key section. Click Copy on the Admin API Key.
鈿狅笍

Keep your API Key secure. Treat it like a password. The Admin API Key grants full content management permissions. Do not share it publicly or commit it to version control.

Step 2: Configure the Connection in iContentForge

  1. In your iContentForge dashboard, go to your Project and open the CMS tab.
  2. Click Connect CMS and select Ghost from the list of available platforms.
  3. You will see a configuration form with two required fields:
    • Base URL: Enter the full URL to your Ghost site (e.g., https://myblog.com). Do not include a trailing slash or the /ghost path.
    • Admin API Key: Paste the key you copied from Ghost in Step 1. The format should be id:secret both parts separated by a colon.
  4. Click Verify Connection. iContentForge will test the credentials and API endpoint.
  5. Upon successful verification, an additional dropdown will appear:
    • Default Tag: Select a primary tag from your Ghost publication. All articles published from iContentForge will be assigned this tag automatically. You can add more specific tags during the article generation phase within iContentForge.
馃挕

Use a tag like iContentForge or Automated as your default. This makes it easy to identify and manage all auto-published articles within your Ghost admin panel later.

Step 3: Field Mapping & Publishing

When iContentForge publishes an article to Ghost, the content fields are mapped as follows:

iContentForge FieldGhost FieldNotes
Article TitletitlePublished as the post title.
Full Article BodyhtmlArticle content in HTML, converted to Ghost's Lexical format automatically via source=html.
Meta Titlemeta_titleUsed for the SEO meta title.
Meta Descriptionmeta_descriptionUsed for the SEO meta description.
Excerptcustom_excerptA short summary of the post.
Primary KeywordAssigned as a TagThe main target keyword becomes a tag.
Secondary KeywordsAssigned as TagsAll secondary keywords are added as tags.
Featured Image URLfeature_imageThe image is hosted by iContentForge/CDN and linked.
AuthorauthorsMaps to the first author in your connected Ghost publication.
StatusstatusArticles are published as published or scheduled based on your Drip Feed settings.
鈩癸笍

Ghost 5.x Content Format: Ghost 5.x uses the Lexical editor format internally. iContentForge submits content as HTML and Ghost automatically converts it to Lexical. This conversion is seamless no additional configuration is required on your end.

Publishing Workflow

Once connected:

  1. Articles in the Ready status will be published according to your project's Drip Feed schedule (approximately every 5 minutes).
  2. You can also manually publish a single ready article by clicking the publish icon in your article list.
  3. The article status in iContentForge will change from Ready to Published upon successful receipt of a 201 Created response from the Ghost API.
  4. If an error occurs (e.g., API key invalid, site unreachable), the status will change to Error, and you can view logs for troubleshooting.

Troubleshooting

Connection Verification Fails

  • Double-check your Base URL. It should be the public-facing URL of your site, not the admin URL (e.g., https://myblog.com, not https://myblog.com/ghost).
  • Ensure the Admin API Key was copied correctly in id:secret format, with no extra spaces.
  • Verify your Ghost publication is version 4.x or higher. Older versions may not support all API features.

Article Publishes But Content is Empty

  • This typically means the Ghost API did not receive the content in the correct format. Ensure your Ghost installation is up to date (v5.x recommended for full Lexical support).
  • Check the error logs in the iContentForge article detail view for specific API error messages from Ghost.

Article Fails to Publish

  • Check that the Default Tag selected in iContentForge exists in your Ghost publication. If it has been deleted, re-verify the connection and select a new default tag.
  • Review the error logs in the iContentForge article detail view for specific API error messages from Ghost.

Next Steps