VPS: Post-install scripts
Get post-install script
Retrieve post-install script by its ID.
Use this endpoint to view specific automation script details.
get/api/vps/v1/post-install-scripts/{postInstallScriptId}
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/vps/v1/post-install-scripts/{postInstallScriptId}
- Auth: HTTP bearer
Path parameters
postInstallScriptIdinteger required
Example:9568314
Post-install script ID
Response
Success response
Example response
{
"id": 325,
"name": "My Setup Script",
"content": "#!/bin/bash\\napt-get update\\napt-get install -y nginx",
"created_at": "2025-02-27T11:54:22Z",
"updated_at": "2025-03-19T11:54:22Z"
}Changes
No recorded changes to this operation across all 130 revisions of this API.