Figma GetPublishedVariables

Figma GetPublishedVariables

Certified

Get the published variables and variable collections of a Figma file

Calls the Figma GET /v1/files/: file_key/variables/published endpoint. Requires a Figma Enterprise organization plan with variables enabled — a 403 response is mapped to a dedicated error explaining that requirement, since it's the most common cause on non-Enterprise orgs. If you're not on an Enterprise plan, read/write variables from a client-side Figma plugin instead.

yaml
type: io.kestra.plugin.figma.variables.GetPublishedVariables

Get the published variables of a Figma file (Enterprise plan required)

yaml
id: figma_get_published_variables
namespace: company.team

tasks:
  - id: get_published_variables
    type: io.kestra.plugin.figma.variables.GetPublishedVariables
    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.

DefaultFETCH_ONE
Possible Values
STOREFETCHFETCH_ONENONE

How to handle the fetched variables

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.