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

# Get Builder blocks

`GET /api/builder/blocks`

Get blocks based on either category, type, or provider.

## Query parameters

- `category` string, nullable
- `type` 'all' | 'input' | 'action' | 'output', nullable
- `provider` string, nullable — Provider name for integrations. Can be any string value, including custom provider names.
- `page` integer
- `page_size` integer

## Response `200`

Successful Response

- BlockResponse
  - `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
  - `pagination` Pagination, required
    - `total_items` integer, required — Total number of items.
    - `total_pages` integer, required — Total number of pages.
    - `current_page` integer, required — Current_page page number.
    - `page_size` integer, required — Number of items per page.

## Other responses

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

## Changes

- **2026-05-12** `51f26b4cf214` — 1 info
  - added the optional property `blocks/items/costs/items/token_rate` to the response with the `200` status
- **2026-04-30** `8c84efcb3afb` — 1 warning
  - removed the optional property `blocks/items/costs/items/token_rate` from the response with the `200` status

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/builder/blocks/get.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/revisions/5dc375899754/schema)
