ByteChef LogoByteChef
Components

Figma

Figma is a cloud-based design and prototyping tool that enables teams to collaborate in real-time on user interface and user experience projects.

Categories: Productivity and Collaboration

Type: figma/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue

Actions

Get Comments

Name: getComments

Gets a list of comments left on the file.

Properties

NameLabelTypeDescriptionRequired
fileKeyFile KeySTRINGFile to get comments from. Figma file key copy from Figma file URL.true

Example JSON Structure

{
  "label" : "Get Comments",
  "name" : "getComments",
  "parameters" : {
    "fileKey" : ""
  },
  "type" : "figma/v1/getComments"
}

Output

Type: ARRAY

Items Type: OBJECT

Properties

NameTypeDescription
idSTRINGID of the comment.
file_keySTRINGFile key of the file the comment is on.
parent_idSTRINGID of comment this comment is a reply to.
userOBJECT
Properties {STRING(id), STRING(handle), STRING(img_url), STRING(email)}
User who posted the comment.

Output Example

[ {
  "id" : "",
  "file_key" : "",
  "parent_id" : "",
  "user" : {
    "id" : "",
    "handle" : "",
    "img_url" : "",
    "email" : ""
  }
} ]

Post Comment

Name: postComment

Posts a new comment on the file.

Properties

NameLabelTypeDescriptionRequired
fileKeyFile KeySTRINGFile to add comments in. Figma file key copy from Figma file URL.true
messageCommentSTRINGComment to post on the file.true

Example JSON Structure

{
  "label" : "Post Comment",
  "name" : "postComment",
  "parameters" : {
    "fileKey" : "",
    "message" : ""
  },
  "type" : "figma/v1/postComment"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGID of the comment.
file_keySTRINGFile key of the file the comment is on.
parent_idSTRINGID of comment this comment is a reply to.
messageSTRINGMessage of the comment.

Output Example

{
  "id" : "",
  "file_key" : "",
  "parent_id" : "",
  "message" : ""
}

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.