Anytype icon

Anytype

Interact with the Anytype API

Chat → Toggle Reaction

AI-generated

Summary

Toggle a reaction emoji on a specific chat message within a specified space and chat in Anytype.

Inputs

  • Space (required) — ID of the space containing the chat where the message is located.
  • Chat (required) — ID of the chat containing the message to toggle the reaction on.
  • Message ID (required) — ID of the message to toggle the reaction emoji.
  • Body Mode (required) — Choose between 'Simple' mode to specify an emoji directly or 'JSON' mode to provide the raw JSON body for the request.
  • Emoji (required) — Emoji character to toggle as reaction on the message (used in Simple mode). Defaults to 👍.
  • Body (JSON) (required) — Raw JSON body to send in the request when using JSON mode, e.g. {"emoji":"👍"}.

Output shape

a single record

The operation returns the result from the API call, typically the updated message or reaction state. The returned data is unwrapped from the 'message' field. Simplify option is not specified for this operation.

Examples

Example 1: Toggle reaction with Simple mode

Provide spaceId, chatId, messageId and emoji (e.g. 👍) to toggle that reaction on the message.

Links

Discussion