Welcome to our new docs! Please keep in mind we are still working on making everything is as accurate as possible. Join us on discord and ask us questions if you are unsure.
DezerX Spartan Logo
Market

Get Category Details

Retrieve detailed information about a specific category by its ID, including subcategories and products

GET
/api/application/categories/{id}
AuthorizationBearer <token>

Bearer token authentication

In: header

Path Parameters

idinteger

Category ID

Query Parameters

include_products?boolean

Include products in this category (not used in current implementation)

Defaultfalse
include_subcategories?boolean

Include subcategories (not used in current implementation)

Defaulttrue

Response Body

curl -X GET "https://api.example.com/api/application/categories/0?include_products=false&include_subcategories=true"
{
  "success": true,
  "data": {
    "id": 1,
    "name": "Web Hosting",
    "description": "Professional web hosting solutions for all business sizes",
    "image": "/images/categories/web-hosting.jpg",
    "position": 1,
    "created_at": "2025-08-02T16:38:59.000000Z",
    "updated_at": "2025-08-02T16:38:59.000000Z",
    "products_count": 3
  }
}
{
  "success": false,
  "message": "Unauthenticated"
}
{
  "success": false,
  "message": "This action is unauthorized"
}
{
  "success": false,
  "message": "Resource not found"
}