> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/api-reference/endpoints/vps/virtual-machine/setup-purchased-virtual-machine.md).

# Setup purchased virtual machine

Setup newly purchased virtual machine with initial state. Use this endpoint to configure and initialize purchased VPS instances.

{% openapi src="<https://developers.hostinger.com/openapi/openapi.json>" path="/api/vps/v1/virtual-machines/{virtualMachineId}/setup" method="post" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
