Ghost
Node: ghost · Full type: n8n-nodes-base.ghost · Version: 1
Credentials
ghostAdminApi (alias: @ghost) / ghostContentApi (alias: @ghost)
CREDENTIAL @ghost = ghostAdminApi "My Ghost"
Operations
Resource: post
get
| Parameter |
Type |
Default |
Details |
by |
options |
"id" |
required; id, slug |
identifier |
string |
"" |
required |
options |
collection |
{} |
keys: fields, formats |
options |
collection |
{} |
keys: fields, formats |
getAll
| Parameter |
Type |
Default |
Details |
returnAll |
boolean |
false |
|
limit |
number |
50 |
|
options |
collection |
{} |
keys: include, fields, formats |
options |
collection |
{} |
keys: include, fields, formats |
create
| Parameter |
Type |
Default |
Details |
title |
string |
"" |
required |
contentFormat |
options |
"html" |
html, mobileDoc, lexical |
content |
string |
"" |
|
content |
json |
"" |
|
content |
json |
"" |
|
additionalFields |
collection |
{} |
keys: authors, canonical_url, codeinjection_foot, codeinjection_head, featured, meta_description, ... |
delete
| Parameter |
Type |
Default |
Details |
postId |
string |
"" |
required |
get
| Parameter |
Type |
Default |
Details |
by |
options |
"id" |
required; id, slug |
identifier |
string |
"" |
required |
options |
collection |
{} |
keys: fields, formats |
options |
collection |
{} |
keys: fields, formats |
getAll
| Parameter |
Type |
Default |
Details |
returnAll |
boolean |
false |
|
limit |
number |
50 |
|
options |
collection |
{} |
keys: include, fields, formats |
options |
collection |
{} |
keys: include, fields, formats |
update
| Parameter |
Type |
Default |
Details |
postId |
string |
"" |
|
contentFormat |
options |
"html" |
html, mobileDoc, lexical |
updateFields |
collection |
{} |
keys: authors, canonical_url, codeinjection_foot, codeinjection_head, content, contentJson, ... |
Common Parameters
| Parameter |
Type |
Default |
Details |
source |
options |
"contentApi" |
adminApi, contentApi |
Parameter Details
additionalFields children:
| Parameter |
Type |
Default |
Details |
authors |
multiOptions |
[] |
|
canonical_url |
string |
"" |
|
codeinjection_foot |
string |
"" |
|
codeinjection_head |
string |
"" |
|
featured |
boolean |
false |
|
meta_description |
string |
"" |
|
meta_title |
string |
"" |
|
og_description |
string |
"" |
|
og_image |
string |
"" |
|
og_title |
string |
"" |
|
published_at |
dateTime |
"" |
|
slug |
string |
"" |
|
status |
options |
"draft" |
draft, published, scheduled |
tags |
multiOptions |
[] |
|
twitter_description |
string |
"" |
|
twitter_image |
string |
"" |
|
twitter_title |
string |
"" |
|
options children:
| Parameter |
Type |
Default |
Details |
fields |
string |
"" |
|
formats |
multiOptions |
[...] |
multi: html, mobiledoc, lexical |
updateFields children:
| Parameter |
Type |
Default |
Details |
authors |
multiOptions |
[] |
|
canonical_url |
string |
"" |
|
codeinjection_foot |
string |
"" |
|
codeinjection_head |
string |
"" |
|
content |
string |
"" |
|
contentJson |
json |
"" |
|
contentJson |
json |
"" |
|
featured |
boolean |
false |
|
meta_description |
string |
"" |
|
meta_title |
string |
"" |
|
og_description |
string |
"" |
|
og_image |
string |
"" |
|
og_title |
string |
"" |
|
published_at |
dateTime |
"" |
|
slug |
string |
"" |
|
status |
options |
"draft" |
draft, published, scheduled |
tags |
multiOptions |
[] |
|
title |
string |
"" |
|
twitter_description |
string |
"" |
|
twitter_image |
string |
"" |
|
twitter_title |
string |
"" |
|
Example
NODE "ghost" @ghost AS "Ghost" {
resource: "post",
operation: "get",
title: {{ $json.title }},
postId: {{ $json.postId }},
identifier: {{ $json.identifier }}
}