Skip to main content

Themes

Manage site themes. Requires GHOST_ADMIN_API_KEY.

Tools

ToolDescription
admin_upload_themeUpload a new theme
admin_activate_themeActivate an installed theme

admin_upload_theme

Upload a theme zip file.

{
"file_path": "/path/to/theme.zip"
}

Key parameters

ParameterTypeDescription
file_pathstringLocal path to the theme zip file (required)

The theme will be installed but not activated. Use admin_activate_theme to activate it.

admin_activate_theme

Activate an installed theme by name.

{
"name": "casper"
}

Key parameters

ParameterTypeDescription
namestringTheme name to activate (required)
warning

Activating a theme changes the site's appearance immediately. Test themes in a staging environment first.