Figma icon

Figma

Use the Figma API

Comment → Add Comment

AI-generated

Summary

Post a new comment on a Figma file specified by its key, using a JSON-formatted request body to define the comment content and details.

Inputs

  • Key (required) — The file key identifying the Figma file on which to add the comment.
  • Request Body (required) — A JSON object representing the comment to be added, including content, position, or other relevant details per the Figma API.
  • Query Parameters — Optional query parameters as a collection to customize the request.

Output shape

The operation returns the response from the Figma API after posting a comment, typically a JSON object representing the created comment or an error message.

The operation requires valid Figma OAuth2 credentials. The 'Key' input is mandatory to identify the file. The request body must be a valid JSON string representing the comment data. Optional query parameters can be included but are not required.

Discussion