WordPress: Installations
Get installation JWT token
Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint.
Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the id field).
get/api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token
Path parameters
usernamestring required
Example:u123456789
softwarestring required
Example:1232456789
WordPress installation (software) identifier
Response
Success response
Example response
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9",
"expires_in": 3600,
"expires_at": "2024-06-05T12:08:00Z",
"mcp_url": "https://example.com/wp-json/hostinger/mcp"
}