Lark icon

Lark

Consume Lark API

Actions118

文档 → 获取文档块列表

AI-generated

Summary

Retrieves blocks from a Lark document by document ID. You can request a specific page of results or leave paging off to use the API’s default behavior.

Inputs

  • authentication — Choose Tenant Access Token or User Access Token authentication.
  • document_id (required) — Document ID; select a document from the list or enter its ID. The account needs read permission.
  • whether_paging — Enable to provide pagination parameters.
  • page_token — Pagination token for a subsequent page; leave blank for the first request.
  • page_size — Number of blocks to request per page; defaults to 20 when paging is enabled.
  • options.user_id_type — User ID format to request: Open ID (default), Union ID, or User ID.
  • options.document_revision_id — Document revision to read; defaults to -1, meaning the latest version.

Output shape

A list of block records in the standard Lark API response, returned as n8n items.

When paging is enabled, the API response can include a page token for fetching another page. The source does not show automatic pagination for this operation.

Links

Discussion