List all categories

GET https://api.tamio.com/v2/categories/list

Returns a paginated list of categories. Supports filtering by name, product, site, or specific category UUID. Can also return only root categories or exclude descendant categories from results.

Query Parameters

page integer

Page number for pagination (1-based).

per_page integer

Number of categories to return per page.

order string

Sort order for the results.

ascdesc
filter string

Search filter to match category names or descriptions.

category_id string

Filter by specific category UUID.

product_id string

Filter categories that contain this specific product.

site_id string

Filter categories by site/domain.

roots boolean

If true, return only root categories (no parent).

exclude_descendants boolean

If true, exclude descendant categories from results.

Responses

200 Categories retrieved successfully

Categories retrieved successfully

status integer
total_results integer

Total number of categories matching the query.

categories array of Category
400 Validation or business logic error. Returned when:
401 Unauthorized – invalid or missing Bearer token
/categories/list
1const response = await fetch("https://api.tamio.com/v2/categories/list", {
2 headers: {
3 "Authorization": "Bearer YOUR_API_KEY",
4 "Accept": "application/json"
5 }
6});
7const data = await response.json();
Responses
{
  "status": 200,
  "total_results": 42,
  "categories": []
}