Get a deployment's script
GET
Returns the install script a deployment runs: the template's, or the edited one it was deployed with.
Access: API key: vm:read · Session: any member. An edited script may contain secrets, so it is shown only to a signed-in workspace owner or admin, or the person who bought the server (403 otherwise).
header
AuthorizationBearer <token>Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.
id*stringThe resource id.
X-Org-ID?stringSessions only: act on this organization (you must be a member). Default: your first organization.
The script
application/json- response
deployment_id*stringcustomized*booleanscript*stringThe install script (without Layerbeat's header).
curl -X GET 'https://layerbeat.com/v1/deployments/string/script'{ "deployment_id": "dep_7m2k9q4w8x3z5t6v1b0n2h4ra", "customized": true, "script": "domain=$(lb_input domain)\n...\nlb_ok \"https://$domain\""}