Skip to main content
Version: 202607

Get theme file

GET 

/openapi/2026-07/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

OK

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