Use the Content Management API to create categories, draft posts, and publish content in under 5 minutes.
The Content Management Service (CMS) is a full CRUD API for creating and managing content. It is strictly a server-side API — never call it from a browser or expose its credentials publicly.
This quickstart covers creating and publishing content. To fetch content for your frontend, see the Fetch Content (CDS) quickstart.
The CMS API key has write access. Store it only in server-side environment variables — never in client-side code, public repositories, or build artifacts.
Create a post in Draft status. Drafts are not publicly visible via the CDS:
curl -X POST \ "https://cms.thepublive.com/publisher/${PUBLIVE_PUBLISHER_ID}/post/" \ -H "Authorization: Basic ${PUBLIVE_AUTH}" \ -H "Content-Type: application/json" \ -d '{ "title": "My First API Post", "english_title": "My First API Post", "type": "Article", "status": "Draft", "primary_category": 42, "content": "<p>This post was created via the Publive CMS API.</p>" }'
Response:
{ "id": 9001, "title": "My First API Post", "slug": "my-first-api-post", "type": "Article", "status": "Draft", "primary_category": { "id": 42, "name": "Technology", "slug": "technology" }, "created_at": "2026-04-15T10:00:00Z", "updated_at": "2026-04-15T10:00:00Z"}
If your organisation uses an approval workflow, submit for review first by setting status to Approval Pending. An approver then publishes the post. See Approval Flows for details.