GET /themes
Returns all installed themes. The active theme is listed first; remaining themes are sorted alphabetically.Response
Array of theme objects.
Total number of installed themes.
POST /themes/activate
Activates an installed theme.Parameters
The theme directory slug.
Response
Always
true on success.Human-readable confirmation message.
DELETE /themes/delete
Permanently deletes a theme. The currently active theme cannot be deleted.Parameters
The theme directory slug.
POST /themes/install
Installs a theme from the WordPress.org repository by slug.Parameters
WordPress.org theme slug.
GET /themes/search
Searches the WordPress.org theme repository.Parameters
Search query string.
Page number. Defaults to
1. Returns 12 results per page.Response
Array of matching theme objects from WordPress.org.
Total number of matching results.
POST /themes/upload
Installs a theme from an uploaded ZIP file.This endpoint requires
multipart/form-data encoding. The file field must be named file and contain a valid .zip archive.Parameters
The theme ZIP file to upload. Must have a
.zip extension.If
true, overwrites an existing theme with the same slug. Defaults to false.POST /themes/export
Creates a ZIP archive of an installed theme and returns a time-limited download URL. The URL expires after 5 minutes.Parameters
The theme directory slug.
Response
Always
true on success.Time-limited URL to download the ZIP file. Valid for 5 minutes.
Suggested filename for the download.
GET /themes/download
Streams a previously exported theme ZIP file. Use thedownload_url returned by POST /themes/export.
Parameters
The one-time download key returned from
POST /themes/export.POST /themes/update
Updates an installed theme to its latest available version from WordPress.org. Returns a400 error if no update is available.
Parameters
The theme directory slug.
POST /themes/install-version
Installs a specific version of a WordPress.org theme, overwriting any currently installed version.Parameters
WordPress.org theme slug.
The exact version to install (e.g.
4.3.0).