Skip to main content
POST
Create a post

Authorizations

Authorization
string
header
required

Send your API key in the Authorization header as Bearer API_KEY. Account API keys work in every workspace you belong to: send X-Notra-Organization-Id with the workspace id or slug to choose one. Workspace endpoints require it when you belong to more than one workspace; GET /v1/me/workspaces works without it. Organization keys only accept their own workspace there.

Body

application/json

Slugs are normalized to lowercase letters, numbers, and hyphens and only accepted for blog posts and changelogs. Omit markdown to create an empty post you fill in later.

title
string
required
Required string length: 1 - 120
contentType
enum<string>
required
Available options:
blog_post,
changelog,
linkedin_post,
twitter_post
slug
string | null
Required string length: 1 - 160
markdown
string
Maximum string length: 100000
status
enum<string>
default:draft
Available options:
draft,
published

Response

Post created successfully

organization
object
required
post
object
required