# Subcategories

Token Templates are the barebones of any token collection, when you create a collection you select a category for it and then a template, this contains a set of pre-defined parameters that any one of your tokens will need in its metadata.

### List all subcategories

When listing subcategories you have three scope options:

* **generic:** brings subcategories that are generic and are not for a specific company
* **specific:** lists only subcategories created by the company
* **all:** lists all of the above

{% openapi src="<https://api.pixway.io/docs-json>" path="/{companyId}/subcategories" method="get" %}
<https://api.pixway.io/docs-json>
{% endopenapi %}

### Create a subcategory

{% openapi src="<https://api.pixway.io/docs-json>" path="/{companyId}/subcategories" method="post" %}
<https://api.pixway.io/docs-json>
{% endopenapi %}

### Get subcategory details

{% openapi src="<https://api.pixway.io/docs-json>" path="/{companyId}/subcategories/{id}" method="get" %}
<https://api.pixway.io/docs-json>
{% endopenapi %}

### Update subcategory

{% openapi src="<https://api.pixway.io/docs-json>" path="/{companyId}/subcategories/{id}" method="patch" %}
<https://api.pixway.io/docs-json>
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://w3block.gitbook.io/w3block-eng/dev-docs/api/key-api-services/tokens/categories/subcategories.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
