---
title: "Get local variables"
method: GET
path: "/v1/files/{file_key}/variables/local"
tags: ["Variables"]
---

# Get local variables

`GET /v1/files/{file_key}/variables/local`

**This API is available to full members of Enterprise orgs.**

The `GET /v1/files/:file_key/variables/local` endpoint lets you enumerate local variables created in the file and remote variables used in the file. Remote variables are referenced by their `subscribed_id`.

As a part of the Variables related API additions, the `GET /v1/files/:file_key` endpoint now returns a `boundVariables` property, containing the `variableId` of the bound variable. The `GET /v1/files/:file_key/variables/local` endpoint can be used to get the full variable or variable collection object.

Note that `GET /v1/files/:file_key/variables/published` does not return modes. Instead, you will need to use the `GET /v1/files/:file_key/variables/local` endpoint, in the same file, to examine the mode values.

## Path parameters

- `file_key` string, required

## Response `200`

Response from the GET /v1/files/{file_key}/variables/local endpoint.

- object
  - `status` 200, required — The response status code.
  - `error` false, required — For successful requests, this value is always `false`.
  - `meta` object, required
    - `variables` object, required — A map of variable ids to variables
    - `variableCollections` object, required — A map of variable collection ids to variable collections

## Other responses

- `401` — Token is missing or incorrect.
- `403` — The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, or may need an account of some sort.
- `404` — The requested file or resource was not found.
- `429` — In some cases API requests may be throttled or rate limited. Please wait a while before attempting the request again (typically a minute).
- `500` — An internal server error occurred.

## Changes

- **2026-01-21** `753252458186` — 1 info
  - added the optional property `meta/variableCollections/additionalProperties/rootVariableCollectionId` to the response with the `200` status
- **2025-12-17** `0ad28e30d9e1` — 4 info
  - added the optional property `meta/variableCollections/additionalProperties/isExtension` to the response with the `200` status
  - added the optional property `meta/variableCollections/additionalProperties/modes/items/parentModeId` to the response with the `200` status
  - added the optional property `meta/variableCollections/additionalProperties/parentVariableCollectionId` to the response with the `200` status
  - added the optional property `meta/variableCollections/additionalProperties/variableOverrides` to the response with the `200` status
- **2025-03-27** `7da6faa8fe1b` — 1 warning
  - added the new `FONT_VARIATIONS` enum value to the `meta/variables/additionalProperties/scopes/items/` response property for the response status `200`
- **2024-10-25** `cd47fb926f31` — 1 info
  - added the optional property `meta/variables/additionalProperties/deletedButReferenced` to the response with the `200` status
- …earlier changes not shown

[Full history](https://skmtc.dev/figma/apis/figma-api/changes/v1/files/:file_key/variables/local/get.md)

---

[API](https://skmtc.dev/figma/apis/figma-api.md) · [All operations](https://skmtc.dev/figma/apis/figma-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/figma/figma-api/revisions/d7ab5681d84c/schema)
