Anytype icon

Anytype

Interact with the Anytype API

Chat → Get Messages

AI-generated

Summary

Retrieve all messages from a specified chat within a given space in Anytype.

Inputs

  • spaceId (required) — The ID of the space containing the chat to retrieve messages from.
  • chatId (required) — The ID of the chat from which to get the messages.

Output shape

a list of messages

The messages are returned as an array under the 'messages' property from the API response and unwrapped for the output. There is no pagination option for this operation.

Examples

Example 1: Get all messages from a specific chat

Set the Space parameter to the space containing the chat, and the Chat parameter to the chat ID whose messages you want to retrieve.

Links

Discussion