Get post-install script
Retrieve post-install script by its ID. Use this endpoint to view specific automation script details.
Retrieve post-install script by its ID.
Use this endpoint to view specific automation script details.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
postInstallScriptIdintegerRequiredExample:
Post-install script ID
9568314Responses
200
Success response
application/json
idintegerOptionalExample:
Post-install script ID
325namestringOptionalExample:
Name of the script
My Setup ScriptcontentstringOptionalExample:
Content of the script
#!/bin/bash\napt-get update\napt-get install -y nginxcreated_atstring · date-timeOptionalExample:
2025-02-27T11:54:22Zupdated_atstring · date-timeOptionalExample:
2025-03-19T11:54:22Z401
Unauthenticated response
application/json
500
Error response
application/json
get/api/vps/v1/post-install-scripts/{postInstallScriptId}
GET /api/vps/v1/post-install-scripts/{postInstallScriptId} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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"
}Last updated
Was this helpful?