Skip to content

Ghost

Ghost Admin API operations for Sanoma workflows.

Package @sanoma-ai/connector-ghost, version 0.11.24. Its README, with how to install and connect it, is on GitHub.

post

create

ghost.post.createwrite

Create a post. Drafts are not visible on the site.

Input

  • titlestringrequired

    at least 1 character

  • htmlstringrequired
  • status"draft"

    default "draft"

Output

  • idstringrequired
  • urlstringrequired
  • slugstringrequired
  • status"draft" | "scheduled" | "published" | "sent"required
  • publishedAtstring | nullrequired

publish

ghost.post.publishpublishsafe to retry

Publish a draft post on the site. Visible to everyone.

Input

  • idstringrequired

Output

  • idstringrequired
  • urlstringrequired
  • slugstringrequired
  • status"draft" | "scheduled" | "published" | "sent"required
  • publishedAtstring | nullrequired

These pages describe sanoma 0.11.24.