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

# List blocks

> Retrieve all blocks from a sheet.

Returns a list of blocks detected on a sheet.


## OpenAPI

````yaml GET /blocks
openapi: 3.1.0
info:
  title: Bedrock API
  version: 1.0.0
  description: >-
    REST API for construction document management and computer vision
    intelligence.
  contact:
    name: Bedrock Support
    url: https://bedrock.cv
    email: support@bedrock.cv
servers:
  - url: https://api.bedrock.cv
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /blocks:
    get:
      tags:
        - CMS
      summary: List blocks
      description: Return blocks, optionally filtered by sheet.
      operationId: listBlocks
      parameters:
        - $ref: '#/components/parameters/ApiVersionHeader'
        - $ref: '#/components/parameters/CursorParam'
        - $ref: '#/components/parameters/LimitParam'
        - name: sheet_id
          in: query
          required: false
          schema:
            type: string
          description: Filter by sheet
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/BlockSummary'
                  _meta:
                    type: object
                    properties:
                      next:
                        type: string
                        nullable: true
                      prev:
                        type: string
                        nullable: true
                      limit:
                        type: integer
              example:
                data:
                  - id: blk_01JABCD123
                    sheet_id: sht_01JABCD123
                    type: PLAN
                    uri: >-
                      gs://bedrock-files/projects/prj_01JABCD123/blocks/blk_01JABCD123.png
                    bounds:
                      x: 120
                      'y': 80
                      width: 2400
                      height: 1800
                    ocr: null
                    description: First floor architectural plan
                    created_at: '2024-06-16T14:10:00Z'
                _meta:
                  next: >-
                    eyJpZCI6ImN1cnNvcl8xMjM0NTYiLCJjcmVhdGVkX2F0IjoiMjAyNC0wNi0xNVQxMDozMDowMFoifQ==
                  prev: null
                  limit: 1
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    ApiVersionHeader:
      name: X-API-Version
      in: header
      required: false
      schema:
        type: string
        default: '2026-01-01'
      description: API version
    CursorParam:
      name: cursor
      in: query
      required: false
      schema:
        type: string
      description: Pagination cursor
    LimitParam:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        default: 20
        minimum: 1
        maximum: 100
      description: Number of items per page
  schemas:
    BlockSummary:
      type: object
      properties:
        id:
          type: string
        sheet_id:
          type: string
        type:
          type: object
        uri:
          type: string
          nullable: true
        bounds:
          type: object
          properties:
            x:
              type: number
            'y':
              type: number
            width:
              type: number
            height:
              type: number
          required:
            - x
            - 'y'
            - width
            - height
          nullable: true
        ocr:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        hash:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
      required:
        - id
        - sheet_id
        - type
        - uri
        - bounds
        - ocr
        - description
        - hash
        - created_at
      example:
        id: blk_01JABCD123
        sheet_id: sht_01JABCD123
        type: PLAN
        uri: gs://bedrock-files/projects/prj_01JABCD123/blocks/blk_01JABCD123.png
        bounds:
          x: 120
          'y': 80
          width: 2400
          height: 1800
        ocr: null
        description: First floor architectural plan
        created_at: '2024-06-16T14:10:00Z'
    ApiError:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          type: string
        request_id:
          type: string
        instance:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      required:
        - type
        - title
        - status
        - detail
      example:
        type: https://docs.bedrock.cv/errors/bad-request
        title: Bad Request
        status: 400
        detail: One or more request fields are invalid.
        instance: /projects
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            type: https://docs.bedrock.cv/errors/authentication
            title: Unauthorized
            status: 401
            detail: Invalid or missing API key.
            code: UNAUTHORIZED
            request_id: req_01JABCD123
    RateLimited:
      description: Rate limited
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            type: https://docs.bedrock.cv/errors/rate-limit
            title: Rate limited
            status: 429
            detail: Rate limit exceeded. Try again in 60 seconds.
            code: RATE_LIMITED
            request_id: req_01JABCD123
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key prefixed with `sk_`. Example: `Authorization: Bearer sk_xxx`'
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````