For the complete documentation index, see llms.txt. This page is also available as Markdown.

Install WordPress plugins

Install one or more plugins on an existing WordPress installation.

Install WordPress plugins

post

Install one or more plugins 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). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin slugs available for installation.

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

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
softwarestringRequired

WordPress installation (software) identifier

Example: 1232456789Pattern: ^[0-9]+$
Body
pluginsstring[] · min: 1 · max: 20Required

Plugin slugs to install. Use GET /api/hosting/v1/wordpress/plugins to discover available slugs.

Example: ["akismet","hello-dolly"]
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
post/api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install
POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "plugins": [
    "akismet",
    "hello-dolly"
  ]
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?