Figma GetFile

Figma GetFile

Certified

Get a Figma file's document structure

Calls the Figma GET /v1/files/: key endpoint. File documents can be very large, so fetchType defaults to STORE.

yaml
type: io.kestra.plugin.figma.files.GetFile

Store a Figma file's document structure to internal storage

yaml
id: figma_get_file
namespace: company.team

tasks:
  - id: get_file
    type: io.kestra.plugin.figma.files.GetFile
    accessToken: "{{ secret('FIGMA_ACCESS_TOKEN') }}"
    fileKey: "abc123XYZ"
Properties

Figma access token

A personal access token generated from your Figma account settings (Account Settings > Personal access tokens), scoped to what the task needs to do. A valid OAuth 2.0 access token obtained through your own authorization flow also works — this plugin does not implement the OAuth flow itself, only PAT-style bearer tokens passed as-is.

The Figma file key

Found in the file's URL: https://www.figma.com/file/: fileKey/....

Defaulthttps://api.figma.com/v1

Figma API base URL

Defaults to the public Figma REST API. Override only to point at a self-hosted proxy or a test server.

Whether to include branch metadata in the response

This plugin passes branchData through as-is; it does not resolve or diff branches.

Depth of the node tree to traverse

For example 1 returns only the root and its direct children.

DefaultSTORE
Possible Values
STOREFETCHFETCH_ONENONE

How to handle the fetched file document

Defaults to STORE because file documents can be large — storing to internal storage avoids loading the whole JSON tree into the execution context. Use FETCH/FETCH_ONE only for small files.

A specific file version ID to retrieve

By default the latest version is returned.

Geometry data to include

Set to paths to export vector data.

SubTypestring

A list of node IDs to limit the traversal to

By default the whole document is returned.

The single fetched item

Populated when fetchType is FETCH_ONE.

The list of fetched items

Populated when fetchType is FETCH.

The number of items stored or fetched

The total number of items returned by the Figma API for this request

Only populated for list-shaped responses (e.g. comments, projects, files).

Formaturi

The internal storage URI of the stored payload

Populated when fetchType is STORE.