---
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

---

[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)
