New: We now offer a 7-day free trial for Marble Pro subscriptions.
Retrieves a single category by its identifier (slug or id).
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.marblecms.com/v1/categories/tutorials"
{ "id": "clt92hrnp000308l4ajp74b32", "name": "Tutorials", "slug": "tutorials", "description": null, "count": { "posts": 12 }, "posts": { "data": [ { "id": "clt92n38p000108l48zkj41an", "title": "Getting Started with Marble", "slug": "getting-started-with-marble", "description": "A beginner's guide to Marble CMS.", "coverImage": "https://cdn.marblecms.com/images/cover.jpg", "publishedAt": "2024-03-05T00:00:00.000Z" } ], "pagination": { "limit": 20, "currentPage": 1, "nextPage": null, "previousPage": null, "totalPages": 1, "totalItems": 12 } } }
Bearer YOUR_API_KEY
posts
include=posts
Was this page helpful?