Skip to main content
GET
/
v1
/
categories
/
{identifier}
Get a category
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
    }
  }
}

Authorizations

Authorization
string
header
required

Your Marble API key

Path Parameters

identifier
string
required

Category ID or slug

Example:

"technology"

Response

The requested category

category
object
required