Skip to main content
Every figma.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Activity Logs

list

activityLogs.list List Figma organization activity logs Risk: read
Input Output

Comments

add

comments.add Add a comment to a Figma file Risk: write
Input Output

addReaction

comments.addReaction Add a reaction to a comment Risk: write
Input Output

delete

comments.delete Delete a comment from a Figma file [DESTRUCTIVE] Risk: destructive
Input Output

deleteReaction

comments.deleteReaction Delete a reaction from a comment Risk: write
Input Output

getReactions

comments.getReactions Get reactions on a comment Risk: read
Input Output

list

comments.list List comments on a Figma file Risk: read
Input Output

Components

get

components.get Get a Figma component by key Risk: read
Input Output

getComponentSet

components.getComponentSet Get a Figma component set by key Risk: read
Input Output

getComponentSetsForFile

components.getComponentSetsForFile Get all component sets in a Figma file Risk: read
Input Output

getComponentSetsForTeam

components.getComponentSetsForTeam Get all component sets for a Figma team Risk: read
Input Output

getForFile

components.getForFile Get all components in a Figma file Risk: read
Input Output

getForTeam

components.getForTeam Get all components for a Figma team Risk: read
Input Output

Design Tools

designTokensToTailwind

designTools.designTokensToTailwind Convert Figma design tokens to a Tailwind CSS configuration Risk: read
Input
Output

discoverResources

designTools.discoverResources Discover Figma files, projects, and teams Risk: read
Input Output

downloadImages

designTools.downloadImages Download rendered images for Figma nodes Risk: read
Input
Output

extractDesignTokens

designTools.extractDesignTokens Extract design tokens (variables and styles) from a Figma file Risk: read
Input Output

extractPrototypeInteractions

designTools.extractPrototypeInteractions Extract prototype interactions and flows from a Figma file Risk: read
Input Output

Dev Resources

create

devResources.create Create dev resources on a Figma file Risk: write
Input
Output

delete

devResources.delete Delete a dev resource from a Figma file [DESTRUCTIVE] Risk: destructive
Input Output: empty object

get

devResources.get Get dev resources for a Figma file Risk: read
Input Output

update

devResources.update Update dev resources on a Figma file Risk: write
Input
Output

Files

getImageFills

files.getImageFills Get image fills from a Figma file Risk: read
Input Output

getJSON

files.getJSON Get full Figma file JSON Risk: read
Input Output

getMetadata

files.getMetadata Get Figma file metadata Risk: read
Input Output

getNodes

files.getNodes Get specific nodes from a Figma file Risk: read
Input Output

getProjectFiles

files.getProjectFiles Get all files in a Figma project Risk: read
Input Output

getStyles

files.getStyles Get styles from a Figma file Risk: read
Input Output

getVersions

files.getVersions Get version history of a Figma file Risk: read
Input Output

renderImages

files.renderImages Render Figma nodes as images Risk: read
Input Output

Library Analytics

componentActions

libraryAnalytics.componentActions Get library component action analytics Risk: read
Input Output

componentUsages

libraryAnalytics.componentUsages Get library component usage analytics Risk: read
Input Output

styleActions

libraryAnalytics.styleActions Get library style action analytics Risk: read
Input Output

styleUsages

libraryAnalytics.styleUsages Get library style usage analytics Risk: read
Input Output

variableActions

libraryAnalytics.variableActions Get library variable action analytics Risk: read
Input Output

variableUsages

libraryAnalytics.variableUsages Get library variable usage analytics Risk: read
Input Output

Payments

get

payments.get Get payment information for a Figma plugin or widget Risk: read
Input Output

Projects

getTeamProjects

projects.getTeamProjects Get all projects for a Figma team Risk: read
Input Output

Styles

get

styles.get Get a Figma style by key Risk: read
Input Output

getForTeam

styles.getForTeam Get all styles for a Figma team Risk: read
Input Output

Users

getCurrent

users.getCurrent Get the currently authenticated Figma user Risk: read
Input: empty object Output

Variables

createModifyDelete

variables.createModifyDelete Create, modify, or delete variables in a Figma file Risk: write
Input Output

getLocal

variables.getLocal Get local variables from a Figma file Risk: read
Input Output

getPublished

variables.getPublished Get published variables from a Figma file Risk: read
Input Output

Webhooks

create

webhooks.create Create a Figma webhook Risk: write
Input Output

delete

webhooks.delete Delete a Figma webhook [DESTRUCTIVE] Risk: destructive
Input Output

get

webhooks.get Get a Figma webhook by ID Risk: read
Input Output

getRequests

webhooks.getRequests Get webhook request history Risk: read
Input Output

list

webhooks.list List Figma webhooks Risk: read
Input Output

update

webhooks.update Update a Figma webhook Risk: write
Input Output