Version: 202601
List versions of a theme file
GET/openapi/2026-01/themes/:theme_id/doc/versions
Returns the version history for a single theme file.
Request
Path Parameters
theme_id stringrequired
Theme's unique identifier
Query Parameters
type string
The type of file to list versions for: layout, templates, sections, snippets, assets, config, locales (blocks is not supported here). Defaults to layout
location string
The location of the file within the theme. Defaults to theme.liquid
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
- ]
codestring
error code
messagestring
error message
data object
versions object[]
List of versions
idstring
Theme file version ID
versionstring
Version
created_atstring
Creation timestamp, in ISO-8601 format
theme_idstring
Theme ID
typestring
Type
locationstring
Location
updated_atstring
Last update timestamp, in ISO-8601 format (e.g. 2023-01-01T00:00:00Z)
json
{
"code": "string",
"message": "string",
"data": {
"versions": [
{
"id": "string",
"version": "string",
"created_at": "string",
"theme_id": "string",
"type": "string",
"location": "string",
"updated_at": "string"
}
]
}
}