Anytype icon

Anytype

Interact with the Anytype API

Chat → Search Messages

AI-generated

Summary

Searches messages in the selected Anytype chat using the required text query. Returns matching messages, with optional pagination controls for returning all results or limiting the result count.

Inputs

  • Space (required) — Space containing the chat; select a space or provide its ID.
  • Chat (required) — Chat to search; select a chat within the chosen space or provide its ID.
  • Query (required) — Text to search within chat messages; sent as the query URL parameter.
  • Return All — When enabled, fetches all matching results using offset pagination. Defaults to false.
  • Limit — Maximum results when Return All is disabled. Defaults to 50; accepts 1–1000.

Output shape

A list of message items

The response's data array is unwrapped into individual n8n items. Pagination uses offset requests with a page size of 100; when Return All is disabled, the configured Limit caps results.

Links

Discussion