Figma icon

Figma

Use the Figma API

Comment → Add Comment Reactions

AI-generated

Summary

Add a reaction emoji to an existing comment in a Figma file by specifying the file key and the comment ID along with the reaction details in the request body.

Inputs

  • Key (required) — The file key of the Figma file where the comment exists.
  • Comment ID (required) — The ID of the comment to which you want to add a reaction.
  • Request Body (required) — A JSON object containing properties of the reaction to add, such as the emoji shortcode.
  • Query Parameters — Optional parameters to modify the request, such as pagination or context details.

Output shape

The operation returns the API response as a JSON object representing the newly added comment reaction; on success, it includes the reaction details.

Ensure that both the file key and comment ID are provided; the request body must be a valid JSON object specifying reaction properties. Errors are returned if required inputs are missing or if the API call fails.

Discussion