Version: 202601
Get edit session file
GET/openapi/2026-01/themes/edit-sessions/:oseid/files/:doc_id
Read a single file within a theme edit session.
Request
Path Parameters
oseid stringrequired
Edit session ID
doc_id stringrequired
Document ID of the file within the session
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
template object
The edit session file
idstring
Document ID
theme_idstring
Theme ID
typestring
File type: layout, templates, sections, snippets, assets, config, locales
locationstring
File location, e.g. index.liquid
contentstring
Raw file content as a JSON string (parse on the client)
oseidstring
Edit session ID
json
{
"code": "string",
"message": "string",
"data": {
"template": {
"id": "string",
"theme_id": "string",
"type": "string",
"location": "string",
"content": "string",
"oseid": "string"
}
}
}