---
title: "Get Builder block categories"
method: GET
path: "/api/builder/categories"
tags: ["v2"]
---

# Get Builder block categories

`GET /api/builder/categories`

Get all block categories with a specified number of blocks per category.

## Query parameters

- `blocks_per_category` integer

## Response `200`

Successful Response

- BlockCategoryResponse[]
  - `name` string, required
  - `total_blocks` integer, required
  - `blocks` BlockInfo[], required
    - `id` string, required
    - `name` string, required
    - `inputSchema` object, required
    - `outputSchema` object, required
    - `costs` BlockCost[], required
      - `cost_amount` integer, required
      - `cost_filter` object, required
      - `cost_type` 'run' | 'byte' | 'second' | 'items' | 'cost_usd' | 'tokens', required
      - `cost_divisor` integer
      - `token_rate` TokenRateDisplay — Public per-1M-token USD rates surfaced to the builder UI. Populated only on LLM block costs whose model has a TOKEN_COST rate. cache_* fields are set only when the provider publishes a distinct cached-token rate (Anthropic). Display-only — billing always uses the internal credit math in `BlockCost.cost_amount`.
        - `input_usd_per_1m` number, required
        - `output_usd_per_1m` number, required
        - `cache_read_usd_per_1m` number, nullable
        - `cache_creation_usd_per_1m` number, nullable
    - `description` string, required
    - `categories` object[], required
    - `contributors` object[], required
    - `staticOutput` boolean, required
    - `uiType` string, required

## Other responses

- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
