Figma

App · Images & Design · 15 actions

Collaborative interface design. Read a Figma file's structure, details and version history, browse a team's folders and files, list published components and styles, export frames as images, list and post comments for design review, clean up comments, and start workflows on new comments, all with a personal access token.

Actions

ActionWhat it does
Delete commentDelete a comment from a Figma file by its comment id.
Export as imageTurn frames or layers of a Figma file into PNG, JPG, SVG or PDF images, and get a download link for each.
Get fileGet a Figma file's metadata and document tree by its file key.
Get file detailsGet a Figma file's name, folder, who made it, who changed it last and when, its thumbnail and link, without reading its layers.
Get userGet the Figma user that the connected access token belongs to, including their id, display handle, email, and avatar URL.
List commentsList the comments on a Figma file, including each comment's text, author, creation time, whether it has been resolved, and where it is pinned on the canvas.
List file versionsList a Figma file's version history, newest first: when each version was saved, by whom, and the name and notes given to it.
List files in a folderList the Figma files in a folder (once called a project), with each file's key, link and when it last changed.
List published componentsList the components a Figma file has published to its team library, such as buttons and icons, with where each sits in the file.
List published stylesList the colors, text styles, effects and grids a Figma file has published to its team library.
List reactions on a commentList the emoji reactions on a Figma comment and who left each, for example to see who gave a design a thumbs up.
List team foldersList the folders (once called projects) in one of your Figma teams.
Post commentPost a comment on a Figma file, or reply to an existing comment.
React to a commentAdd an emoji reaction to a comment on a Figma file, such as a thumbs up or a check mark, to show it has been seen or dealt with without posting a reply.
Remove a reactionTake back a reaction you added to a comment on a Figma file.

Delete comment

Delete a comment from a Figma file by its comment id. Only the comment's author (or a file admin) can delete it. Deleting a top-level comment also removes its replies. Useful for cleaning up automated or resolved comments.

Inputs

File keyfile_keytextRequired
The Figma file the comment is on. A file key or a full Figma file URL both work.
Comment IDcomment_idtextRequired
The id of the comment to delete (from 'List Figma comments' or the response of 'Post Figma comment').

Outputs

Confirms the comment was deleted.

statustext
Always 'success' when the delete succeeded.
Example output
{
  "status": "success"
}

Export as image

Turn frames or layers of a Figma file into PNG, JPG, SVG or PDF images, and get a download link for each. The links last 30 days. Useful for sending the latest design to a channel, a document or a review.

Inputs

Filefile_keytextRequired
The Figma file the frames are in. A file key or a full Figma file URL both work.
Frames or layersnode_idstextRequired
Which frames or layers to export, by their node ids, separated by commas (e.g. '1:2,1:8'). In Figma, select a frame and copy its link: the id is the node-id in the link, with the dash written as a colon.
Formatimage_formattext
The kind of image to make. Defaults to PNG.One of: png, jpg, svg, pdf.
Scalescalenumber
How large to make the image, from 0.01 to 4 times its size in Figma. Defaults to 1. Ignored for SVG.From 0.01 to 4.

Outputs

formattext
png, jpg, svg or pdf.
imageslist
One image per frame or layer, in order.
Example output
{
  "format": "png",
  "images": [
    {
      "node_id": "1:2",
      "url": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/example.png"
    }
  ]
}

Get file

Get a Figma file's metadata and document tree by its file key. Returns the file name, the editor type (design, whiteboard, or slides), the last-modified timestamp, the current version id, a thumbnail URL, and the node tree (pages and their layers). Large files can return a lot of data, so use 'depth' to fetch only the top levels of the tree. Useful for reading a file's structure, checking when it last changed, or grabbing its thumbnail.

Inputs

File keyfile_keytextRequired
The Figma file to read. Paste either the file key (the slug in a file URL) or a full Figma file URL such as https://www.figma.com/design/AbC123/My-File; the key is extracted automatically.
Depthdepthnumber
How many levels of the document tree to return. 1 returns just the pages, 2 also returns each page's top-level layers, and so on. Leave blank to return the entire tree (which can be very large).At least 1.
Versionversiontext
A specific version id to fetch (from the file's version history). Leave blank for the current version.
Geometrygeometrytext
Set to 'paths' to include vector geometry for each node. Leave blank to omit geometry (smaller response).One of: paths (Include vector paths).
Node idsidstext
Comma-separated node ids (e.g. '1:2,1:8') to return only those nodes, their children, and their ancestor chains instead of the whole document (much smaller when you care about a few frames). Top-level pages are always included. Leave blank to return the full tree (subject to 'depth').

Outputs

File metadata plus the document node tree. The 'document' node is the root; its children are the file's pages (CANVAS nodes).

brancheslist
Present only when requested with branch_data: metadata for the file's branches. Each item is {key, name, thumbnail_url, last_modified, link_access} (note: snake_case, unlike the camelCase top-level fields).
componentSetsobject
Map of node id -> component-set metadata.
componentsobject
Map of node id -> component metadata, telling you which component each instance comes from.
documentobject
Root DOCUMENT node. Its 'children' are the pages (CANVAS nodes).
editorTypetext
Which editor the file uses: 'figma', 'figjam', or 'slides'.
lastModifiedtext
ISO 8601 timestamp of the last edit.
linkAccesstext
The file's share-link access level (e.g. 'view', 'edit', 'org_view', 'inherit').
mainFileKeytext
Present only when the file is a branch (requires branch_data): the key of the main file.
nametext
The file's name.
roletext
The caller's role on the file: 'owner', 'editor', or 'viewer'.
schemaVersionnumber
Version of the response schema.
stylesobject
Map of style id -> style metadata used in the file.
thumbnailUrltext
URL of a rendered thumbnail image of the file.
versiontext
The current version id of the file.
Example output
{
  "componentSets": {},
  "components": {
    "1:12": {
      "description": "",
      "key": "a1b2c3d4e5f6",
      "name": "Button / Primary"
    }
  },
  "document": {
    "children": [
      {
        "children": [
          {
            "id": "1:2",
            "name": "Landing / Hero",
            "type": "FRAME"
          },
          {
            "id": "1:8",
            "name": "Landing / Pricing",
            "type": "FRAME"
          }
        ],
        "id": "0:1",
        "name": "Page 1",
        "type": "CANVAS"
      },
      {
        "children": [],
        "id": "0:2",
        "name": "Components",
        "type": "CANVAS"
      }
    ],
    "id": "0:0",
    "name": "Document",
    "type": "DOCUMENT"
  },
  "editorType": "figma",
  "lastModified": "2026-07-20T18:42:11Z",
  "linkAccess": "view",
  "name": "Marketing Site Redesign",
  "role": "editor",
  "schemaVersion": 0,
  "styles": {
    "1:20": {
      "key": "f6e5d4c3b2a1",
      "name": "Brand / Coral",
      "styleType": "FILL"
    }
  },
  "thumbnailUrl": "https://s3-alpha.figma.com/thumbnails/example.png",
  "version": "5219384710"
}

Get file details

Get a Figma file's name, folder, who made it, who changed it last and when, its thumbnail and link, without reading its layers. Quicker than Get file for checking whether a design changed.

Inputs

Filefile_keytextRequired
The Figma file. A file key or a full Figma file URL both work.

Outputs

creatorobject
Who made the file.
editor_typetext
Which Figma product the file is: figma (design), figjam (whiteboard), slides, buzz, sites or make.
file_keytext
The file's key.
folder_nametext
The folder (project) the file is in.
last_touched_attext
When the file's content last changed.
last_touched_byobject
Who changed it last.
link_accesstext
What people with the link can do: view, edit, org_view, org_edit or inherit.
nametext
The file's name.
roletext
What the connected account may do with it: owner, editor or viewer.
thumbnail_urltext
Link to the file's thumbnail image.
urltext
The file's link.
versiontext
The file's version number, which goes up each time it changes.
Example output
{
  "creator": {
    "handle": "Jordan Lee",
    "id": "778363821906345612",
    "img_url": "https://s3-alpha.figma.com/profile/example.png"
  },
  "editor_type": "figma",
  "file_key": "AbC123xyz",
  "folder_name": "Marketing",
  "last_touched_at": "2026-07-28T14:15:35Z",
  "last_touched_by": {
    "handle": "Jordan Lee",
    "id": "778363821906345612",
    "img_url": "https://s3-alpha.figma.com/profile/example.png"
  },
  "link_access": "view",
  "name": "Website redesign",
  "role": "editor",
  "thumbnail_url": "https://s3-alpha.figma.com/thumbnails/example.png",
  "url": "https://www.figma.com/design/AbC123xyz",
  "version": "5864821960"
}

Get user

Get the Figma user that the connected access token belongs to, including their id, display handle, email, and avatar URL. Useful for confirming which account a workflow is acting as, or as a lightweight connection check.

Inputs

None.

Outputs

The authenticated Figma user.

emailtext
Email address; present on /me, may be absent on comment authors.
handletext
Display name.
idtext
Unique user id.
img_urltext
Avatar image URL.
Example output
{
  "email": "jordan@example.com",
  "handle": "Jordan Lee",
  "id": "778363821906345612",
  "img_url": "https://s3-alpha.figma.com/profile/example.png"
}

List comments

List the comments on a Figma file, including each comment's text, author, creation time, whether it has been resolved, and where it is pinned on the canvas. Replies are returned as their own comments with a 'parent_id' pointing at the thread's first comment. Useful for triaging design feedback or pulling open comments into a review.

Inputs

File keyfile_keytextRequired
The Figma file whose comments to list. A file key or a full Figma file URL both work.
As markdownas_mdtrue/false
Turn on to return each comment's text as its markdown equivalent where applicable. Leave off for plain text.

Outputs

The file's comments, newest activity first.

commentslist
Array of comment objects.
Example output
{
  "comments": [
    {
      "client_meta": {
        "node_id": "1:2",
        "node_offset": {
          "x": 120.0,
          "y": 64.0
        }
      },
      "created_at": "2026-07-19T14:03:52Z",
      "file_key": "AbC123dEf456GhI789jkL0",
      "id": "9481726354",
      "message": "Can we bump the hero headline to 48px?",
      "order_id": "1",
      "parent_id": "",
      "reactions": [],
      "resolved_at": null,
      "user": {
        "email": "jordan@example.com",
        "handle": "Jordan Lee",
        "id": "778363821906345612",
        "img_url": "https://s3-alpha.figma.com/profile/example.png"
      }
    },
    {
      "client_meta": null,
      "created_at": "2026-07-19T15:11:08Z",
      "file_key": "AbC123dEf456GhI789jkL0",
      "id": "9481726355",
      "message": "Agreed, pushing that now.",
      "order_id": "2",
      "parent_id": "9481726354",
      "reactions": [],
      "resolved_at": null,
      "user": {
        "handle": "Priya Nair",
        "id": "883910244501299887",
        "img_url": "https://s3-alpha.figma.com/profile/example2.png"
      }
    }
  ]
}

List file versions

List a Figma file's version history, newest first: when each version was saved, by whom, and the name and notes given to it.

Inputs

Filefile_keytextRequired
The Figma file. A file key or a full Figma file URL both work.
Maximum versionspage_sizenumber
How many versions to return (1-50). Figma's default is 30.From 1 to 50.

Outputs

file_keytext
The file's key.
versionslist
The file's versions, newest first.
Example output
{
  "file_key": "AbC123xyz",
  "versions": [
    {
      "created_at": "2026-07-28T14:15:35Z",
      "description": "New hero and pricing section.",
      "id": "5864821960",
      "label": "Ready for review",
      "thumbnail_url": "https://s3-alpha.figma.com/thumbnails/v.png",
      "user": {
        "handle": "Jordan Lee",
        "id": "778363821906345612",
        "img_url": "https://s3-alpha.figma.com/profile/example.png"
      }
    }
  ]
}

List files in a folder

List the Figma files in a folder (once called a project), with each file's key, link and when it last changed.

Inputs

Folderfolder_idtextRequired
The folder's ID, from List team folders, or the folder's link from Figma's file browser.

Outputs

fileslist
The files directly in the folder.
folder_idtext
The folder's ID.
folder_nametext
The folder's name.
Example output
{
  "files": [
    {
      "key": "AbC123xyz",
      "last_modified": "2026-07-28T14:15:35Z",
      "name": "Website redesign",
      "thumbnail_url": "https://s3-alpha.figma.com/thumbnails/example.png",
      "url": "https://www.figma.com/design/AbC123xyz"
    }
  ],
  "folder_id": "42157381",
  "folder_name": "Marketing"
}

List published components

List the components a Figma file has published to its team library, such as buttons and icons, with where each sits in the file. A file that hasn't published any lists none.

Inputs

Filefile_keytextRequired
The Figma file. A file key or a full Figma file URL both work.

Outputs

componentslist
The file's published components.
file_keytext
The file's key.
Example output
{
  "components": [
    {
      "created_at": "2026-05-02T10:00:00Z",
      "description": "Use for the main action on a screen.",
      "frame_name": "Buttons",
      "key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
      "name": "Button / Primary",
      "node_id": "12:34",
      "page_name": "Components",
      "thumbnail_url": "https://s3-alpha.figma.com/thumbnails/example.png",
      "updated_at": "2026-07-28T14:15:35Z"
    }
  ],
  "file_key": "AbC123xyz"
}

List published styles

List the colors, text styles, effects and grids a Figma file has published to its team library. A file that hasn't published any lists none.

Inputs

Filefile_keytextRequired
The Figma file. A file key or a full Figma file URL both work.

Outputs

file_keytext
The file's key.
styleslist
The file's published styles.
Example output
{
  "file_key": "AbC123xyz",
  "styles": [
    {
      "created_at": "2026-05-02T10:00:00Z",
      "description": "Use for the main action on a screen.",
      "key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
      "name": "Brand / Blue",
      "node_id": "12:34",
      "style_type": "FILL",
      "thumbnail_url": "https://s3-alpha.figma.com/thumbnails/example.png",
      "updated_at": "2026-07-28T14:15:35Z"
    }
  ]
}

List reactions on a comment

List the emoji reactions on a Figma comment and who left each, for example to see who gave a design a thumbs up.

Inputs

Filefile_keytextRequired
The Figma file the comment is on. A file key or a full Figma file URL both work.
Commentcomment_idtextRequired
The comment's ID, from 'List comments', 'Post comment' or the New comment trigger.

Outputs

comment_idtext
The comment's ID.
file_keytext
The file's key.
reactionslist
The reactions on the comment.
Example output
{
  "comment_id": "123456789",
  "file_key": "AbC123xyz",
  "reactions": [
    {
      "created_at": "2026-07-28T14:15:35Z",
      "emoji": ":+1:",
      "user": {
        "handle": "Jordan Lee",
        "id": "778363821906345612",
        "img_url": "https://s3-alpha.figma.com/profile/example.png"
      }
    }
  ]
}

List team folders

List the folders (once called projects) in one of your Figma teams. Use a folder's ID with List files in a folder.

Inputs

TeamteamtextRequired
The team's ID or its page's link. Open the team in Figma's file browser: the number after /team/ in the address is its ID.

Outputs

folderslist
The team's top-level folders.
team_idtext
The team's ID.
team_nametext
The team's name.
Example output
{
  "folders": [
    {
      "created_at": "2026-01-12T09:30:00Z",
      "id": "42157381",
      "name": "Marketing"
    }
  ],
  "team_id": "1535685101263221741",
  "team_name": "Acme Design"
}

Post comment

Post a comment on a Figma file, or reply to an existing comment. Provide the file and the message text; optionally reply within an existing thread by giving that comment's id. Returns the created comment, including its new id. Useful for leaving automated design feedback or notifying reviewers from a workflow.

Inputs

File keyfile_keytextRequired
The Figma file to comment on. A file key or a full Figma file URL both work.
MessagemessagetextRequired
The comment text to post.
Reply to commentcomment_idtext
To reply inside an existing thread, enter the id of the comment you are replying to. This must be a root comment (you cannot reply to a comment that is itself a reply). Leave blank to start a new top-level comment.

Outputs

The comment that was created.

client_metaobject
Where the comment is pinned. One of: a canvas point (Vector) {x, y}; a frame offset {node_id, node_offset: {x, y}}; a Region {x, y, region_height, region_width}; or a FrameOffsetRegion. Null for a reply.
created_attext
ISO 8601 timestamp when the comment was created.
file_keytext
Key of the file the comment belongs to.
idtext
Unique comment id.
messagetext
Comment text.
order_idtext
Ordering key Figma uses to sort comments.
parent_idtext
Id of the parent comment when this is a reply; empty string for a top-level comment.
reactionslist
Emoji reactions on the comment.
resolved_attext
ISO 8601 timestamp when the comment was resolved, or null if unresolved.
userobject
A Figma user.
Example output
{
  "client_meta": null,
  "created_at": "2026-07-24T09:15:00Z",
  "file_key": "AbC123dEf456GhI789jkL0",
  "id": "9481726400",
  "message": "Ship-ready: approving this frame.",
  "order_id": "3",
  "parent_id": "",
  "reactions": [],
  "resolved_at": null,
  "user": {
    "email": "jordan@example.com",
    "handle": "Jordan Lee",
    "id": "778363821906345612",
    "img_url": "https://s3-alpha.figma.com/profile/example.png"
  }
}

React to a comment

Add an emoji reaction to a comment on a Figma file, such as a thumbs up or a check mark, to show it has been seen or dealt with without posting a reply.

Inputs

Filefile_keytextRequired
The Figma file the comment is on. A file key or a full Figma file URL both work.
Commentcomment_idtextRequired
The comment's ID, from 'List comments', 'Post comment' or the New comment trigger.
ReactionemojitextRequired
The emoji, written as its shortcode: :+1: for a thumbs up, :heart:, :white_check_mark: and so on. A skin tone can follow, as in :+1::skin-tone-2:.

Outputs

The comment and the reaction.

comment_idtext
The comment's ID.
emojitext
The reaction, as its shortcode (for example :+1:).
file_keytext
The file's key.
statustext
Always 'success' when Figma took the change.
Example output
{
  "comment_id": "9481726400",
  "emoji": ":+1:",
  "file_key": "AbC123dEf456GhI789jkL0",
  "status": "success"
}

Remove a reaction

Take back a reaction you added to a comment on a Figma file. Figma removes only your own reaction, never someone else's.

Inputs

Filefile_keytextRequired
The Figma file the comment is on. A file key or a full Figma file URL both work.
Commentcomment_idtextRequired
The comment's ID, from 'List comments', 'Post comment' or the New comment trigger.
ReactionemojitextRequired
The emoji, written as its shortcode: :+1: for a thumbs up, :heart:, :white_check_mark: and so on. A skin tone can follow, as in :+1::skin-tone-2:.

Outputs

The comment and the reaction.

comment_idtext
The comment's ID.
emojitext
The reaction, as its shortcode (for example :+1:).
file_keytext
The file's key.
statustext
Always 'success' when Figma took the change.
Example output
{
  "comment_id": "9481726400",
  "emoji": ":+1:",
  "file_key": "AbC123dEf456GhI789jkL0",
  "status": "success"
}

On this page