---
title: "List blocks"
method: GET
path: "/space/{space_id}/block"
tags: ["block"]
---

# List blocks

`GET /space/{space_id}/block`

List blocks in a space. Use type query parameter to filter by block type (page, folder, text, sop, etc.). Use parent_id query parameter to filter by parent. If both type and parent_id are empty, returns top-level pages and folders.

## Path parameters

- `space_id` string, uuid, required

## Query parameters

- `type` 'page' | 'folder' | 'text' | 'sop'
- `parent_id` string, uuid

## Response `200`

OK

- object
  - `code` integer
  - `data` ModelBlock[]
    - `created_at` string
    - `id` string
    - `is_archived` boolean
    - `parent_id` string
    - `props` object
    - `sort` integer
    - `space_id` string
    - `title` string
    - `type` string
    - `updated_at` string
  - `error` string
  - `msg` string

## Changes

- **2025-11-12** `a1c1bcb0e2ee` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/memodb-io/apis/acontext-api/changes/space/:space_id/block/get.md)

---

[API](https://skmtc.dev/memodb-io/apis/acontext-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/acontext-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/acontext-api/revisions/a1c1bcb0e2ee/schema)
