# Categories

Categories are essential to create your own Token. A token can be anything you want: a piece of art, a ticket for a show a certificate for your antiquity... Categories are here to separate token templates so it is easier to find them all, all templates created fall under a category.\
\
Our API already has a set of generic categories for you but if you want a new category can be created for an specific company.

### List Generic Categories

List all generic Categories

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

### Create a Category for your Company

If you want a category that is not listed on the generics you can create your own category for your Company

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

### List Categories by Company

List all Company Categories, this includes all categories you created plus all generic categories with a template that you created.

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

### Update a Company Category

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

### Get Category info

{% openapi src="<https://api.pixway.io/docs-json>" path="/categories/{id}" method="get" %}
<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.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.
