Figma
Productivity Personal access tokenRead Figma files, components, comments and versions from any Windmill script, flow or app.
Set up in 3 steps
Create a personal access token
In Figma, open Settings then Security, and generate a personal access token. Tick the scopes your scripts need and copy it — it is shown only once.
Add the resource in Windmill
Open Resources, add a resource of type figma, and paste the token.
Run your first script
Fork any script below and read before writing anything.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
List Comments
Post a Comment
Update dev resources
Update a webhook
Render images of file nodes
Get webhook requests
Get versions of a file
Get team webhooks
Get team styles
Get team components
Get team component sets
Get style
Get reactions for a comment
Get published variables
Get projects in a team
Get payments
Get local variables
Get library analytics variable usage data.
Get library analytics variable action data.
Get library analytics usage data.
Get library analytics style usage data.
Get library analytics style action data.
Get library analytics component usage data.
Get library analytics component action data.
Get library analytics action data.
Get image fills
Get files in a project
Get file styles
Get file components
Get file component sets
Resource type
figma — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| token | string | Yes | Follow the OAuth flow described at https://www.figma.com/developers/api#authentication |
Questions
Where do I find a file key?
It is the segment in the file's URL after /file/ or /design/, before the file name.
Can it edit a file?
Not through this API. Figma's REST API reads files and writes comments; changing the canvas is a plugin's job.
Is my token stored on the hub?
Never. It lives only in your own Windmill workspace, encrypted at rest.