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

# Get published variables

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

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

The `GET /v1/files/:file_key/variables/published` endpoint returns the variables that are published from the given file.

The response for this endpoint contains some key differences compared to the `GET /v1/files/:file_key/variables/local` endpoint:

- Each variable and variable collection contains a `subscribed_id`.
- Modes are omitted for published variable collections

Published variables have two ids: an id that is assigned in the file where it is created (`id`), and an id that is used by subscribing files (`subscribed_id`). The `id` and `key` are stable over the lifetime of the variable. The `subscribed_id` changes every time the variable is modified and published. The same is true for variable collections.

The `updatedAt` fields are ISO 8601 timestamps that indicate the last time that a change to a variable was published. For variable collections, this timestamp will change any time a variable in the collection is changed.

## Path parameters

- `file_key` string, required

## Response `200`

Response from the GET /v1/files/{file_key}/variables/published 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.

---

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