> ## Documentation Index
> Fetch the complete documentation index at: https://developers-docs.easyorders.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Articles

> Read and write the articles of the store's blog, with their tags and categories.

Scopes: `read_content` to read, `write_content` to change (it includes `read_content`). The same scopes cover [pages](https://developers-docs.easyorders.ai/api-reference/pages/overview.md) and [article categories](https://developers-docs.easyorders.ai/api-reference/article-categories/overview.md).

## The article

```json theme={"dark"}
{
  "id": "8d2f4a6c-1b3e-4c5d-9e7f-0a1b2c3d4e50",
  "title": "How to choose a winter jacket",
  "slug": "how-to-choose-a-winter-jacket",
  "description": "Five things to check before you buy a jacket for the cold months.",
  "content": "<h2>1. Insulation</h2><p>Down keeps you warmest for its weight.</p>",
  "meta_description": "A short guide to choosing a warm, waterproof winter jacket.",
  "thumbnail": "https://cdn.example.com/blog/winter-jacket.jpg",
  "tags": ["winter", "guides"],
  "published": true,
  "is_need_review": false,
  "category_ids": ["4a7c9e1b-2d3f-4b5a-8c6d-7e8f9a0b1c20"],
  "created_at": "2026-11-28T08:00:00Z",
  "updated_at": "2026-11-28T08:00:00Z"
}
```

| Field | |
| - | - |
| `title` | 1 to 255 characters, one line, no `<`. Required on create. |
| `slug` | See [Slugs](#slugs). |
| `description` | **Plain text**, 1 to 1,000 characters: the excerpt on the article's card. Line breaks are kept; `<` is refused. Required on create. |
| `content` | HTML, up to 51,200 bytes. Required on create, and not empty once cleaned. See [HTML content](#html-content). |
| `meta_description` | **Plain text** for search engines, one line, up to 1,000 characters, no `<`. Optional. |
| `thumbnail` | An `https` image URL, up to 2,048 characters. `""` removes it. |
| `tags` | Up to 20, each 1 to 50 characters, one line, no `<`, no repeats. |
| `published` | Whether the article is on the blog. `false` by default. |
| `is_need_review` | Read only. See [AI content check](#ai-content-check). |
| `category_ids` | Up to 20 [article categories](https://developers-docs.easyorders.ai/api-reference/article-categories/overview.md) of the store, no repeats. |

Empty values read as `""` and `[]`, never `null`. [List articles](https://developers-docs.easyorders.ai/api-reference/articles/list-articles.md) leaves out `content`, the largest field; [Get an article](https://developers-docs.easyorders.ai/api-reference/articles/get-an-article.md) has it.

## Categories

`category_ids` is **always** in the answer, in ID order. Add `join=categories` to a list or a read and each article also has `categories`, with each category's `id`, `name` and `slug`:

```json theme={"dark"}
"category_ids": ["4a7c9e1b-2d3f-4b5a-8c6d-7e8f9a0b1c20"],
"categories": [
  { "id": "4a7c9e1b-2d3f-4b5a-8c6d-7e8f9a0b1c20", "name": "Buying guides", "slug": "buying-guides" }
]
```

This is not how products work: there, `category_ids` itself is only in the answer with `join=categories`.

* Sending `category_ids` replaces the article's whole list; `[]` empties it. Leave it out to keep the list.
* An ID that is not an article category of the store answers `422` with the rule `article_category` on `category_ids`, and nothing changes.
* `filter=category_id||$eq||<id>` (or `$in`) lists the articles of a category.
* Deleting a category leaves its articles: it only leaves their `category_ids`.

`tags` work the same way: sending them replaces the whole list.

## HTML content

`content` is cleaned before it is saved, and the answer holds the cleaned HTML, which may differ from what you sent. Read it from the answer rather than keeping your own copy. Content that cleaning leaves empty is refused (`422`, rule `required`).

* The limit is **51,200 bytes, counted as you send it**, before cleaning, so you can check it beforehand (`422`, rule `max`). A whole body over 64 KiB answers `413 body_too_large`.
* Kept: text formatting, headings, lists, tables, quotes and code blocks; links to `https`, `mailto:`, `tel:` and `sms:`; `https` images; YouTube and Vimeo player iframes; the `dir` attribute; and the classes the merchant's dashboard editor writes (alignment, direction, indent, size, font).
* Removed: `script` and `style` with their content; every other element and attribute, keeping its text (forms, other iframes, `on*` handlers, `style` attributes, other classes); relative URLs, `data:` images and other URL schemes.
* Links get `nofollow` and `noreferrer` in their `rel`, and links to full URLs open in a new tab.

The content must be valid UTF-8 without NUL characters (`422`, rule `text`).

`description` and `meta_description` are not HTML: send plain text. A `<` in them is refused (rule `text`), not cleaned.

## Slugs

The slug is the article's name in its blog URL: letters `a-z` and `A-Z`, digits and dashes, up to 255 characters.

* Create an article without `slug` and one is made from the title: its English letters and digits, in lower case, with dashes between words. A title with none of them, an Arabic one for example, gets `article`. When the slug is taken, a random suffix is added (`article-3fa9c1`).
* A `slug` you send must not be another article's: `409 slug_taken`.
* Changing the title later does not change the slug. Send `slug` to change it.

## AI content check

The article's text (title, description, meta description, tags and content) goes through the AI content check the merchant's dashboard uses, on create and on every update that changes it. When the check flags it, the article is still saved as sent, published or not, with `is_need_review: true`, for a human review.

* `is_need_review` is read only. A later update whose check passes does not set it back to `false`.
* A check that fails or takes over 15 seconds counts as flagged.
* Each store allows 20 checks a minute, and each app 200 a minute across its stores, shared with products and pages. Over that, the text is flagged without a check.

Find the flagged articles with `filter=is_need_review||$eq||true`.

## Deleting

[Delete an article](https://developers-docs.easyorders.ai/api-reference/articles/delete-an-article.md) deletes it for good, as the merchant's dashboard does; its categories stay. To take an article off the blog and keep it, set `published: false`.

## Changes show at once

The blog shows a change right away.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.