v1
latestOpenAPI 3.1.02026-07-1750229379.2 KBGet published variables
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 to get variables from. This must be a main file key, not a branch key, as it is not possible to publish from branches.
Response
Response from the GET /v1/files/{file_key}/variables/published endpoint.