v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
WordPress: Themes

Install WordPress theme

Install a theme on an existing WordPress installation.

Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the id field).

When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional palette, layout, and font fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored.

This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.

post/api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install

Path parameters

usernamestring required
Example:u123456789
softwarestring required
Example:1232456789

WordPress installation (software) identifier

Request body

themestring required

Slug of the theme to install. Hostinger theme slugs (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme) trigger the custom installer and forward the optional palette/layout/font fields; any other WordPress theme slug uses the standard installer and ignores those fields.

palettestring nullable

Palette identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.

layoutstring nullable

Layout identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.

font'professional' | 'modern' | 'elegant' | 'creative' | 'dynamic' | 'default' nullable

Font identifier. Only applied when the theme is a Hostinger theme; the default is used when omitted.

Example request

{
  "theme": "hostinger-blog",
  "palette": "palette1",
  "layout": "layout1",
  "font": "default"
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}