v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03269339953.6 KB
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

tokenstring

Signed JWT used to authenticate requests against the WordPress installation

expires_ininteger

Token lifetime in seconds from the moment it was issued

expires_atstring date-time nullable

Date-time at which the token expires, or null when not provided

mcp_urlstring nullable

MCP (Model Context Protocol) endpoint URL for the WordPress installation, or null when not provided

Example response

{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9",
  "expires_in": 3600,
  "expires_at": "2024-06-05T12:08:00Z",
  "mcp_url": "https://example.com/wp-json/hostinger/mcp"
}