Skip to main content

To generate API keys for accessing our API services, please follow these steps:

  1. Log in to your client area using your HostingRaja credentials.
  2. From the left-side menu, click on the “API” option.
  3. Click on the button provided to generate a payment link for making a security deposit.
  4. Once you click the button to pay the security deposit, a payment link will be generated. You can then proceed to complete the payment by clicking on the link provided.
  5. To access our API, you need to whitelist your IP address by providing a comma-separated list of your IP addresses.

Once you generated the authorization token & secret key. You need to whitelist your IP address separated by comma to access our API

Note : Please note that if you do not whitelist your IP address using the above steps, you will not be able to connect to our API
API Access URL: https://www.hostingraja.in/api Authentication You have to pass your auth token & secret key to each API request. For that use the below post request method for all API. Post Request : Example Request (CURL):
Get Available Images This API will provide a list of Operating Systems that we offer for creating Cloud Servers. Post Request : Example Request (CURL):
Response Format: The API will respond with JSON data. Example response data:
Create Server The Cloud deployment API streamlines the process of setting up and managing your Cloud infrastructure. It’s fast, flexible, and secure, with built-in scalability and redundancy features. Whether you’re deploying a small or large-scale Cloud environment, the Cloud deployment API makes it easy to get started and achieve your goals. Post Request : Example Request (CURL):
Response Format: The API will respond with JSON data. Example response data:
Get My Servers This API returns a list of servers that were created using the API request. Post Request : Example Request (CURL):
Response Format: The API will respond with JSON data. Example response data:
getMaxServerCount This API allocates a specified number of servers for creation, with a maximum limit of 10. Post Request : Example Request (CURL):
Response Format: The API will respond with JSON data. Example response data:
stopServer With this API, you can initiate a server stop action to gracefully shut down your server. This API ensures that all processes are terminated and any pending data is saved before shutting down the server. Post Request : Example Request (CURL):
Response Format: The API will respond with JSON data. Example response data:
startServer This API allows you to start your server after it has been stopped or shut down. The API initiates the boot process of the server, allowing it to become operational again. Post Request : Example Request (CURL)
Response Format: The API will respond with JSON data. Example response data:
rebootServer Use this API to initiate a server reboot. When you reboot your server, it shuts down and then automatically starts back up, allowing any pending updates or changes to take effect. Post Request : Example Request (CURL)
Response Format: The API will respond with JSON data. Example response data:
suspendServer This API initiates a server suspension action, which saves the current state of the server and stops all processes, allowing you to temporarily halt your server. When you’re ready to resume operations, you can use the start API to boot the server backup and restore its state to the point of suspension. Post Request : Example Request (CURL)
Response Format: The API will respond with JSON data. Example response data:
unsuspendServer Use this API to unsuspend your server. When a server is suspended, it is in a halted state, and all processes are stopped. Using the unsuspend API initiates the process of resuming the server, allowing you to restore the state of the server to the point at which it was suspended. Post Request : Example Request (CURL) Response Format: The API will respond with JSON data. Example response data:
terminateServer This API allows you to initiate a server termination action, which permanently deletes the server and all associated data. It is an irreversible action, so be sure to take any necessary backups or data exports before proceeding with the termination. Post Request : Example Request (CURL)
Response Format: The API will respond with JSON data. Example response data:
Recreate Server This API will be used to recreate your server. It will delete the current server and create a new server with the same configuration. So make sure that you have taken backup of the current server, before proceeding with the recreate server. Post Request : Example Request (CURL):
Response Format: The API will respond with JSON data. Example response data: