Skip to main content

Categories

Get Directory Categories

Retrieve all active categories for a specific directory.
GET /api/directories/{directory_id}/categories
Parameters:
  • directory_id (integer, required): The ID of the directory
Response:
{
  "data": [
    {
      "id": 1,
      "title": "Web Development",
      "parent_title": null
    },
    {
      "id": 2,
      "title": "Frontend",
      "parent_title": "Web Development"
    },
    {
      "id": 3,
      "title": "Backend",
      "parent_title": "Web Development"
    }
  ]
}