Developers
Articles & CMS API
Create local articles and deliver them through a verified CMS integration.
On this page
Access and safe retriesCreate a local draftArticle routesConfigure the destinationCustom CMS receiving contractInterpret article resultsVisuals and social promotionAccess and safe retries
Use a workspace-scoped Public API Bearer key. Reads use current membership; mutations require editor (member) or higher and website_articles. CMS configuration also requires the relevant website module. MCP scopes do not apply to these REST routes.
Create supports Idempotency-Key: 201 for new, 200 for an identical replay, 422 idempotency_key_conflict for different input. The key remains reserved with the article. Updates, deletion and delivery do not share that create contract. Inspect state before repeating them.
Handle 401/403 for access, 404 for workspace-owned resources, 400/422 for input or CMS configuration, 429 for limits and the returned article’s delivery state even when HTTP is 200.
Create a local draft
POST /api/website-articles
Authorization: Bearer smm_REPLACE_ME
Content-Type: application/json
Idempotency-Key: a97087d8-446a-4ad3-adf7-bd70c23f9b91
{
"site_id": 12,
"title": "A thoughtful publishing workflow",
"slug": "thoughtful-publishing",
"excerpt": "A practical introduction.",
"content_html": "<h2>Start with a draft</h2><p>Review before delivery.</p>",
"featured_image_asset_id": 456,
"featured_image_alt": "An editorial workspace"
}The access, idempotency and error rules above apply. Replace the site and image IDs with your own. Title is required (maximum 180 characters); HTML is limited to 200,000 characters and is sanitized. Images must be ready and belong to the workspace.
Article routes
| Method & path | Behavior |
|---|---|
GET /api/website-articles | Paginated {items,total}; filter by site_id, status, q, limit (1–200), offset. |
GET /api/website-articles/{id} | Read content, links, review and delivery fields. |
PUT /api/website-articles/{id} | Update a local article. Relevant edits invalidate delivery consent. |
DELETE /api/website-articles/{id} | Archive locally (204); does not remove the CMS entry. |
POST /api/website-articles/{id}/publish | Request remote_status: draft, publish, or future with scheduled_at. |
POST /api/website-articles/{id}/schedule | Set future scheduled_at and delivery_mode: cms or editorial_only. |
Configure the destination
Prefer the website setup screen for entering secrets. Integration routes include GET/POST /api/website-analytics/sites, PUT/DELETE /api/website-analytics/sites/{site_id}, PUT /api/website-analytics/sites/{site_id}/cms and POST /api/website-analytics/sites/{site_id}/cms/test. They use Bearer authentication, workspace role/module checks and no shared create-publication idempotency.
CMS configuration fields are cms_type (none, wordpress, custom), cms_endpoint_url, optional article_url_template, cms_username, cms_secret and clear_secret. The saved secret is not returned. Test reports ok, status, message and checked_at. Handle the access, input and resource errors above.
Custom CMS receiving contract
Mumro tests the configured public HTTPS endpoint with an authenticated GET; 200, 201, 204 or 405 is accepted as a connection test. Actual delivery is an authenticated POST. Use a separate high-entropy shared token, not your Mumro API key.
POST https://example.com/api/mumro/articles
Authorization: Bearer SHARED_CMS_SECRET
Content-Type: application/json
X-Mumro-Article-Id: 123
X-Mumro-Site-Id: 12
{
"article": {
"id": 123,
"external_id": null,
"title": "Article title",
"slug": "article-title",
"excerpt": "Short introduction",
"content_html": "<p>Reviewed content.</p>",
"featured_image": null,
"status": "publish",
"scheduled_at": null,
"metadata": {}
},
"site": {
"id": 12,
"name": "Example website",
"site_url": "https://example.com",
"domain": "example.com"
}
}This is an outbound delivery contract, not a command to run against Mumro. The receiver verifies its Bearer token in constant time, validates and safely renders HTML, limits request size, and upserts by external_id or the stable pair site.id + article.id. Those identifiers provide receiver-side duplicate protection; delivery must not assume an Idempotency-Key header.
When present, featured_image contains asset_id, asset_uuid, url, alt and caption. Metadata can contain source information or a visual bundle; it is not a trusted HTML bypass.
{
"external_id": "post-456",
"external_url": "https://example.com/blog/article-title",
"status": "published"
}Return a successful response only after storing the article safely. Use 401/403 for authentication, 4xx for invalid input and 5xx for service errors. A lost response can leave Mumro’s outcome uncertain even if your write succeeded.
Interpret article results
Inspect status, cms_delivery_state, last_publish_error, external_id, external_url, public_url_status and media review fields. HTTP 200 can accompany an article with status: "failed". public_url_status is predicted, confirmed or unavailable.
For blocked or uncertain delivery, use the signed-in human review flow. Do not manufacture consent or clear failure records to force another send.
Visuals and social promotion
Optional routes /visuals, /reel and /social-post operate on an article. They require the relevant modules and can consume usage. Their requests have their own idempotency handling; inspect the current OpenAPI request schema and output rather than treating them as article delivery retries.