← Home
GET/hyax-api/v1/post-categories

List post categories

`urlSlug` is the category's own URL segment, when it has one: posts in that category live at `/{urlSlug}/{postSlug}` instead of under your site's usual post prefix.

Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.

Request

curl -X GET 'https://platform.hyax.com/hyax-api/v1/post-categories' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Response

{
  "success": true,
  "data": [
    {
      "id": "clx…",
      "name": "Gaming",
      "description": null,
      "slug": "gaming",
      "urlSlug": "gaming",
      "createdAt": "2025-01-15T12:00:00.000Z",
      "updatedAt": "2025-01-15T12:00:00.000Z"
    }
  ]
}