Pages, Articles & SectionsAPI
Pages, articles and sections share the same shape under a site.
| Method | Path | Does |
|---|---|---|
| GET | /sites/{id}/pages | list pages (full body + meta) |
| POST | /sites/{id}/pages | create a page |
| GET/PATCH/DELETE | /pages/{id} | read / update / soft-delete one page |
Swap pages for articles or sections — same verbs.
Page fields: slug, title, body, menu, menu_url, in_menu, sort_order, parent_id, is_published, meta_description.
Article adds excerpt, published_at. Section = slug/title/body/sort_order/is_published/meta_description (Header, Footer, Stylesheet are standard sections).
curl https://api.triocms.net/v1/sites/13/pages -H "Authorization: Bearer tk_..."