Skip to main content
GET
/
space
/
{space_id}
/
block
Python
from acontext import AcontextClient

client = AcontextClient(api_key='sk_project_token')

# List blocks
blocks = client.blocks.list(
    space_id='space-uuid',
    parent_id='parent-uuid',
    block_type='page'
)
for block in blocks:
    print(f"{block.id}: {block.title}")
{
  "code": 123,
  "error": "<string>",
  "msg": "<string>",
  "data": [
    {
      "created_at": "<string>",
      "id": "<string>",
      "is_archived": true,
      "parent_id": "<string>",
      "props": {},
      "sort": 123,
      "space_id": "<string>",
      "title": "<string>",
      "type": "<string>",
      "updated_at": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Project Bearer token (e.g., "Bearer sk-ac-xxxx")

Path Parameters

space_id
string<uuid>
required

Space ID

Query Parameters

type
enum<string>

Block type

Available options:
page,
folder,
text,
sop
parent_id
string<uuid>

Parent ID

Response

200 - application/json

OK

code
integer
error
string
msg
string
data
object[]