How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Figma Variables API

Interact with variables in an Enterprise organization.

Figma Variables API is one of 18 APIs that Figma publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 64 JSON Schema definitions.

Tagged areas include Variables. The published artifact set on APIs.io includes an OpenAPI specification, a JSON-LD context, API documentation, an AsyncAPI specification, and 64 JSON Schemas.

This API exposes 3 operations across 3 paths, and defines 26 schemas. It is described by OpenAPI 3.2.0, at version 0.45.0.

Requests are made against a single base URL, https://api.figma.com.

3 operations 3 paths 26 schemas 2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.45.0
Base URL
https://api.figma.com
Authentication
API Key, API Key, OAuth 2.0, OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 4

Figma Variables API declares 4 security schemes for authenticating requests. An API key is passed in the header as X-Figma-Token (PersonalAccessToken). An API key is passed in the header as X-Figma-Token (PlanAccessToken). It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 21 scopes. It supports OAuth 2.0 (OrgOAuth2) using the authorizationCode flow, exposing 1 scope.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 2 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Variables 3

Interact with variables in an Enterprise organization.

GET
/v1/files/{file_key}/variables/local
Get local variables
getLocalVariables 1 param → 200401403404429500
GET
/v1/files/{file_key}/variables/published
Get published variables
getPublishedVariables 1 param → 200401403404429500
POST
/v1/files/{file_key}/variables
Create/modify/delete variables
postVariables 1 param body → 200400401403404429500

Schemas 26

The contract defines 26 schemas that model the data the API accepts and returns. The most detailed are LocalVariable (12 properties), LocalVariableCollection (12 properties), VariableCreate (9 properties), VariableUpdate (7 properties). Each schema is shown below with its type and property counts.

RGBA
object
An RGBA color
4 properties 4 required
LocalVariableCollection
object
A grouping of related Variable objects each with the same modes.
12 properties 8 required
VariableComposedColor
A color with an independently authored opacity.
PublishedVariable
object
A Variable is a single design token that defines values for each of the modes in its VariableCollection. These values can be applied to various kinds of design…
7 properties 7 required
VariableModeChange
VariableCreate
object
An object that contains details about creating a Variable.
9 properties 4 required
LocalVariable
object
A Variable is a single design token that defines values for each of the modes in its VariableCollection. These values can be applied to various kinds of design…
12 properties 11 required
VariableScope
string
Scopes allow a variable to be shown or hidden in the variable picker for various fields. This declutters the Figma UI if you have a large number of variables.…
PublishedVariableCollection
object
A grouping of related Variable objects each with the same modes.
5 properties 5 required
VariableCollectionUpdate
object
An object that contains details about updating a VariableCollection.
4 properties 2 required
ErrorResponsePayloadWithErrorBoolean
object
A response indicating an error occurred.
3 properties 3 required
VariableAlias
object
Contains a variable alias
2 properties 2 required
VariableValue
The value for the variable. The value must match the variable's type. If setting to a variable alias, the alias must resolve to this type. If overriding a valu…
VariableUpdate
object
An object that contains details about updating a Variable.
7 properties 2 required
VariableCollectionCreate
object
An object that contains details about creating a VariableCollection.
7 properties 2 required
VariableModeDelete
object
An object that contains details about deleting a VariableMode.
2 properties 2 required
VariableDelete
object
An object that contains details about deleting a Variable.
2 properties 2 required
VariableResolvedDataType
string
Defines the types of data a VariableData object can eventually equal
VariableModeValue
object
An object that represents a value for a given mode of a variable. All properties are required.
3 properties 3 required
VariableModeUpdate
object
An object that contains details about updating a VariableMode.
4 properties 3 required
VariableModeCreate
object
An object that contains details about creating a VariableMode.
4 properties 3 required
VariableChange
VariableCollectionDelete
object
An object that contains details about deleting a VariableCollection.
2 properties 2 required
VariableCollectionChange
RGB
object
An RGB color
3 properties 3 required
VariableCodeSyntax
object
An object containing platform-specific code syntax definitions for a variable. All platforms are optional.
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

figma-variables-api-openapi.yml Raw ↑

Other APIs Figma publishes across the network.

Figma Files API
Figma Projects API
Figma Component Sets API
Figma Activity Logs API
Figma Payments API
Figma Dev Resources API
Figma Comments API
Figma Components API
Figma Library Analytics API
Figma Users API
Figma AI Usage API
Figma Comment Reactions API
Where this information came from

This is an independent, third-party profile of Figma Variables API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.