Version: 202506
Get theme file
GET/openapi/2025-06/themes/:theme_id/doc
Retrieve details of a specific theme's doc file using its unique identifier
Request
Path Parameters
theme_id stringrequired
Theme's unique identifier
Query Parameters
type string
The type of file to retrieve(layout, templates, sections, snippets,assets, config, locales etc.). Defaults to layout
location string
The file's location. Defaults to theme.liquid
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
theme_file object
Theme file
idstring
The ID of the theme file
theme_idstring
The ID of the theme the file belongs to
typestring
The type of the file
locationstring
The file's location path
remote_urlstring
The remote URL of the file
contentstring
The full content of the file
{
"code": "string",
"message": "string",
"data": {
"theme_file": {
"id": "string",
"theme_id": "string",
"type": "string",
"location": "string",
"remote_url": "string",
"content": "string"
}
}
}