Skip to main content

Summary

List top-level blocks in document order with IDs, types, text previews, and optional full text when includeText:true. Supports pagination via offset/limit and optional nodeType filtering.
  • Operation ID: blocks.list
  • API member path: editor.doc.blocks.list(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a BlocksListResult with total block count, an ordered array of block entries (ordinal, nodeId, nodeType, textPreview, optional text, isEmpty), and the current document revision.

Input fields

Example request

Output fields

Example response

Pre-apply throws

  • INVALID_INPUT

Non-applied failure codes

  • None

Raw schemas