Get a single category by ID or slug
cURL
curl --request GET \ --url https://api.marblecms.com/v1/categories/{identifier} \ --header 'Authorization: Bearer <token>'
{ "category": { "id": "clx456def", "name": "Technology", "slug": "technology", "description": "Tech news and tutorials", "count": { "posts": 15 } } }
Your Marble API key
Category ID or slug
"technology"
The requested category
Show child attributes
Was this page helpful?