飞书 icon

飞书

飞书 API 集成,支持多种飞书功能

Actions105

云文档 → 获取文档所有块

AI-generated

Summary

Retrieve all blocks from a specified Feishu document, optionally for a specific document version, with control over user ID type and result limits.

Inputs

  • 凭证类型 — Choose between user-level or application-level credentials for authentication.
  • 文档 ID (required) — The unique identifier of the Feishu document from which to retrieve all blocks.
  • Return All — Whether to return all blocks or limit to a specified number.
  • Limit — Maximum number of blocks to return when Return All is false; valid range is 1 to 500.
  • 文档版本 — The specific document version to query; -1 means the latest document version.
  • 用户 ID 类型 — Specify the type of user ID used in responses (open_id, union_id, or user_id).
  • Options — Additional options such as Timeout in milliseconds for the HTTP request.

Output shape

a list of block objects from the specified document version

The operation returns block data from the Feishu document. Pagination or batching parameters can affect how many blocks are retrieved in one execution. If batching is enabled, the operation executes multiple requests in parallel with configured batch size and interval. Errors for individual items can be returned as error objects if 'Continue On Fail' is enabled.

Links

Discussion