Publishing Articles
List, create, schedule, update and delete Wix blog posts through the Blogs API, and how Wix stores their content.
Publish articles
Wix uses the same article endpoints as Shopify and WordPress, with blog id 1. Article ids are Wix GUIDs.
curl -X POST "https://zernio.com/api/v1/accounts/ACCOUNT_ID/blogs/1/articles" \
-H "Authorization: Bearer $ZERNIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Spring menu is here",
"bodyHtml": "<p>Five new dishes from our kitchen.</p>",
"handle": "spring-menu",
"excerpt": "Five new dishes.",
"tags": ["menu", "seasonal"],
"image": { "url": "https://cdn.example.com/spring.jpg", "altText": "Spring dishes" },
"seo": { "title": "Spring menu", "description": "Five new dishes from our kitchen." },
"publishDate": "2030-03-01T09:00:00Z"
}'How it behaves
- Publishing.
isPublished: falsekeeps a draft and wins over a date. A futurepublishDateschedules natively in Wix.isPublished: truepublishes now. Edits to a published post go live. - Body.
bodyHtmlis converted to Wix rich content. Each top-level HTML element must fit 30,000 characters. Images in the body and the cover image are imported into the site's Media Manager. - Reading. Lists return
bodyHtml: null; get the article for its body. Images nested inside lists or quotes do not come back inbodyHtml. - Tags. Matched by name, created when missing, up to 30 per post.
- Author.
authoris a Wix site member id. Without it, the site's default author is used. - Delete is permanent; it skips the Wix trash.
Was this page helpful?