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

# Megaphone Integration

> Auto-publish Megaphone podcast episodes as Ghost posts and import your existing episode library. Available on the Voyager plan and above.

Outpost's Megaphone integration auto-publishes new podcast episodes from your [Megaphone](https://megaphone.fm) shows as Ghost posts. You can also import your 200 most recent existing episodes, so podcast episodes show up alongside your written content.

## What this integration does

* **Auto-publishes** new episodes as Ghost posts as they go live on Megaphone
* **Imports** your 200 most recent existing episodes as Ghost posts (one-time backfill)
* Creates each post with the episode title, description, and audio player embed
* Publishes according to your configured settings

## Setup

1. In Megaphone, get your API credentials from **Settings → API Access**.
2. In Outpost, open the Megaphone integration and enter:
   * **API Token**: Your Megaphone API token.
   * **Network API URL**: Your Megaphone network API endpoint.
3. Click **Load Available Podcasts** and choose the podcast to sync.
4. Configure the podcast's settings (see below).

## Podcast settings

The integration connects one Megaphone podcast at a time, chosen from a dropdown. For the podcast you select:

| Setting | Options | Description |
| - | - | - |
| **Mode** | Import Existing Episodes / Add Only New Episodes | Import Existing Episodes imports your 200 most recent episodes. Add Only New Episodes imports only episodes published after you connect the integration. Changing your settings later doesn't change which episodes count as new, but disconnecting and reconnecting resets it to the moment you reconnect. |
| **Post Tags** | Select from your Ghost tags | Tags added to every post created from this podcast. |
| **Post Authors** | Select from your Ghost authors | The author or authors assigned to each episode post. |
| **Add Megaphone Description to the Post** | No / First Paragraph / All Text | How much of the episode description goes into the post body. |
| **Add Megaphone Description to the** | No / Metadata field / Metadata and Excerpt fields | Copies the episode's subtitle into the post's meta description, which search engines show. **Metadata and Excerpt fields** also uses the subtitle as the post's excerpt. |
| **Hide the Featured Image on the Post** | No / Yes | **Yes** hides the episode artwork at the top of the post page. The artwork stays set as the post's feature image, so it still appears in post cards and shared links. |
| **Post Template** | Select from your Ghost theme templates | Assigns a custom Ghost theme template to episode posts. Leave it blank to use the default template. |
| **Embed Options** | Embed Megaphone Player / Use Deferred Loading script (requires theme change) | **Embed Megaphone Player** puts the Megaphone player in the post. **Use Deferred Loading script** leaves a placeholder that a script in your theme turns into a player when the page loads, so use it only if your theme has that script. |
| **Publish Mode** | Draft / Published | **Draft** saves each new post as a draft for you to review. **Published** publishes it straight away. |

## Episode-to-post mapping

| Megaphone Field | Ghost Post Field |
| - | - |
| Episode title | Post title |
| Episode description | Post body, following the **Add Megaphone Description to the Post** setting |
| Episode subtitle | Meta description, and the excerpt when you choose **Metadata and Excerpt fields** |
| Publication date | Post published date |
| Episode audio | Megaphone player, or a placeholder for your theme's deferred-loading script |
| Episode artwork | Featured image, plus an auto-generated social sharing image for shared links. If the sharing image can't be made, the episode is still imported without one. |

Outpost checks Megaphone for new episodes about every 15 minutes and publishes any it finds according to these settings.

## Checking on the import

Below the podcast settings are three controls:

* **Check for New Episodes**: click **Check for New** to run the regular check right away instead of waiting for the next one.
* **Full Refresh**: click **Full Refresh**, then **Refresh All Episodes** to confirm. Outpost goes through the podcast's 200 most recent episodes on Megaphone, imports any it hasn't imported yet, recreates posts that were deleted, and rewrites the posts it already imported using your current settings (see the warning below). If a regular check finds an unusually large number of episodes to import at once, Outpost pauses the automatic checks and alerts the Outpost team to look into it. Full Refresh isn't stopped by that limit, so use it when you mean to import a large batch.
* **Sync Status**: **Last checked** shows how long ago Outpost last checked Megaphone, and **Last successful** how long ago a check last finished without an error. After three or more failed checks in a row, it also shows how many have failed. A check fails when Outpost can't connect to Megaphone, for example when your API credentials stop working.

Saving the Megaphone settings, **Check for New**, and the automatic check only create posts for episodes that don't have one yet. They never change a post Outpost has already imported, so edits you make in Ghost, such as tags, the excerpt, the feature image, a transcript you added, or the post's status, are kept. They also don't bring back a post you deleted in Ghost.

> [!WARNING]
>
> Full Refresh is the only action that changes posts Outpost has already imported. It rebuilds each post from Megaphone using your current settings and replaces:
>
> * The status. Each post is set to your **Publish Mode**, so a published episode goes back to draft when Publish Mode is **Draft**, and a post you moved back to draft is published again when it's **Published**.
> * The tags. Tags you added by hand in Ghost are removed.
> * The post body, including a transcript or notes you added by hand.
> * The title, publish date, authors, feature image, and social sharing image.
> * The meta description, when **Add Megaphone Description to the** is set to **Metadata field** or **Metadata and Excerpt fields**, and the excerpt, when it's set to **Metadata and Excerpt fields**.
> * The post's code injection footer, and its template when **Post Template** is set.
>
> Each post keeps its URL. A change you make to an episode on Megaphone after it's imported only shows up on its post after a Full Refresh.

## Re-importing episodes

To import episodes published before you connected, set **Mode** to **Import Existing Episodes** and save. Saving starts the import straight away and creates posts for the episodes that don't have one yet, so set **Publish Mode** the way you want first. Disconnecting and reconnecting doesn't import episodes again: episodes that already have a post are skipped. While **Mode** is **Add Only New Episodes**, older episodes are skipped, even by Full Refresh.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.