Get Virtualizor

OS Template

Use OS Template API to reinstall VPS with new OS template.

HTTP Request



actGETostemplateThe action which will return data belonging to a particular pageYes
svsPOSTVPSIDProvide vpsid of which you want the information.Yes
newosPOSTintProvide OS Template ID that you want to install on VPS.No
newpassPOSTtextProvide password of the reinstalled VPS.No

Note: If you will not provide newos and newpass than it will return all available templates.

Sample Code


    $host_ip  = '';
    $key      = '4CAOZECAC3MJHMAM';
    $key_pass = 'b5s52pkfqlsn3c9jlvtt4zdkevuatfne';
    $v = new Virtualizor_Enduser_API($host_ip, $key, $key_pass);
	$vid = 6710;//vps id
	$newosid = 334;
	$newpass= 'test@1234';
	$vps = $v->ostemplate($vid,$newosid,$newpass);

For curl the newpass and conf parameter should have same password.


curl -k -X POST -d "reinsos=Reinstall&newos=334&newpass=password&conf=password" -L "https://hostname:4083/index.php?act=ostemplate&svs=6710&api=json&apikey=your_api_key&apipass=your_api_pass"


   "timenow":"July 24, 2019, 2:44 pm",
      "msg":"The OS reinstall process has been started in the background",
         "desc":"CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor.\r\n<br \/>\r\n<br \/>\r\nCentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. CentOS mainly changes packages to remove upstream vendor branding and artwork.  \r\n<br \/>\r\n<br \/>\r\nCentOS is developed by a small but growing team of core developers. CentOS is free.",
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list