Retrieving a List of Categories

Maxim

Maxim

Last updated on Oct 8, 2026

Returns the categories of materials, products or resources in the order they appear in Controlata.

v1/categories/get_list.php

Parameters

Field Type Required Description
type string Yes Whose categories: "materials", "products" or "resources"

Example request

{
    "type": "materials"
}

Example response

{
    "success": true,
    "categories": [
        {
            "id": 12,
            "name": "Wood"
        },
        {
            "id": 13,
            "name": "Hardware"
        }
    ]
}

Errors

Error Reason
No type in input type is missing
Invalid type value. Must be one of: materials, products, resources Invalid type