Create post
Create a new post. Requires a private API key. Category is required. If authors are not provided, the first workspace author is used.
POST
Create post
Documentation Index
Fetch the complete documentation index at: https://docs.marblecms.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Your Marble API key
Body
application/json
Minimum string length:
1Example:
"Getting Started with Next.js"
Minimum string length:
1Example:
"<p>Hello world</p>"
Minimum string length:
1Example:
"A beginner's guide to Next.js"
Minimum string length:
1Example:
"getting-started-with-nextjs"
Minimum string length:
1Example:
"cryitfjp2345kl05weoybfk9"
Available options:
published, draft Example:
"draft"
Array of tag IDs to attach to the post
Example:
["cryitfjp4567no07ygqadhm1"]Array of author IDs. If omitted, the first workspace author is used.
Example:
["cryitfjp3456lm06xfpzcgl0"]Example:
false
Example:
"https://media.marblecms.com/cover.jpg"
ISO 8601 datetime. Defaults to current time if omitted.
Example:
"2024-01-15T10:00:00Z"
Response
Post created successfully
Previous
Update postUpdate an existing post by ID or slug. All fields are optional — only provided fields are updated. Requires a private API key.
Next
Create post