> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# 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.

```bash
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: false` keeps a draft and wins over a date. A future `publishDate` schedules natively in Wix. `isPublished: true` publishes now. Edits to a published post go live.
- **Body.** `bodyHtml` is 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. Links to a heading `id` on the same page keep working, and a table whose first row uses `<th>` keeps it as a header row.
- **URL.** `url` is the post's public address while it is published, and null for drafts or on a site you have not published yet.
- **Reading.** Lists return `bodyHtml: null`; get the article for its body. Images nested inside lists or quotes do not come back in `bodyHtml`.
- **Tags.** Matched by name, created when missing, up to 30 per post.
- **Author.** `author` is a Wix site member id. Without it, the site's default author is used.
- **Delete** is permanent; it skips the Wix trash.