> For the complete documentation index, see [llms.txt](https://docs.tebex.io/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tebex.io/developers/headless-api/guides/categories/get-category-include-packages.md). Agents can also search and read this documentation through its [MCP server](https://docs.tebex.io/developers/~gitbook/mcp).

# Get Category Include Packages

To include all packages with a specific category, add `?includePackages=1` to your request:

## Get a category with all packages

> Gets information about a category and returns the packages in that category.

```json
{"openapi":"3.1.0","info":{"title":"Tebex Headless API","version":"2.1.0"},"tags":[{"description":"Main API scoped to public token","name":"Headless"}],"servers":[{"description":"Main API scoped to public token","url":"https://headless.tebex.io/api/accounts/{token}","variables":{"token":{"default":"YOUR_PUBLIC_TOKEN","description":"The store's public token"}}}],"paths":{"/categories/{categoryId}?includePackages=1":{"get":{"description":"Gets information about a category and returns the packages in that category.","operationId":"getCategoryIncludePackages","parameters":[{"description":"The ID or slug of the category to fetch.","explode":false,"in":"path","name":"categoryId","required":true,"schema":{"type":"string"},"style":"simple"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleCategoryResponse"}}},"description":"Successful response returns the category with package information."}},"summary":"Get a category with all packages","tags":["Headless"]}}},"components":{"schemas":{"SingleCategoryResponse":{"properties":{"data":{"$ref":"#/components/schemas/Category"}}},"Category":{"properties":{"id":{"type":"integer"},"name":{"description":"User-friendly name of the category","type":"string"},"slug":{"description":"Short identifier slug for the category","type":"string","nullable":true},"parent":{"description":"Parent category, if applicable","format":"Category","type":"object","nullable":true},"tiered":{"description":"True if this is a tiered category","type":"boolean"},"active_tier":{"$ref":"#/components/schemas/Tier"},"description":{"description":"HTML description of the category","type":"string"},"packages":{"description":"Packages within the category. For dynamic categories, packages use the `DynamicPackage` shape and are only populated when a `basketIdent` is provided.","items":{"$ref":"#/components/schemas/Package"},"type":"array","nullable":true},"order":{"description":"The numeric order in which to display the category.","type":"integer"},"display_type":{"description":"How the category should be displayed","enum":["list","grid"],"type":"string"},"image_url":{"description":"URL of the category image, if set.","format":"uri","type":"string","nullable":true},"dynamic":{"description":"True if this is a dynamic category. Dynamic categories are populated with custom packages per-basket using the Add Dynamic Packages endpoint, and their packages can only be fetched by providing a `basketIdent`.","type":"boolean"}}},"Tier":{"properties":{"id":{"type":"integer"},"created_at":{"description":"The date and time when the tier became active","format":"date-time","type":"string"},"username_id":{"description":"The user's username ID. For Steam, this is a numeric representation of their Steam64ID","type":"string"},"package":{"$ref":"#/components/schemas/Package"},"active":{"description":"True if the tier is currently active.","type":"boolean"},"recurring_payment_reference":{"description":"The ID of the recurring payment this tier is attached to.","type":"string"},"next_payment_date":{"description":"The date and time of the next payment for this tier.","format":"date-time","type":"string"},"status":{"$ref":"#/components/schemas/Tier_status"},"pending_downgrade_package":{"$ref":"#/components/schemas/Tier_pending_downgrade_package"}}},"Package":{"properties":{"id":{"description":"The package's numeric ID. For external packages this is synthetic; use `ident` instead.","type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"image":{"type":"string","nullable":true},"type":{"type":"string"},"category":{"$ref":"#/components/schemas/Package_category"},"base_price":{"format":"float","type":"number"},"sales_tax":{"format":"float","type":"number"},"total_price":{"format":"float","type":"number"},"currency":{"type":"string"},"prorate_price":{"description":"If this package is part of a tiered category, this is the difference on upgrade pricing from the current active tier.","format":"float","type":"number","nullable":true},"discount":{"format":"float","type":"number"},"disable_quantity":{"type":"boolean"},"disable_gifting":{"type":"boolean"},"expiration_date":{"format":"date-time","type":"string","nullable":true},"media":{"items":{"$ref":"#/components/schemas/PackageMedia"},"type":"array"},"order":{"type":"integer"},"slug":{"type":"string"},"user_limit":{"type":"integer"},"creator_meta_data":{"type":"object"},"options":{"items":{"description":"TODO default missing array inner type to string","type":"string"},"type":"array"},"variables":{"items":{"description":"TODO default missing array inner type to string","type":"string"},"type":"array"},"created_at":{"format":"date-time","type":"string"},"updated_at":{"format":"date-time","type":"string"},"ident":{"description":"The package's string identifier, returned on every package (standard, dynamic and external). Treat it as an opaque string: store it and send it back as-is to `getPackage` and `addBasketPackage`; don't build or parse it.\n\nIt has the form `{prefix}_{categoryId}_{id}`, where `prefix` is `pkg` (standard), `dyn` (dynamic, numeric id) or `ext` (external, e.g. `ext_10_{asset-uuid}` for INTRACT, with the provider's identifier URL-encoded).","type":"string"},"vip_status":{"description":"The package's VIP status. Only `null` has been observed so far, so the non-null type is unconfirmed.","type":"string","nullable":true}}},"Package_category":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"PackageMedia":{"properties":{"type":{"enum":["video","image"],"type":"string"},"name":{"description":"A file name for the media, if applicable.","type":"string","nullable":true},"url":{"description":"The URL of the package media.","type":"string"},"featured":{"description":"True if this media should be featured more prominently than others.","type":"boolean"},"primary":{"description":"True if this is the primary media for the package.","type":"boolean"}}},"Tier_status":{"properties":{"id":{"type":"integer"},"description":{"type":"string"}}},"Tier_pending_downgrade_package":{"description":"The package this tier is downgrading to if a downgrade is pending.","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"nullable":true}}}}
```
