Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Latest commit

 

History

History
53 lines (49 loc) · 1.17 KB

File metadata and controls

53 lines (49 loc) · 1.17 KB
title Get all categories from Marble API
description Retrieve all content categories from your Marble CMS workspace with pagination. Each category includes name, slug, description, and post count for taxonomy management.
```bash cURL curl "https://api.marblecms.com/v1/cm6ytuq9x0000i803v0isidst/categories" ```
fetch("https://api.marblecms.com/v1/cm6ytuq9x0000i803v0isidst/categories")
  .then((res) => res.json())
  .then((json) => console.log(json))
  .catch((err) => console.error("error:" + err));
```json Response { "categories": [ { "id": "clt92hrnp000208l43kbo28d0", "name": "Announcements", "slug": "announcements", "description": "Latest news and updates.", "count": { "posts": 5 } }, { "id": "clt92hrnp000308l4ajp74b32", "name": "Tutorials", "slug": "tutorials", "description": null, "count": { "posts": 12 } } ], "pagination": { "limit": 10, "currentPage": 1, "nextPage": null, "previousPage": null, "totalPages": 1, "totalItems": 2 } } ```