Hostinger VPS API enables easy and efficient management of your Virtual Private Server directly via API requests. This guide explains how to set up and use the Hostinger VPS API using Postman.
Install Postman
If you haven't already, download and install Postman on your system.
Import the Hostinger API collection
Open Postman.
Click Collections on the left sidebar.
Click Import at the top-left.
Choose the Link tab.
Paste the Hostinger API collection URL:
https://www.postman.com/hostinger-api/hostinger/collection/1jnj25h/hostinger-api
Click Continue, then Import.
The Hostinger API collection is now imported and ready to use.
Configure your API key
Within Postman, click on the imported Hostinger API collection.
Click the Variables tab.
Add your Hostinger API key to the
api_key
variable:
Name:
api_key
Value: Paste your Hostinger API key.
Note: You can find your API key in your Hostinger account settings.
Making Your First API Request
Under the imported collection, navigate to the VPS folder.
Select an endpoint you wish to use, for example, "List all VPS instances."
Click Send.
Postman will perform the API request, and you'll see the JSON response in the response section.
You have now successfully integrated and tested Hostinger VPS API with Postman. Utilize this setup to manage your VPS resources programmatically and efficiently.
If you want more support or questions, please refer to the official Hostinger API documentation.