Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS → Purchase New VPS

AI-generated

Overview

This node operation allows users to purchase a new VPS (Virtual Private Server) through the Hostinger API. It is useful for automating the provisioning of VPS instances with specific configurations such as template, data center, post-install scripts, passwords, hostname, backups, nameservers, and SSH public keys. Practical examples include setting up a new VPS for web hosting, development environments, or testing servers with predefined settings and payment methods.

Use Case Examples

  1. Automate VPS purchase with specific OS template and data center.
  2. Set up VPS with custom hostname, root password, and enable backups.
  3. Purchase VPS using a specific payment method and apply discount coupons.

Properties

Name Meaning
Request Body Raw JSON body for the POST request to purchase a new VPS, including item ID, payment method ID, setup details (template ID, data center ID, post-install script ID, password, hostname, Monarx installation flag, backup enable flag, nameservers, and public SSH key), and optional coupons.

Output

JSON

  • response - The JSON response from the Hostinger API after purchasing the VPS, containing details about the newly created VPS instance.

Dependencies

  • Hostinger API authentication credential

Troubleshooting

  • Ensure the JSON in the Request Body is correctly formatted and includes all required fields such as item_id, payment_method_id, and setup details.
  • Verify that the payment method ID and item ID are valid and active in the Hostinger account.
  • Check for API authentication errors and ensure the Hostinger API credential is correctly configured in n8n.
  • If the API returns an error, review the error message in the node output to identify missing or invalid parameters.

Links

Discussion