Anytype icon

Anytype

Interact with the Anytype API

Chat → Get Many

AI-generated

Summary

Retrieve multiple chats from a specified space, with options to return all chats or limit the number of results.

Inputs

  • spaceId (required) — The ID of the space from which to retrieve chats.
  • returnAll — Whether to return all chat records or limit the response.
  • limit — Maximum number of chat records to return if 'Return All' is false.

Output shape

a list of chat objects wrapped individually in items.

Supports pagination when returning many chats; use 'Return All' to fetch all available chats or 'Limit' to restrict result count. The output unwraps the 'data' property from the API response and returns it as an array of individual chat items.

Examples

Example 1: Return all chats in a specified space

Set 'spaceId' to the target space, enable 'Return All'.

Example 2: Return up to 100 chats in a specified space

Set 'spaceId' to the target space, disable 'Return All', and set 'Limit' to 100.

Links

Discussion