> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentpowers.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Categories

> Get all canonical categories with live skill counts.

Served from a stale-while-revalidate cache (see ``_get_categories_cached``)
so a flood of /v1/categories cannot pin the anyio threadpool on the 3-4s
aggregation and starve the liveness /health check (issue #203).



## OpenAPI

````yaml /openapi.json get /v1/categories
openapi: 3.1.0
info:
  title: AgentPowers API
  description: Paid marketplace for Claude Code skills and agents
  version: 0.1.0
servers:
  - url: https://api.agentpowers.ai
    description: Production
security: []
paths:
  /v1/categories:
    get:
      tags:
        - search
      summary: Get Categories
      description: >-
        Get all canonical categories with live skill counts.


        Served from a stale-while-revalidate cache (see
        ``_get_categories_cached``)

        so a flood of /v1/categories cannot pin the anyio threadpool on the 3-4s

        aggregation and starve the liveness /health check (issue #203).
      operationId: get_categories_v1_categories_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CategoriesResponse'
components:
  schemas:
    CategoriesResponse:
      properties:
        categories:
          items:
            $ref: '#/components/schemas/CategoryItem'
          type: array
          title: Categories
        total_count:
          type: integer
          title: Total Count
      type: object
      required:
        - categories
        - total_count
      title: CategoriesResponse
    CategoryItem:
      properties:
        category:
          type: string
          title: Category
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        icon:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon
        sample_keywords:
          type: string
          title: Sample Keywords
          default: ''
        count:
          type: integer
          title: Count
      type: object
      required:
        - category
        - count
      title: CategoryItem

````