Skip to main content
POST
/
newsletters
/
posts
Create a post
curl --request POST \
  --url https://api.pocketsflow.com/newsletters/posts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "content": "<string>",
  "excerpt": "<string>",
  "coverImage": "<string>",
  "tags": [
    "<string>"
  ],
  "status": "draft",
  "publishAt": "2023-11-07T05:31:56Z"
}
'

Authorizations

Authorization
string
header
required

Enter your Pocketsflow API key (format: pk_live_... or pk_test_...)

Body

application/json
title
string
required

Post title

content
string
required

Post content

excerpt
string

Post excerpt

coverImage
string

Cover image URL

tags
string[]

Post tags

status
enum<string>

Post status

Available options:
draft,
published
publishAt
string<date-time>

Schedule publish date

Response

201

Post created successfully