# Outlets and publishing

An outlet is a place where Unspar sends finished articles, like your WordPress site or an email inbox. You connect it once. After that you publish each article there when you're happy with it.

Web version: https://www.unspar.com/docs/guides/outlets-and-publishing/

Unspar writes your articles inside the app. To get an article onto your website, you publish it to an outlet. An outlet holds your site's address and the login details Unspar needs to post there. Unspar stores those details encrypted and never shows them again.

A project is one website in Unspar. Outlets belong to your whole account, so every project can use every outlet. Outlets and publishing don't cost credits. You only pay for writing the article and its images.

![Outlets list with a Ghost, a webhook and a WordPress outlet, the Type column and the New outlet button marked](https://www.unspar.com/images/docs/outlets-list.webp)

Each row is one place Unspar can publish to. New outlet adds another.

## Which kinds of outlets are there?

- **WordPress:** Unspar creates a normal post with its images. The post goes live or waits as a draft in WordPress. See [WordPress](https://www.unspar.com/docs/guides/wordpress/).
- **Ghost:** Unspar creates a post with the title and the text. It goes live right away. The setup is on this page.
- **GitHub:** For sites built from Markdown files, like Astro or Hugo. Unspar adds the article as a file to your repository. See [GitHub](https://www.unspar.com/docs/guides/github/).
- **Webhook:** Unspar sends the article as signed JSON to your own server. Your code decides what happens next. See [Webhooks](https://www.unspar.com/docs/guides/webhooks/).
- **Email:** Unspar sends the article to one or more email addresses. The setup is on this page.

Medium outlets connected earlier still work, but you can't add new ones. For a site on another system, like Wix, choose **Download** on the article and paste the HTML or Markdown into your site.

## Add an outlet

You set up each outlet once. You need the Owner or Administrator role in your team to do this. Managers can publish to outlets, but they can't change them.

1. Open [Outlets](https://app.unspar.com/outlets) in the sidebar.
2. Choose **New outlet**. The form opens on the **Assistant** tab.
3. For a WordPress or Ghost site, type the site's address under **Website URL or domain** and choose **Detect**. Unspar recognizes the system, selects its card, and fills in the API address and a name. For the other kinds, choose the card under **Destination** yourself.
4. Fill in the fields under **Connection**. They depend on the kind of outlet.
5. Choose **Test connection**. For email, the button is **Send test email**.
6. Choose **Create outlet**.

The outlet now shows up in the list. Unspar saves it even if the connection test fails. If the test fails, the message starts with "Outlet created, but connection test failed" and gives the reason. Fix the outlet before you publish to it. The **Manual** tab has the same settings in one form, without detection.

![Create outlet form with Website URL or domain, the Detect button and the five Destination cards](https://www.unspar.com/images/docs/outlets-detect-cards.webp)

Detect picks WordPress or Ghost for you. For the other kinds, choose the card yourself.

## Connect a Ghost site

Ghost lets other apps publish through a custom integration with its own key. You need to create one in Ghost first, which requires the Administrator or Owner role there.

In Ghost:

1. In Ghost Admin, open **Settings** and find **Integrations**.
2. Choose **Add custom integration**, name it "Unspar", and add it.
3. Copy the **Admin API key** and the **API URL** that Ghost shows.

The Admin API key has a colon in the middle, like `id:secret`. The Content API key that Ghost also shows doesn't work for publishing.

In Unspar:

1. In [Outlets](https://app.unspar.com/outlets), choose **New outlet** and then the **Ghost** card.
2. Paste the API URL from Ghost into **Ghost Admin API URL**, for example `https://example.ghost.io`. Leave out `/ghost/api/admin`, because Unspar adds it automatically.
3. Paste the key into **API key**.
4. Choose **Test connection** and then **Create outlet**.

If the test says "Could not connect to Ghost. Check the URL and Admin API key.", check the end of the URL and make sure you pasted the Admin API key.

Ghost receives the title and the text. Unspar doesn't send images, tags, or excerpts to Ghost. Each post goes live the moment it arrives, no matter what **Default status** says. An image marked **Required before publishing** blocks publishing to Ghost, so keep [images](https://www.unspar.com/docs/guides/images/) optional or off for a Ghost site.

![Ghost outlet form with Ghost Admin API URL and API key filled in and the Test connection button](https://www.unspar.com/images/docs/outlets-ghost-form.webp)

Paste the API URL and the Admin API key from Ghost's integration screen.

## Send articles by email

An email outlet sends each article you publish to one or more addresses, with the text in the email itself. This works well when someone puts articles on the site by hand. Once Unspar has emailed an article, it counts as published, and you can't publish it to another outlet later.

1. Open [Outlets](https://app.unspar.com/outlets), choose **New outlet**, and pick the **Email** card.
2. Under **To recipients**, enter one or more addresses, separated by commas. **CC recipients** and **BCC recipients** are optional. One address in any of the three fields is enough.
3. Give the outlet a **Name**.
4. Open **More options** to change the **Subject template** or to add **Attachments**.
5. Choose **Send test email**. Every address gets a short test message.
6. Choose **Create outlet**. Saving doesn't send anything.

The **Subject template** starts as `{{title}}`, which becomes the article's title. You can add text around it, like `New article: {{title}}`. Under **Attachments**, you can add the article as **Markdown (.md)** or **PDF (.pdf)**. The email layout and the image options are only on the **Manual** tab.

Emails come from Unspar's own address, and you can't change the sender. If the test email doesn't arrive, check the addresses and the spam folder.

## Publish an article

Publishing sends one finished article to one outlet. The **Publish** action appears once an article is finished and not yet published.

If a project always writes for the same site, give it a **Default outlet**. Open the project from [Projects](https://app.unspar.com/projects), choose **Edit**, and pick the outlet under **Publishing automation**. New articles in that project then go to that outlet. Articles that already exist keep the outlet they had.

1. Open the article from [Articles](https://app.unspar.com/articles) and choose **Publish**. The Articles list has the same action in the article's row.
2. Under **Outlet**, check the outlet or pick another one.
3. Under **Publish timing**, choose **Now** or a later time.
4. Choose **Publish now**. For a later time, the button is **Schedule publish**.

With **Now**, Unspar sends the article and waits for your site's answer. You then see "Article published successfully." or the reason it failed. A scheduled article waits in Unspar until its time. See [Scheduling and auto-publish](https://www.unspar.com/docs/guides/auto-publish/).

## What happens after publishing?

The article page has a card called **Publishing and source**. It shows the status, the outlet, and for most outlets a **View** link to the post. Published in Unspar means the outlet confirmed that it got the article. What that means on your side depends on the outlet.

| Outlet    | Unspar shows Published when                                                        |
| --------- | ---------------------------------------------------------------------------------- |
| WordPress | WordPress created the post. If the outlet sends drafts, it's a draft in WordPress. |
| Ghost     | Ghost created the post, which is live.                                             |
| GitHub    | The file is in the repository. Your site still has to build.                       |
| Webhook   | Your server answered with a status code in the 200s.                               |
| Email     | The mail server accepted the email.                                                |

Each article goes to one outlet, once. Unspar doesn't update or remove the post later, so make any changes on your site. You can't edit a published article in Unspar, so [ask for changes](https://www.unspar.com/docs/guides/the-article-page/) before you publish.

## What if publishing fails?

After **Publish now**, the message names the reason. A failed scheduled or automatic publish only shows "Publish failed" in the card. Unspar doesn't try again or notify you.

1. In [Outlets](https://app.unspar.com/outlets), open the outlet's menu and choose **Test connection**.
2. Fix what the test reports, like an expired password or token.
3. Open the article and publish it again.

If the connection drops while publishing, Unspar may show "Unknown publish outcome". [Troubleshooting](https://www.unspar.com/docs/guides/troubleshooting/) explains what to do.

## For AI agents

Agents can list outlets and publish an article to one. In the outlet list, ready only means that the settings are complete, so test the connection first. Publishing sends the article outside Unspar, so the command asks for confirmation unless you pass --force. Publish only articles that a person has read and approved.

```sh
unspar outlets list
unspar outlets show <outlet-id>
unspar api post /outlets/<outlet-id>/test
unspar articles publish <article-id> --outlet <outlet-id>
unspar articles publish <article-id> --outlet <outlet-id> --scheduled-at 2026-12-01T08:00:00+01:00
unspar articles status <article-id> --jq .publishing_status
unspar api get /articles/<article-id>/publishing-attempts
```
