Close menu
Explore Plans
Mobile menu Close menu
Ghost

Create a draft post

This action will create a new draft post on your Ghost site for you to review and publish.

Developer info

API endpoint slug
ghost.create_a_draft_post
Filter code method
Ghost.createADraftPost.skip(string?: reason)
Runtime method
runAction("ghost.create_a_draft_post", {})

Action fields

Title Text input > Title

Label
Post title
Helper text
The title of the draft post.
Slug
title
Required
true
Can have default value
true
Filter code method
Ghost.createADraftPost.setTitle(string: title)

Content Text input > HTML

Label
Post content
Helper text
The body of the post. You can include basic HTML formatting.
Slug
content
Required
false
Can have default value
true
Filter code method
Ghost.createADraftPost.setContent(string: content)

Tags Text input > Tags

Label
Tags
Helper text
Tags to apply, separated by commas. New tags are created if they do not exist.
Slug
tags
Required
false
Can have default value
true
Filter code method
Ghost.createADraftPost.setTags(string: tags)

Excerpt Text input > Long text

Label
Excerpt
Helper text
A short custom excerpt for the post. Leave blank to auto-generate one.
Slug
excerpt
Required
false
Can have default value
true
Filter code method
Ghost.createADraftPost.setExcerpt(string: excerpt)

Feature image url Text input > Photo

Label
Feature image URL
Helper text
URL of an image to use as the post's feature image.
Slug
feature_image_url
Required
false
Can have default value
true
Filter code method
Ghost.createADraftPost.setFeatureImageUrl(string: feature_image_url)