Sequential Thinking
Dynamic and reflective problem-solving through thought sequences
MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star
MCP server for Hostinger API
Model Context Protocol (MCP) server for Hostinger API.
If you don't want to install or run anything locally, connect directly to Hostinger's hosted MCP server:
https://mcp.hostinger.com
claude mcp add --transport http hostinger https://mcp.hostinger.com
This opens a browser window to authorize via OAuth. Once approved, the operations below are reachable through execute in your session.
codex mcp add hostinger --url https://mcp.hostinger.com
codex mcp login hostinger
login opens the same OAuth flow in your browser.
Add https://mcp.hostinger.com as a remote Streamable HTTP MCP server in your client's configuration and complete the OAuth prompt when it appears. Refer to your client's docs for how it exposes "add remote MCP server" / "custom connector" settings.
If you don't have Node.js installed, you can download it from the official website. Alternatively, you can use a package manager like Homebrew (for macOS) or Chocolatey (for Windows) to install Node.js.
We recommend using NVM (Node Version Manager) to install and manage installed Node.js versions. After installing NVM, you can install Node.js with the following command:
nvm install v24
nvm use v24
To install the MCP server, run one of the following command, depending on your package manager:
# Install globally from npm
npm install -g @hostinger/mcp
# Or with yarn
yarn global add @hostinger/mcp
# Or with pnpm
pnpm add -g @hostinger/mcp
To update the MCP server to the latest version, use one of the following commands, depending on your package manager:
# Update globally from npm
npm update -g @hostinger/mcp
# Or with yarn
yarn global upgrade @hostinger/mcp
# Or with pnpm
pnpm update -g @hostinger/mcp
This package installs the following MCP server commands:
hostinger-api-mcp — unified server over every operation (425 total)hostinger-agency-hosting-mcp — 43 operations for agency-hostinghostinger-agent-readiness-mcp — 4 operations for agent-readinesshostinger-billing-mcp — 10 operations for billinghostinger-dns-mcp — 10 operations for dnshostinger-domains-mcp — 49 operations for domainshostinger-ecommerce-mcp — 33 operations for ecommercehostinger-gpu-mcp — 12 operations for gpuhostinger-hosting-mcp — 59 operations for hostinghostinger-mail-mcp — 39 operations for mailhostinger-reach-mcp — 73 operations for reachhostinger-vps-mcp — 66 operations for vpshostinger-wordpress-mcp — 41 operations for wordpressEvery binary exposes the same three tools; a scoped binary only searches and executes its own group's operations. hostinger-api-mcp remains the backwards-compatible default.
The following environment variables can be configured when running the server:
DEBUG: Enable debug logging (true/false) (default: false)HOSTINGER_API_TOKEN: Your API token, which will be sent in the Authorization header. When set, OAuth is bypassed entirely.API_TOKEN: Deprecated alias for HOSTINGER_API_TOKEN. Will be removed in a future version — prefer HOSTINGER_API_TOKEN.OAUTH_ISSUER: OAuth server base URL (default: https://auth.hostinger.com). Only used when HOSTINGER_API_TOKEN is not set.The server supports two authentication methods:
Set HOSTINGER_API_TOKEN in the environment (the MCP client's env block). When present it always takes precedence — no OAuth code runs.
When HOSTINGER_API_TOKEN is not set and the server runs in stdio mode, OAuth 2.0 with PKCE is used automatically on the first authenticated tool call:
Credentials are stored at:
~/.config/hostinger-mcp/credentials.json (mode 0600)%APPDATA%\hostinger-mcp\credentials.jsonCredentials are shared across all Hostinger MCP binaries (hostinger-api-mcp, hostinger-vps-mcp, etc.).
Manual commands:
# Run the OAuth sign-in flow immediately (don't wait for the first tool call)
hostinger-api-mcp --login
# Revoke stored credentials
hostinger-api-mcp --logout
HTTP transport note: OAuth sign-in is not supported in --http mode. Set HOSTINGER_API_TOKEN before using --http.
Register Node and the server script by absolute path, never npx or a bare node/hostinger-api-mcp: tools start the server in your project, where npx puts the project's node_modules/.bin first on PATH, a version manager (asdf, mise) runs whatever Node the project's .tool-versions names, and Windows looks a bare name up in the project folder first. Any of these lets a cloned repository run its own code with your Hostinger credentials. After the global install, node -p process.execPath prints the Node path and npm root -g the folder that holds @hostinger/mcp. Run both from your home folder.
{
"mcpServers": {
"hostinger-api": {
"command": "/absolute/path/to/node",
"args": ["/absolute/path/to/global/node_modules/@hostinger/mcp/src/servers/all.js"],
"env": {
"DEBUG": "false",
"HOSTINGER_API_TOKEN": "YOUR API TOKEN"
}
}
}
}
The MCP server supports two transport modes:
The server can use standard input / output (stdio) transport (default). This provides local streaming:
The server can use HTTP streaming transport. This provides bidirectional streaming over HTTP:
# Default HTTP transport on localhost:8100
hostinger-api-mcp --http
# Specify custom host and port
hostinger-api-mcp --http --host 0.0.0.0 --port 8150
Options:
--http Use HTTP streaming transport (requires HOSTINGER_API_TOKEN env var)
--stdio Use Server-Sent Events transport (default)
--host {host} Hostname or IP address to listen on (default: 127.0.0.1)
--port {port} Port to bind to (default: 8100)
--login Run OAuth sign-in flow and exit
--logout Revoke stored OAuth credentials and exit
--help Show help message
This server implements the Model Context Protocol (MCP) and can be used with any MCP-compatible consumer.
Example of connecting to this server using HTTP streaming transport:
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
// Create HTTP transport
const transport = new StreamableHTTPClientTransport({
url: "http://localhost:8100/",
headers: {
"Authorization": `Bearer ${process.env.HOSTINGER_API_TOKEN}`
}
});
// Connect to the MCP server
const client = new Client({
name: "my-client",
version: "1.0.0"
}, {
capabilities: {}
});
await client.connect(transport);
// List available tools
const { tools } = await client.listTools();
console.log("Available tools:", tools);
// Execute an operation
const result = await client.callTool({
name: "execute",
arguments: { operation: "billing_catalog_list", params: { category: "DOMAIN" } }
});
console.log("Tool result:", result);
Every server exposes three tools:
search — find operations by keyword; returns each match with its inputSchema.execute — run one operation: { "operation": "<name>", "params": { ... } }.multi-execute — run up to 20 operations in order, stopping at the first failure. A params value that is exactly "$steps.<i>.<path>" is replaced by that value from an earlier step's result.The operations search offers, by binary:
Operations that newer tools replace are hidden from search, and not documented, in every binary that also offers the replacing tool. Some keep working through execute until they are removed. Others only run inside the tool that replaced them: execute refuses them and names that tool.
hostinger-agency-hosting-mcpWhat's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.
customcustomDeploy a node-static Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites of type node-static (a Node.js-built static site that requires a build step or a plain simple static site). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the build-assets process which builds the site and deploys the result to public_html. This operation is synchronous: the build and deployment complete before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. For plain PHP applications that should be extracted as-is, use agency-hosting_deploy-php-application instead. The website UID is automatically resolved from the domain.
customcustomDeploy a PHP (or other non-build) Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites where the archive contents should be extracted and served as-is with no build step (e.g., PHP applications). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the import-archive process which overwrites the website contents with the archive contents. This operation is synchronous: the archive is extracted and deployed before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. For node-static websites that require a build step, use agency-hosting_deploy-node-static-website instead. The website UID is automatically resolved from the domain.
customcustomLists the datacenters available for provisioning a new website on the given Agency Plan hosting order.
Each datacenter includes a pinger_url you can ping from the client to measure round-trip
latency; comparing the results across datacenters lets you pick the nearest one (lowest
ping) before choosing its code as the datacenter_code when creating a website setup.
GET/api/agency-hosting/v1/orders/{order_id}/datacentersChanges the primary domain for an Agency Plan website.
Provide the current domain in the path and the new domain in the request body. Set domain to null to revert to the temporary domain.
PUT/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}Links a domain to the specified Agency Plan website so it can serve traffic for that domain.
POST/api/agency-hosting/v1/websites/{website_uid}/domainsReturns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client.
Use the website_uuids filter to narrow results to specific websites.
GET/api/agency-hosting/v1/domainsUnlinks a domain from the specified Agency Plan website.
The website stops serving traffic on this domain immediately.
Website files and database are preserved, and any other linked domains remain accessible.
If this is the only domain on the website, unlinking leaves the website without an accessible domain.
DELETE/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}Generate a file browser upload URL with authentication credentials for uploading files to an Agency Plan website's file storage.
Returns url, auth_key and rest_auth_key. Use these to upload a file to the
website's file storage via the TUS resumable upload protocol (TUS 1.0.0). Send
X-Auth: {auth_key} and X-Auth-Rest: {rest_auth_key} headers on every request below.
POST to {url}/{relative_file_path}?override=true with headers
upload-length: {file size in bytes} and upload-offset: 0. Expect 201 Created.PATCH requests with an upload-offset header tracking progress) until complete.relative_file_path is the destination path inside the website's file storage, e.g.
app.zip.
Instead of a TUS client, plain curl also works:
FILE=app.zip
SIZE=$(stat -f%z "$FILE") # stat -c%s on Linux
curl -i -X POST "{url}/${FILE}?override=true" \
-H "X-Auth: {auth_key}" \
-H "X-Auth-Rest: {rest_auth_key}" \
-H "Tus-Resumable: 1.0.0" \
-H "Upload-Length: ${SIZE}" \
-H "Upload-Offset: 0"
# -> 201 Created
curl -i -X PATCH "{url}/${FILE}?override=true" \
-H "X-Auth: {auth_key}" \
-H "X-Auth-Rest: {rest_auth_key}" \
-H "Tus-Resumable: 1.0.0" \
-H "Content-Type: application/offset+octet-stream" \
-H "Upload-Offset: 0" \
--data-binary "@${FILE}"
# -> 204 No Content, Upload-Offset response header equals SIZE when done
POST/api/agency-hosting/v1/websites/{website_uid}/files/upload-urlsImports an Agency Plan website from an already-uploaded archive.
Upload the archive to the website's root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
POST/api/agency-hosting/v1/websites/{website_uid}/files/import-archiveReturns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
GET/api/agency-hosting/v1/orders/{order_id}/disk-usage-metricsReturns a paginated list of Agency Plan orders accessible to the authenticated client.
GET/api/agency-hosting/v1/ordersReturns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
GET/api/agency-hosting/v1/orders/{order_id}/resource-usage-metricsLists every PHP extension available to an Agency Plan website and whether it is currently enabled.
GET/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensionsReplaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the "built-in" state, are always active and are unaffected.
PUT/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensionsLists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
GET/api/agency-hosting/v1/websites/{website_uid}/php-settings/optionsReplaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
PUT/api/agency-hosting/v1/websites/{website_uid}/php-settings/optionsLists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
GET/api/agency-hosting/v1/orders/{order_id}/websites/php-settings/versionsLists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
GET/api/agency-hosting/v1/websites/{website_uid}/php-settings/versionsSwitches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
PATCH/api/agency-hosting/v1/websites/{website_uid}/php-settings/versionProvisions a new website on one of your Agency Plan hosting orders.
Choose the datacenter, stack (flavor), and PHP version for the site. Optionally attach
your own domain — omit it, set it to null, or leave it unavailable and a free
*.hostingersite.com subdomain is generated instead — and/or install WordPress by
supplying the wordpress details (admin account, site title, and language).
Common setups:
flavor set to php-fpm, with settings.php.version; omit
wordpress and type.flavor set to the desired WordPress version (e.g. wp-7.0), plus
the wordpress block (admin account, title, language).flavor set to php-fpm and type set to
node-static.Provisioning runs in the background, so the response returns immediately with a setup UUID that identifies the job. The new website becomes reachable once provisioning finishes.
POST/api/agency-hosting/v1/orders/{order_id}/websites/setupsReturns the current status of an Agency Plan website setup started via the setups endpoint.
Poll this endpoint using the setup_uuid returned from the provisioning request until
status becomes completed, at which point website_uid identifies the new website.
GET/api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid}Replaces the Let's Encrypt certificate of the domain: the current platform certificate, when
one is recorded, is revoked and removed, then a new setup starts in the background. Returns at
once; Get website SSL status reports installing while it runs, then active or failed.
Returns 422 for free subdomains, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
POST/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/reinstallStarts a Let's Encrypt certificate setup for the domain and returns at once; the setup runs in
the background. Get website SSL status reports installing while it runs, then active or
failed; the ssl_setup entry of List website processes shows the same progress.
Returns 422 when the domain already has a platform certificate that is not expired, when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), or when the domain hit its limit of three setups per seven days. Returns 429 when the same domain was requested less than a minute ago, 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
POST/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/setupReturns the SSL state of one domain of an Agency Plan website: the certificate status,
whether the certificate was uploaded by the customer, and when it stops being valid.
installing means a certificate setup is running or retrying; the ssl_setup entry of
List website processes shows the same progress. active means a valid certificate is in
place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for
the domain. failed means the last setup gave up and no valid certificate is in place.
expired means the certificate has run out. not_installed means the domain has no
certificate and no setup process. Returns 404 when the website or the domain does not exist.
GET/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/statusRemoves the platform-issued Let's Encrypt certificate of the domain: the certificate is revoked and deleted before the response, so the domain is no longer served with a platform certificate until a new setup completes. Also succeeds when the domain has no platform certificate to remove. Uploaded (custom) certificates are not affected.
Returns 422 when a certificate process is recorded for the domain (a failed setup counts until it is cleaned up), 429 when the same domain was requested less than a minute ago, and 403 when the website is suspended or locked, and 404 when the website or the domain does not exist.
DELETE/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/sslBuilds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive.
Upload the archive to file browser first, then provide its relative path from document root in this request. Website contents are overwritten by the build result, which is deployed to public_html.
POST/api/agency-hosting/v1/websites/{website_uid}/build-assetsClears cache for all domains associated with an Agency Plan website, including its preview domain.
This operation clears all cache types for the website.
DELETE/api/agency-hosting/v1/websites/{website_uid}/cacheReturns a paginated list of cron jobs configured for an Agency Plan website.
Each entry includes the schedule expression and the command executed on that schedule.
GET/api/agency-hosting/v1/websites/{website_uid}/cron-jobsCreates a cron job for an Agency Plan website from a schedule expression and a command.
Returns the created cron job, including its uuid, which is required to delete the cron job.
POST/api/agency-hosting/v1/websites/{website_uid}/cron-jobsPermanently deletes the cron job identified by its uuid from an Agency Plan website.
The operation is idempotent: deleting a cron job that does not exist succeeds without error.
DELETE/api/agency-hosting/v1/websites/{website_uid}/cron-jobs/{uuid}Returns a paginated list of MySQL databases created for an Agency Plan website.
Each entry includes the database's non-system users.
GET/api/agency-hosting/v1/websites/{website_uid}/databasesCreates a MySQL database with a dedicated user for an Agency Plan website.
The database name, username, and password must all be provided by the caller.
POST/api/agency-hosting/v1/websites/{website_uid}/databasesPermanently deletes a MySQL database and all its data from an Agency Plan website, including its users.
The operation is idempotent: deleting a database that does not exist succeeds without error.
DELETE/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}Creates a user for an existing database on an Agency Plan website.
Each database supports a single non-system user; creating a user for a database that already has one fails.
POST/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/usersPermanently deletes a database user from an Agency Plan website database, revoking all access it had.
The operation is idempotent: deleting a user that does not exist succeeds without error.
DELETE/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users/{database_user_name}Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
GET/api/agency-hosting/v1/websites/{website_uid}Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
DELETE/api/agency-hosting/v1/websites/{website_uid}Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client.
This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you.
The response shape differs per platform — see the platform field on each item.
Use website_types to list only websites of a given detected type, e.g. only
WordPress websites (website_types=wordpress) or only Node.js websites
(website_types=nodejs). Combine with order_ids, states, or domain for more
targeted results.
GET/api/agency-hosting/v1/websitesLists active and recently completed asynchronous processes for an Agency Plan website.
Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
GET/api/agency-hosting/v1/websites/{website_uid}/processesChanges the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
PATCH/api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versionReturns the current WordPress settings for an Agency Plan website: installed core version, LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
GET/api/agency-hosting/v1/websites/{website_uid}/wordpress/settingsLists the WordPress core versions available for installation on an Agency Plan website.
GET/api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versionshostinger-agent-readiness-mcpWhat's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.
customcustomList every check an agent readiness scan runs, with its name, category and weight.\n
Use it to show the human-readable name of each check_id in a scan's results.
GET/api/agent-readiness/v1/checksStart a scan of how ready a public website is for AI agents to discover, read and act on.\n
Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually pending
with no results yet. To get the results, poll the Get agent readiness scan operation with the same
domain every few seconds until its status is completed or failed. The scan itself is limited to 60 seconds,
plus any time it waits in the queue. A failed scan is not retried; run this operation again.\n
Starting a scan for a domain that already has a pending scan from the last 5 minutes
returns that scan instead of starting a new one.
POST/api/agent-readiness/v1/scansGet the latest agent readiness scan of a website.\n
Scans started with the Run agent readiness scan operation are asynchronous. While the status is
pending, the result fields are null; wait a few seconds and call this operation again until the status is
completed or failed. A failed scan is not retried; run the scan again.\n
A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every
check with the evidence found and how to fix it. Check names are listed by the List checks operation.\n
Returns 404 when the domain has never been scanned; use the Run agent readiness scan operation first.
GET/api/agent-readiness/v1/scans/{domain}hostinger-billing-mcpWhat's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.
customcustomRetrieve catalog items available for order.
Prices in catalog items is displayed as cents (without floating point),
e.g: float 17.99 is displayed as integer 1799.
Use this endpoint to view available services and pricing before placing orders.
GET/api/billing/v1/catalogCreate a purchase order for any Hostinger product.
This unified endpoint places an order for one or more catalog items and
works across all Hostinger products, leveraging the existing billing
infrastructure. Use the catalog endpoint to look
up the item_id values available for purchase.
If no payment method is provided, your default payment method will be used automatically.
If the response is 202 Accepted, the payment is still being processed and the order will
complete asynchronously once the payment is confirmed.
This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or hPanel to finalize setup.
Use this endpoint to purchase any product available in the catalog.
POST/api/billing/v1/ordersSet the default payment method for your account.
Use this endpoint to configure the primary payment method for future orders.
POST/api/billing/v1/payment-methods/{paymentMethodId}Delete a payment method from your account.
Use this endpoint to remove unused payment methods from user accounts.
DELETE/api/billing/v1/payment-methods/{paymentMethodId}Retrieve available payment methods that can be used for placing new orders.
If you want to add new payment method, please use hPanel.
Use this endpoint to view available payment options before creating orders.
GET/api/billing/v1/payment-methodsRetrieve a list of all subscriptions associated with your account.
Use this endpoint to monitor active services and billing status.
GET/api/billing/v1/subscriptionsDisable auto-renewal for a subscription.
Use this endpoint when disable auto-renewal for a subscription.
DELETE/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disableEnable auto-renewal for a subscription.
Use this endpoint when enable auto-renewal for a subscription.
PATCH/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enableCreate a renewal order for an existing Hostinger subscription.
This endpoint places a renewal order for a single subscription, leveraging
the existing billing infrastructure. Use the
subscriptions endpoint to look up the
subscriptionId values available for renewal.
If no payment method is provided, your default payment method will be used automatically.
If the response is 202 Accepted, the payment is still being processed and the renewal will
complete asynchronously once the payment is confirmed.
Use this endpoint to renew any subscription available in your account.
POST/api/billing/v1/subscriptions/{subscriptionId}/renewhostinger-dns-mcpWhat's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.
customcustomCheck whether a DNS record of a domain or host name has propagated to public resolvers around the world.
authoritative shows what the domain's authoritative nameservers serve now. It is the best signal
of the current record value. Its TTL tells how long resolvers may keep serving the old value.
vantage_points shows what public resolvers at different locations return. is_propagated is true
when the location returns the same records as the authoritative nameservers. For GeoDNS domains,
whose nameservers answer differently by region, true means the location returned a record.
A records served from the Hostinger CDN count as propagated. When every responding authoritative
nameserver returns no records, is_propagated is true.
Works for any domain or host name, either a domain or a subdomain. Read-only: it changes nothing.
A 404 response with error code 2025 can also mean the check could not be completed, for example when the DNS checker is busy or timed out. It is safe to retry after a short delay.
GET/api/dns/v1/propagation/{domain}/{type}Retrieve particular DNS snapshot with contents of DNS zone records.
Use this endpoint to view historical DNS configurations for domains.
GET/api/dns/v1/snapshots/{domain}/{snapshotId}Retrieve DNS snapshots for a domain.
Use this endpoint to view available DNS backup points for restoration.
GET/api/dns/v1/snapshots/{domain}Restore DNS zone to the selected snapshot.
Use this endpoint to revert domain DNS to a previous configuration.
POST/api/dns/v1/snapshots/{domain}/{snapshotId}/restoreRetrieve DNS zone records for a specific domain.
Use this endpoint to view current DNS configuration for domain management.
GET/api/dns/v1/zones/{domain}Update DNS records for the selected domain.
Using overwrite = true will replace existing records with the provided ones.
Otherwise existing records will be updated and new records will be added.
Use this endpoint to modify domain DNS configuration.
PUT/api/dns/v1/zones/{domain}Delete DNS records for the selected domain.
To filter which records to delete, add the name of the record and type to the filter.
Multiple filters can be provided with single request.
If you have multiple records with the same name and type, and you want to delete only part of them,
refer to the Update zone records endpoint.
Use this endpoint to remove specific DNS records from domains.
DELETE/api/dns/v1/zones/{domain}Reset DNS zone to the default records.
Use this endpoint to restore domain DNS to original configuration.
POST/api/dns/v1/zones/{domain}/resetValidate DNS records prior to update for the selected domain.
If the validation is successful, the response will contain 200 Success code.
If there is validation error, the response will fail with 422 Validation error code.
Use this endpoint to verify DNS record validity before applying changes.
POST/api/dns/v1/zones/{domain}/validatehostinger-domains-mcpWhat's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.
customcustomRetrieve a list of pending and completed domain verifications.
GET/api/v2/direct/verifications/activeSuggest available domain names based on a free-text description of your project.
Suggestions are generated by an AI model, so they differ between calls.
Endpoint has rate limit of 90 requests per minute.
Use this endpoint to find a domain name when you only know what the website is about.
POST/api/domains/v1/availability/alternatives-from-descriptionSuggest available domain names based on a domain name you already have in mind.
Suggestions are generated by an AI model, so they differ between calls.
Endpoint has rate limit of 90 requests per minute.
Use this endpoint when the domain you wanted is taken and you need close alternatives.
POST/api/domains/v1/availability/alternatives-from-domainCheck availability of domain names across multiple TLDs.
Multiple TLDs can be checked at once.
If you want alternative domains with response, provide only one TLD and set with_alternatives to true.
TLDs should be provided without leading dot (e.g. com, net, org).
Premium domains are included: an available premium domain has is_available and is_premium set to true.
Endpoint has rate limit of 90 requests per minute.
Use this endpoint to verify domain availability before purchase.
POST/api/domains/v1/availabilityDelete a domain folder.
The domains in the folder are not deleted; they are only removed from the folder.
Use this endpoint to remove folders that are no longer needed.
DELETE/api/domains/v1/folders/{folderId}Rename a domain folder or change its position in the folder list.
Only the fields sent are changed.
Use this endpoint to rename or reorder folders.
PATCH/api/domains/v1/folders/{folderId}Add domains to a domain folder.
A domain is in one of your folders at a time: adding it to this folder removes it from your other folders. Domains that are not in your portfolio are skipped.
Use this endpoint to group domains of the portfolio in a folder.
POST/api/domains/v1/folders/{folderId}/domainsRemove domains from a domain folder.
The domains stay in your portfolio. Domains that are not in the folder are skipped.
Use this endpoint to take domains out of a folder.
DELETE/api/domains/v1/folders/{folderId}/domainsRetrieve the domain folders of your account.
Use this endpoint to view how domains in the portfolio are organized.
GET/api/domains/v1/foldersCreate a domain folder.
Folder names are unique within an account, and an account can have up to 50 folders.
Use this endpoint to group domains in the portfolio.
POST/api/domains/v1/foldersRetrieve domain forwarding data.
Returns 404 when the domain has no forwarding.
Use this endpoint to view current redirect configuration for domains.
GET/api/domains/v1/forwarding/{domain}Update domain forwarding configuration.
Updating a forwarding changes the domain's DNS. If the domain does not use Hostinger nameservers, they are switched to Hostinger's nameservers automatically, so website, email and other services whose DNS is hosted elsewhere stop working. The root (@) A and AAAA records in the domain's Hostinger DNS zone are also replaced with records pointing to Hostinger, even when the domain already uses Hostinger nameservers. The domain's current nameservers are returned by the domain details endpoint; confirm with the user before updating a forwarding on a domain that uses other nameservers. DNS changes can take some time to propagate.
Use this endpoint to modify existing redirect configuration for domains.
PUT/api/domains/v1/forwarding/{domain}Delete domain forwarding data.
Use this endpoint to remove redirect configuration from domains.
DELETE/api/domains/v1/forwarding/{domain}Create domain forwarding configuration.
Creating a forwarding changes the domain's DNS. If the domain does not use Hostinger nameservers, they are switched to Hostinger's nameservers automatically, so website, email and other services whose DNS is hosted elsewhere stop working. The root (@) A and AAAA records in the domain's Hostinger DNS zone are also replaced with records pointing to Hostinger, even when the domain already uses Hostinger nameservers. The domain's current nameservers are returned by the domain details endpoint; confirm with the user before creating a forwarding on a domain that uses other nameservers. DNS changes can take some time to propagate.
Use this endpoint to set up domain redirects to other URLs.
POST/api/domains/v1/forwardingRetrieve a pending IRTP verification for a domain.
Both the old and new registrant must confirm it before the WHOIS change takes effect.
Returns 404 when the domain has no pending IRTP verification.
Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
GET/api/domains/v1/irtp/{domain}Cancel a pending IRTP verification.
Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
DELETE/api/domains/v1/irtp/{domain}Retrieve the incoming move for a specified domain.
Returns 404 when no account is moving this domain to you.
Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
GET/api/domains/v1/move/incoming/{domain}Accept an incoming move for a specified domain.
The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided.
The move has to still be waiting for your decision, already accepted moves cannot be accepted again.
Accepting does not complete the move. A confirmation email is sent to the email address of
the new owner contact, and the domain changes hands only after the change is confirmed from it.
Until then the move stays in the activating status, which can be followed with the
incoming move endpoint.
Use this endpoint to take ownership of a domain offered to you.
PUT/api/domains/v1/move/incoming/{domain}Reject an incoming move for a specified domain.
The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore.
Use this endpoint to decline a domain you do not want to take over.
DELETE/api/domains/v1/move/incoming/{domain}Retrieve all domains other Hostinger accounts are moving to your account.
Moves of every status are returned, including the ones which already completed.
Use this endpoint to find domains waiting for you to accept them.
GET/api/domains/v1/move/incomingRetrieve the outgoing move for a specified domain.
Returns 404 when the domain has no move in progress.
Use this endpoint to track the status of a move you have initiated for a single domain.
GET/api/domains/v1/move/outgoing/{domain}Initiate a move of a specified domain to another Hostinger account.
The receiving account has to already exist and accept the move before the domain changes hands.
The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own.
The move is also refused unless the domain:
A move refused for one of these rules is rejected with a 422 status code and error code 2048, with a message naming the rule. The receiving account is checked first, and when it cannot be used the message stays generic.
Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code.
Use this endpoint to hand a domain over to another Hostinger user.
POST/api/domains/v1/move/outgoing/{domain}Cancel an outgoing move for a specified domain.
The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account.
Use this endpoint to withdraw a move you no longer want to complete.
DELETE/api/domains/v1/move/outgoing/{domain}Retrieve all domains you are moving to other Hostinger accounts.
Only moves which have not completed yet are returned.
Use this endpoint to track moves you have initiated and the accounts they are addressed to.
GET/api/domains/v1/move/outgoingRetrieve the authorization (EPP) code for a specified domain so it can be transferred away from Hostinger to another registrar.
Requesting a new code invalidates any code retrieved previously.
Use this endpoint to obtain the code required to transfer a domain to another registrar.
GET/api/domains/v1/portfolio/{domain}/auth-codeClaim a free domain available on your account and register it.
Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required.
A free domain and a free domain transfer from the same plan are alternatives:
claiming the free domain removes the plan's free domain transfer
(type: free_domain_transfer). Before making request, confirm with the user which
of the two they want. Right after a claim, the removed free domain transfer may
still appear in the domain list endpoint for a short
time; do not claim it.
A successful response means the domain is registered. If registration fails, login to hPanel and check domain registration status.
If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.
Some TLDs require additional_details to be provided and these will be validated before claiming.
Requests which cannot be fulfilled are rejected with an error code in the response body,
for example 2037 when no free domain is available.
Use this endpoint to register a domain using a free domain from your account.
POST/api/domains/v1/portfolio/claimEnable domain lock for the domain.
When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
Use this endpoint to secure domains against unauthorized transfers.
PUT/api/domains/v1/portfolio/{domain}/domain-lockDisable domain lock for the domain.
Domain lock needs to be disabled before transferring the domain to another registrar.
Use this endpoint to prepare domains for transfer to other registrars.
DELETE/api/domains/v1/portfolio/{domain}/domain-lockRetrieve detailed information for specified domain.
A domain is found here only once it is registered. Until then, Get domain list shows it, and
its verification field says what registration waits for when the domain is held for
verification.
After registration, the registry may require the owner contact to be verified by email, phone
number or contact name before a deadline, after which the domain is suspended. The
contact_verification field shows what needs verifying, its state and the deadline.
Use this endpoint to view comprehensive domain configuration and status.
GET/api/domains/v1/portfolio/{domain}Retrieve all domains associated with your account.
A plan can include both a free domain (type: free_domain) and a free domain
transfer (type: free_domain_transfer). They are alternatives: claiming one
removes the other, which may still be listed for a short time after the claim.
A domain held for verification before it is registered has status: pending_verification,
and its verification field says what registration waits for: a manual review, an SMS code,
or owner contact verification.
Each domain's folders lists the domain folders it is in. It is empty for
items whose type is not domain.
Use this endpoint to view user's domain portfolio.
GET/api/domains/v1/portfolioPurchase and register a new domain name.
If registration fails, login to hPanel and check domain registration status.
If no payment method is provided, your default payment method will be used automatically.
If the response is 202 Accepted, the payment is still being processed and the domain was
not registered. Once the order completes, register the domain from
hPanel.
If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.
Some TLDs require additional_details to be provided and these will be validated before completing purchase.
Use this endpoint to register new domains for users.
POST/api/domains/v1/portfolioEnable privacy protection for the domain.
When privacy protection is enabled, domain owner's personal information is hidden from public WHOIS database.
Use this endpoint to protect domain owner's personal information from public view.
PUT/api/domains/v1/portfolio/{domain}/privacy-protectionDisable privacy protection for the domain.
When privacy protection is disabled, domain owner's personal information is visible in public WHOIS database.
Use this endpoint to make domain owner's information publicly visible.
DELETE/api/domains/v1/portfolio/{domain}/privacy-protectionRetrieve renewal information for a specified domain, including its status, current expiration date, whether it can be renewed, whether it is in its grace or redemption period, and when each of those periods ends.
Use this endpoint to build renewal automation and expiry monitoring for a single domain.
GET/api/domains/v1/portfolio/{domain}/renewalRegister a domain you have already paid for but which has not been set up yet.
Use this endpoint when an order completed without registering the domain, for example when
Purchase new domain returned 202 Accepted and the domain was added to your account without
being registered, or when an earlier setup attempt failed. No new order is placed and no payment
is taken: the subscription you already own is used, for the period you already paid for.
A domain is left awaiting setup when the details needed to register it were missing or invalid
as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason.
Complete the missing information, then call this endpoint. If the order itself has not completed
yet, the domain is not on your account, wait until it appears in Get domain list.
If domain_contacts is omitted, the default WHOIS profile of that TLD is used for all four
roles. The profile must exist and be complete for the TLD, an incomplete profile is the most
common reason a domain is left awaiting setup. Create one with Create WHOIS profile.
Some TLDs require additional_details. These are validated before setup, so a missing or
invalid value is rejected without any registration being attempted.
The domain is set up with the default nameservers and with privacy protection. Use
Update domain nameservers and Disable privacy protection afterwards to change either.
A successful response means the setup request was accepted, not that the domain is already
registered. Poll Get domain list for the outcome, the domain appears in Get domain details
only once it is registered. When the domain is held for verification, its verification field
in Get domain list says what registration waits for.
Use this endpoint to finish registering a domain that is awaiting setup on your account.
POST/api/domains/v1/portfolio/{domain}/setupSet nameservers for a specified domain.
Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
Use this endpoint to configure custom DNS hosting for domains.
PUT/api/domains/v1/portfolio/{domain}/nameserversClaim a free domain transfer available on your account and start the transfer.
Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required.
A free domain and a free domain transfer from the same plan are alternatives:
claiming the free domain transfer removes the plan's free domain
(type: free_domain). Before making request, confirm with the user which of the
two they want. Right after a claim, the removed free domain may still appear in
the domain list endpoint for a short time; do not claim it.
Before making request, unlock the domain at the current registrar and, if its TLD uses one, get its authorization code. The transfer is validated first, so domains which cannot be transferred, or are missing a required authorization code, are rejected before the free domain transfer is consumed.
A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the transfer list endpoint.
If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.
Requests which cannot be fulfilled are rejected with an error code in the response body.
Use this endpoint to transfer a domain using a free domain transfer from your account.
POST/api/domains/v1/transfers/claimRetrieve the transfer for a specified domain.
Use this endpoint to track an incoming or outgoing registrar transfer and its status.
GET/api/domains/v1/transfers/{domain}Retrieve all domain transfers in your portfolio.
Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
GET/api/domains/v1/transfersTransfer a domain from another registrar to your account.
The transfer runs on a domain transfer service you have already purchased.
Before making request, unlock the domain at the current registrar and, if its TLD uses one, get its authorization code.
A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the transfer list endpoint.
If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.
Use this endpoint to bring domains registered elsewhere into your account.
POST/api/domains/v1/transfersChange WHOIS contact profile for a domain.
Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today.
Changing transfer sensitive fields on the owner contact starts an IRTP verification.
The change is processed asynchronously.
Use this endpoint to move a registered domain onto different contact information.
PUT/api/domains/v1/whois/changeSet WHOIS contact profile as default.
The default profile is pre-selected for the TLD it belongs to when registering new domains.
Use this endpoint to avoid picking contact information for every registration.
PUT/api/domains/v1/whois/default/{whoisId}Unset WHOIS contact profile as default.
The profile itself is kept, it is only no longer pre-selected for its TLD.
Use this endpoint to stop reusing contact information for new registrations.
DELETE/api/domains/v1/whois/default/{whoisId}Retrieve a WHOIS contact profile.
Use this endpoint to view domain registration contact information.
GET/api/domains/v1/whois/{whoisId}Delete WHOIS contact profile.
Use this endpoint to remove unused contact profiles from account.
DELETE/api/domains/v1/whois/{whoisId}Retrieve WHOIS contact profiles.
Use this endpoint to view available contact profiles for domain registration.
GET/api/domains/v1/whoisCreate WHOIS contact profile.
Use this endpoint to add new contact information for domain registration.
The keys required in whois_details and tld_details depend on the TLD, country and entity type, and can be
country-specific: for Lithuania, for example, state_lt and zip_lt are required instead of state and
zip. A 422 response lists every required key that is missing or has an invalid value under
errors.whois_details, and under errors.tld_details when tld_details is sent. Each error states the
key's constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be
corrected in one retry.
POST/api/domains/v1/whoisRetrieve domain list where provided WHOIS contact profile is used.
Use this endpoint to view which domains use specific contact profiles.
GET/api/domains/v1/whois/{whoisId}/usagehostinger-ecommerce-mcpWhat's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.
customcustomList a store's discounts. Filter by free text over code and name, or by disabled state. Amounts for fixed discounts are integers in the smallest currency unit; percentage discounts carry a whole-number value between 1 and 100.
GET/api/ecommerce/v1/stores/{store_id}/discountsCreate a discount for a store. Fixed discounts take an amount in the smallest currency unit (e.g. $10 is 1000); percentage discounts take a whole-number value between 1 and 100. Free-shipping discounts ignore value. Returns the created discount.
POST/api/ecommerce/v1/stores/{store_id}/discountsRetrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales channel to your store and keeping your catalog, orders, shipping and payments in sync through the Ecommerce API.
GET/api/ecommerce/v1/miscellaneous/custom-storefront-instructionsCancel the order and optionally email the customer. Returns the updated order summary.
POST/api/ecommerce/v1/stores/{store_id}/orders/{order_id}/cancelCreate a fulfilment for the order and attach tracking in one call. Omit items to fulfil every remaining unfulfilled item. Returns the updated order summary.
POST/api/ecommerce/v1/stores/{store_id}/orders/{order_id}/fulfillList a store's orders newest first as summaries. Filter by status, payment or fulfilment status, customer email, order number or a free-text query. Amounts are in the smallest currency unit. Retrieve a single order for its line items, addresses and fulfilments.
GET/api/ecommerce/v1/stores/{store_id}/ordersRetrieve one order in full: line items (each with the id the fulfil endpoint needs), addresses, the totals breakdown and fulfilments with tracking. Amounts are in the smallest currency unit.
GET/api/ecommerce/v1/stores/{store_id}/orders/{order_id}Enable a manual payment method so the store can accept orders without an online payment provider.
POST/api/ecommerce/v1/stores/{store_id}/payment-methods/manualCreate an onboarding link for connecting a payment gateway to the store. Returns the gateway onboarding URL for the merchant to open and a deep-link into the store admin.
POST/api/ecommerce/v1/stores/{store_id}/payment-providers/{provider_id}/connect-linkList a store's payment providers, split into providers already connected to the store and gateways available to install. Never exposes gateway credentials, secrets, or configuration.
GET/api/ecommerce/v1/stores/{store_id}/payment-providersReturns a signed URL to upload a product image to (multipart/form-data POST). Then call the attach-image endpoint with the returned object_name to scan and attach it to the product.
POST/api/ecommerce/v1/stores/{store_id}/products/{product_id}/images/upload-urlDelete a product and its variants from the store. A subscription product with active subscribers is archived instead of deleted so its data stays available.
DELETE/api/ecommerce/v1/stores/{store_id}/products/{product_id}Update a product's name, description, status, SEO settings or collections. Set status to published to make it buyable, draft to hide it, or archived to retire it. SEO settings (title, description, slug) left out keep their values. collection_changes adds or removes collections without touching the others. Variants, prices and inventory are managed through the variant endpoints, not here. Returns the updated product summary.
PATCH/api/ecommerce/v1/stores/{store_id}/products/{product_id}Create a published digital product with a single variant and an optional external download link.
POST/api/ecommerce/v1/stores/{store_id}/products/digitalList a store's products newest first as lean summaries (name, status, thumbnail, variant count and price range). Prices are integers in the smallest currency unit and live on variants. Filter by status, free text or a set of product ids. Use include=variants to embed each product's variants with prices and inventory, and include=media to embed its media.
GET/api/ecommerce/v1/stores/{store_id}/productsCreate a published physical product with a single variant priced in the store currency.
POST/api/ecommerce/v1/stores/{store_id}/products/physicalFetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product's primary image.
POST/api/ecommerce/v1/stores/{store_id}/products/{product_id}/imagesList a store's active sales channels with their full metadata.
GET/api/ecommerce/v1/stores/{store_id}/sales-channelsCreate a sales channel for a store. A "custom" channel is headless: build your own frontend and keep your catalog, orders, shipping and payments in sync through the Ecommerce API. A "quick-link" channel is a hosted one-page store whose handle is auto-generated.
POST/api/ecommerce/v1/stores/{store_id}/sales-channelsUpdate a custom sales channel. The merchant-facing name and the public url
(returned as the channel domain) can be changed. Pass null to clear a value.
PATCH/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
POST/api/ecommerce/v1/stores/{store_id}/shippingSoft-delete a store owned by your account.
The underlying store data is preserved; only the store is marked as deleted.
DELETE/api/ecommerce/v1/stores/{store_id}Retrieve the stores associated with your account.
GET/api/ecommerce/v1/storesCreate a new store for your account.
A primary sales channel is created alongside the store.
POST/api/ecommerce/v1/storesGet a store's readiness metadata: whether payment methods and shipping are configured, plus its default currency. Useful to verify prerequisites before building a storefront.
GET/api/ecommerce/v1/stores/{store_id}/metadataUpdate up to 100 existing variants in place by id — title, SKU, inventory, stock tracking and prices. Variants omitted from the request are left untouched. Prices replace the variant's existing prices in full. Returns the updated variants.
PATCH/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variants/batchDelete a single variant from the product.
DELETE/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variants/{variant_id}List a product's variants, ordered by rank, with their options, prices and inventory. Prices are integers in the smallest currency unit and live on variants.
GET/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variantsAdd a variant to a product along one or more option dimensions (e.g. Size, Color). Options missing from the product are created automatically; provide a value for every option the product already has. Prices are integers in the smallest currency unit and default to the store currency. Returns the created variant.
POST/api/ecommerce/v1/stores/{store_id}/products/{product_id}/variantsGet a subscription owned by your store, without signing secrets.
GET/api/ecommerce/v1/stores/{store_id}/webhooks/{endpoint_id}Delete a subscription owned by your store, retaining delivery audit records.
DELETE/api/ecommerce/v1/stores/{store_id}/webhooks/{endpoint_id}List your store's subscriptions for external automation systems, without signing secrets.
GET/api/ecommerce/v1/stores/{store_id}/webhookshostinger-gpu-mcpWhat's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.
customcustomRetrieve detailed information about a specified GPU instance, including its SSH keys.
Use this endpoint to follow the instance status after creating or deleting it.
GET/api/gpu/v1/instances/{instanceId}Delete a specified GPU instance.
The instance is destroyed asynchronously: a successful request returns immediately and the instance
status moves to destroying. Deleting fails while the instance is in created, destroying,
destroyed or abuse status, or while another action is in progress on it.
Use this endpoint to stop billing for a GPU instance you no longer need.
DELETE/api/gpu/v1/instances/{instanceId}Delete a specified exposed service of a GPU instance.
The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after.
Use this endpoint to close public access to a service on your GPU instance.
DELETE/api/gpu/v1/instances/{instanceId}/exposed-services/{exposedServiceId}Retrieve the services exposed on a specified GPU instance.
A newly created service is listed once it gets its public hostname and external port.
Use this endpoint to find the public address of services running on your GPU instance.
GET/api/gpu/v1/instances/{instanceId}/exposed-servicesExpose a service running on a specified GPU instance to the internet.
The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services.
Use this endpoint to make an application on your GPU instance publicly reachable.
POST/api/gpu/v1/instances/{instanceId}/exposed-servicesRetrieve all GPU instances of your account.
Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
GET/api/gpu/v1/instancesCreate a new GPU instance.
Pick pool_instance_id from the pool instance types list and os_template_id from the OS templates
available for that instance type. Your account must have enough credits to run the instance for its
first hour.
The instance is created asynchronously: a successful request returns immediately, and the instance
appears in the instance list while its status moves from created through creating to running.
Use this endpoint to provision GPU compute.
POST/api/gpu/v1/instancesRetrieve utilisation metrics of a specified GPU instance for the last hour.
Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned.
Use this endpoint to monitor GPU instance load.
GET/api/gpu/v1/instances/{instanceId}/metricsRetrieve the instance types offered by a specified GPU pool, ordered by CPU core count.
Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned.
Use this endpoint to choose the pool_instance_id for a new GPU instance.
GET/api/gpu/v1/pools/{poolId}/instancesRetrieve the OS templates that can be installed on a specified GPU pool instance type.
Use this endpoint to choose the os_template_id for a new GPU instance.
GET/api/gpu/v1/pools/{poolId}/instances/{poolInstanceId}/os-templatesRetrieve all available GPU pools, ordered by name.
A pool serves GPU accelerators of one model from a single region.
Use this endpoint to choose a pool before listing its instance types.
GET/api/gpu/v1/poolshostinger-hosting-mcpWhat's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.
customcustomDeploy, publish or upload a website to Hostinger web hosting (Shared, Cloud): static HTML, PHP, a nodejs (Node.js) app, a whole WordPress site, or a WordPress plugin or theme, from a local directory, an archive or a GitHub or GitLab repository. It detects what the project is and does the upload, build and Git setup itself: do not call upload or build operations, and do not archive the directory yourself. WARNING: it overwrites the website's contents and cannot be undone; confirm the domain with the user before deploying to a site that already has content. A Node.js build runs on the server: this returns a buildUuid at once, then call hosting_get-deployment until the build state is completed or failed. A plugin or theme goes into the site's WordPress installation, also when WordPress is in a folder of the document root (headless). Static, PHP, plugin and theme deploys are done when this returns; a WordPress site import only starts, and its files are extracted a few minutes later. From Git, pass type (static or nodejs) unless the site already runs a Node.js app or you pass Node.js settings; a static or PHP site deploys the branch now and again on every push; a Node.js site builds the branch now and on every later push, with the settings stored for the site (when none are stored, they are detected from the branch's package.json; pass appType, nodeVersion, outputDirectory, buildScript or entryFile to override them). Git needs GitHub or GitLab connected once in hPanel.
customcustomCheck deployment status, build status, build logs and why a build failed (failure analysis) for a website's nodejs (Node.js) deployment: the state of its latest build (or of buildUuid), the end of the build log, the failure analysis when the build failed, and the build settings and Git auto-deployment settings stored for the site. Use it after hosting_deploy starts a Node.js build, and to find out why a deployment failed. Poll until the build state is completed or failed, with growing pauses. The log comes back in full; pass fromLine (the lines count from the previous call) to read only new output. A website without Node.js builds returns build: null with an explanation, because static, PHP, plugin and theme deploys are complete when hosting_deploy returns, and a WordPress site import is ready a few minutes after it starts.
customcustomRead a website's SSL certificate, HTTPS redirect, CDN and server cache settings in one call. ssl is the SSL status as hosting_ssl_status returns it: the certificate status (active, installing, waiting_for_retry, failed, expired or not_installed) and provider, whether it is a lifetime certificate, whether HTTP is redirected to HTTPS, when it expires and the last installation error. cdn.is_enabled says whether the Hostinger CDN serves the website. cache.is_enabled says whether server-side caching is on, and cache.is_cacheless_mode_enabled whether development (cacheless) mode bypasses it. Use it before hosting_websites_update-settings, and to follow an SSL installation started by hosting_ssl_install: poll until ssl.status is active or failed, with growing pauses. A section that cannot be read comes back as { error } and the others are still returned; cache is null with a cacheNote when cache status is not available. To install or remove a certificate use hosting_ssl_install or hosting_ssl_uninstall. Works for Shared and Cloud hosting websites.
customcustomChange a website's HTTPS redirect, CDN and server cache settings in one call. Pass only the settings to change, at least one. Settings are applied in the order cache, cachelessMode, cdn, httpsRedirect, and the call stops at the first failure. applied lists the settings that were changed. When a setting fails, the call returns an error whose text is the same JSON: failed names the setting and why, and skipped lists the ones not attempted; a multi-execute batch stops there too. Turning httpsRedirect on needs an active SSL certificate: the call checks it first and changes nothing when there is none. Install one with hosting_ssl_install and wait until hosting_websites_get-settings shows ssl.status active. cachelessMode is applied in the background and takes effect within a few minutes; enabling the CDN changes DNS records, so visitors are served through it after a few minutes of propagation. Certificates are not installed or removed here: use hosting_ssl_install and hosting_ssl_uninstall. Read the current values with hosting_websites_get-settings. Works for Shared and Cloud hosting websites.
customcustomClear a website's server cache (the hosting server's page cache) and Hostinger CDN cache, so updated content shows at once. By default (scope: all) it clears the server cache and, when the CDN is on, purges the CDN too. scope: cdn purges only the CDN edge cache and leaves the server cache alone; that fails with 422 when the CDN is off. For a WordPress site installed in a subdirectory, pass directory to clear that installation's cache (only with scope all). This does not purge the WordPress LiteSpeed Cache plugin: that is a separate WordPress operation (wordpress_litespeed-cache_purge-lite-speed). To turn caching or the CDN on or off use hosting_websites_update-settings. Works for Shared and Cloud hosting websites.
customcustomChange a website's PHP version, extensions and php.ini options in one call. Pass only what to change, at least one of version, resetExtensions, extensions and options. Steps run in the order version, resetExtensions, extensions, options, and the call stops at the first failure. applied lists the steps that ran. When a step fails, the call returns an error whose text is the same JSON: failed names the step and why, and skipped lists the ones not attempted; a multi-execute batch stops there too. WARNING: changing the version resets the website's extensions (PHP 8.0 and later) and its options to their defaults, so pass the extensions and options to keep in the same call; they are applied after the version. Option values above the plan limit are capped silently: read the applied values back with hosting_php_get, which also lists the available versions, extensions and options. Works for Shared and Cloud hosting websites.
customcustomList the extra domains of a website: its parked (alias) domains, which show the same site under another domain name, and its subdomains (e.g. blog.example.com), with each one's root directory. parked items have domain (a domain name or an IP address) and type (domain or ip); subdomains items have domain (the full name), subdomain (the prefix) and root_directory. A list that cannot be read comes back as { error } and the other is still returned. To add or remove one use hosting_websites_add-domain or hosting_websites_remove-domain. Works for Shared and Cloud hosting websites.
customcustomAdd a domain to an existing website: type parked adds a parked (alias) domain, a second domain name (or an IP address) that shows the same site; type subdomain creates a subdomain such as blog.example.com with its own directory. For a parked domain the domain must be owned by the account or already point to the website: check a domain from outside the account with hosting_domains_verify-ownership first. www belongs to the main domain: do not add it as a subdomain. To create a new website use hosting_websites_create instead. Works for Shared and Cloud hosting websites.
customcustomRemove a parked (alias) domain or a subdomain from a website. Pass its name as hosting_websites_list-domains shows it: a parked domain, or a subdomain's full name or prefix; the tool finds which one it is. To delete a whole website use hosting_websites_delete. Works for Shared and Cloud hosting websites.
customcustomTell Hostinger that something happened on this website, so Hostinger services such as hPanel can react to it. event.name picks the event and decides which event.params it takes. The call changes nothing on the website.
customcustomReturns the list of cron jobs configured for the specified account, including their schedule and command.
GET/api/hosting/v1/accounts/{username}/cron-jobsCreates a cron job for the specified account from a schedule expression and a command.
Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
POST/api/hosting/v1/accounts/{username}/cron-jobsPermanently deletes the cron job identified by its uid.
The uid is returned by the list cron jobs endpoint.
DELETE/api/hosting/v1/accounts/{username}/cron-jobs/{uid}Returns the output captured from the last execution of the cron job identified by its uid.
The uid is returned by the list cron jobs endpoint.
GET/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/outputChanges the password for the specified database user.
The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
PATCH/api/hosting/v1/accounts/{username}/databases/{name}/change-passwordReturns a paginated list of databases for the specified account.
Use the domain and is_assigned filters to find databases assigned to a specific domain.
GET/api/hosting/v1/accounts/{username}/databasesCreates a database with a database user and password for the specified account.
The database name and user are automatically prefixed with the account username when needed.
POST/api/hosting/v1/accounts/{username}/databasesPermanently deletes a database and its remote connections.
The database name must be the full name returned by the list databases endpoint.
DELETE/api/hosting/v1/accounts/{username}/databases/{name}Allows a remote host to connect to the specified database.
Provide an IPv4/IPv6 address, or "%" to allow any host. The database name must be the full name returned by the list databases endpoint. Database creation is synchronous, so a 404 here means no database with that name exists under the username, not that it is still being created.
POST/api/hosting/v1/accounts/{username}/databases/{name}/remote-connectionsPermanently removes a remote-access rule, revoking the given host's remote access to the database.
Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or "%", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
DELETE/api/hosting/v1/accounts/{username}/databases/{name}/remote-connectionsReturns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or "%" for any host) allowed to connect to the account databases.
Use the domain filter to only return rules for databases assigned to a specific domain.
GET/api/hosting/v1/accounts/{username}/databases/remote-connectionsRepairs corrupted database tables asynchronously.
Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
PATCH/api/hosting/v1/accounts/{username}/databases/{name}/repairCreates a new MySQL database for the website and writes its connection details into the website's environment variables, then restarts the application. The platform generates the password (and the database name and user, unless supplied). The password is never returned; the application reads it from the environment.
Written variables: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD and
DATABASE_URL (mysql://user:password@host:port/name, user and password percent-encoded).
Existing variables are kept. If the website already has any variable with one of these
names the call fails with 422 and nothing is created; the Replace Node.js environment variables endpoint removes them.
After this call the variables are ordinary environment variables: the
Replace Node.js environment variables endpoint changes or removes them like any other.
A restart is enough for apps that read environment variables at process start, such as
Express or NestJS. Frameworks that bake variables into the build output (Next.js,
NEXT_PUBLIC_*) see the new values only after a fresh build (Start Node.js build endpoint).
A password in the request is ignored; the platform always generates it. The optional name
and user are identifiers, not secrets.
POST/api/hosting/v1/accounts/{username}/websites/{domain}/databases/setupReturns a direct sign-on link to phpMyAdmin for the specified database.
Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
GET/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-linkRetrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
GET/api/hosting/v1/datacentersVerify ownership of a single domain and return the verification status.
Use this endpoint to check if a domain is accessible for you before using it for new websites.
If the domain is accessible, the response will have is_accessible: true.
If not, add the given TXT record to your domain's DNS records and try verifying again.
Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.
Skip this verification when using Hostinger's free subdomains (*.hostingersite.com).
POST/api/hosting/v1/domains/verify-ownershipList files and directories under a website's document root.
Use directory to browse a subdirectory relative to the document root. Symlinked entries
are listed but never traversed into or resolved.
GET/api/hosting/v1/accounts/{username}/domains/{domain}/filesGet a single file's content, relative to a website's document root.
Read-only; refuses symlinks, oversized files, non-text file types, and files identified as containing secrets (e.g. credential files) — none of these are returned by this endpoint.
GET/api/hosting/v1/accounts/{username}/domains/{domain}/files/contentRemoves the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
DELETE/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settingsClones a Git repository into a directory of the website, or pulls it again. An empty or missing
directory gets a clone of the branch. A directory that already holds this repository and branch is
reset to its last commit and pulled: changes made on the server to files the repository tracks are
discarded, files it does not track stay. A directory that holds other files, including another
repository or another branch of this one, is rejected. composer install runs after the clone or
pull when the repository has a composer.json.
The call waits for the deployment and returns its log. is_success false means Git or composer
failed and the log says why. A second call for the same directory is rejected while the first is
still wai
Dynamic and reflective problem-solving through thought sequences
MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star
Model Context Protocol(MCP) 编程极速入门
LIliaokongVFX/MCP-Chinese-Getting-Started-Guide3.6k近 7 天新增 2 个 star
Gives AI agents the function they asked for, not the file. Commercial use needs a license.
JGjgravelle/jcodemunch-mcp2.9k近 7 天新增 4 个 star
Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
PApatruff/ollama-mcp-bridge984