Skip to content
Ghost logo

Connectors / Marketing · HTTP Connector

Ghost integration and API

Create a post, create a page and create a tag in Ghost, and start a workflow when Ghost sends “Post published”.

What can you do with Ghost on Tray.ai?

Ghost is an open source publishing platform for blogs, newsletters and paid memberships, used by independent writers and media businesses. Tray.ai connects to Ghost through the HTTP Connector, so your workflows can call the Ghost API alongside the rest of your stack.

  • When Ghost sends “Post published”, share the new post in your team chat and on your social channels.
  • When Ghost sends “Member added”, create a contact in your CRM with their subscription details.
  • Create a member when a customer opts into your newsletter at checkout.
  • When Ghost sends “Member deleted”, remove the person from your email marketing lists.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://{admin_domain}/ghost/api/admin

Set it up

Connect Ghost to Tray.ai

Each step uses Ghost's own API details, from its documentation.

Save Ghost's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://{admin_domain}/ghost/api/admin as the base URL. Or paste a cURL example from Ghost's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List posts”

It's one of 23 documented actions, under Posts. The response comes back as data the next step can map into your other apps.

Start workflows from Ghost events

Give Ghost the URL of a Tray.ai webhook trigger. “Post published” can then start a workflow, and so can 6 other events.

Workflows to build with Ghost

Connect Ghost with HubSpot, Slack and Stripe

Each one uses actions and events from Ghost's own API documentation.

Add new Ghost members to HubSpot

When

Member added

Then

  1. Get a member
  2. Create or update the contact in HubSpot

With HubSpot

Announce new Ghost posts in Slack

When

Post published

Then

  1. Get a post
  2. Post the title and link to the marketing channel in Slack

With Slack

Create Ghost members from Stripe subscriptions

When

A subscription is created in Stripe

Then

  1. List members
  2. Create a member

With Stripe

Apps you can build on Ghost data

Internal tools your team can build with an AI assistant, each one using Ghost calls from its API documentation.

Editorial review board

Lists draft posts by tag and lets an editor update or publish each post.

Member lookup tool

Finds a member and shows their details so support staff can update their record.

Newsletter growth report

Shows new members, newsletters and active offers for a publisher's weekly review.

Ghost MCP server for AI agents

Build an MCP server on Ghost in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List posts
  • List pages
  • List members
  • List tags
  • List newsletters
  • List offers
  • Get a post
  • Create a post

What the Ghost API covers

6 resources and 23 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.

Posts

  • List posts
  • Get a post
  • Create a post
  • Update a post
  • Delete a post

Pages

  • List pages
  • Create a page
  • Update a page
  • Delete a page

Members

  • List members
  • Get a member
  • Create a member
  • Update a member

Tags

  • List tags
  • Create a tag
  • Update a tag
  • Delete a tag

Newsletters

  • List newsletters
  • Create a newsletter
  • Update a newsletter

Offers

  • List offers
  • Create an offer
  • Update an offer

Events Ghost can send to a Tray.ai webhook trigger

  • Post published
  • Post updated
  • Page published
  • Member added
  • Member updated
  • Member deleted
  • Tag added

Checked against Ghost's own documentation on 2026-10-22

docs.ghost.org/admin-api

Frequently asked questions

What can a Tray.ai workflow do in Ghost?

The Ghost API documents 23 actions across 6 resources (Posts, Pages, Members, Tags, Newsletters, Offers). For example: List posts; List pages; List members. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Ghost?

The Ghost API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Ghost events can start a Tray.ai workflow?

Ghost sends 7 events to a webhook URL, for example: Post published; Post updated; Page published; Member added; Member updated; Member deleted; Tag added. A Tray.ai webhook trigger receives them and starts a workflow.

See Ghost working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.