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
Name | Label | Type | Description | Required |
---|---|---|---|---|
clientId | Client Id | STRING | true | |
clientSecret | Client Secret | STRING | true |
Actions
Get Comments
Name: getComments
Gets a list of comments left on the file.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
fileKey | File Key | STRING | File 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
Name | Type | Description |
---|---|---|
id | STRING | ID of the comment. |
file_key | STRING | File key of the file the comment is on. |
parent_id | STRING | ID of comment this comment is a reply to. |
user | OBJECT 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
Name | Label | Type | Description | Required |
---|---|---|---|---|
fileKey | File Key | STRING | File to add comments in. Figma file key copy from Figma file URL. | true |
message | Comment | STRING | Comment 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
Name | Type | Description |
---|---|---|
id | STRING | ID of the comment. |
file_key | STRING | File key of the file the comment is on. |
parent_id | STRING | ID of comment this comment is a reply to. |
message | STRING | Message 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.