POST /starhost/deployments— Create a new deploymentGET /starhost/deployments/{id}— Get deployment statusPOST /starhost/deployments/{id}/rollback— Roll back to a previous deployment
Create a deployment
Trigger a new deployment for one of your Starhost sites. You can optionally provide asource_url pointing to an archive of files that Starhost should fetch and deploy, or omit it to redeploy the site’s most recently uploaded content.
Endpoint
Request parameters
The unique identifier of the Starhost site you want to deploy. You can find this in the Verbosec Cloud dashboard under your site’s settings.
A publicly accessible URL pointing to a
.zip or .tar.gz archive of the site files to deploy. If omitted, Starhost redeploys the site’s most recent content.The target environment for this deployment. Accepted values are
"production" and "preview". Defaults to "production". Use "preview" to test changes before going live.Example request
create-deployment.sh
Example response
create-deployment-response.json
Get deployment status
Retrieve the current status of a specific deployment. Poll this endpoint to track a deployment’s progress frompending through to published or failed.
Endpoint
Path parameters
The unique identifier of the deployment, returned when you created it.
Example request
get-deployment.sh
Example response
get-deployment-response.json
Deployment status values
Status reference
Status reference
| Status | Description |
|---|---|
pending | The deployment has been queued and is waiting to start. |
building | Starhost is currently building and processing the site files. |
published | The deployment completed successfully and the site is live. |
failed | The deployment encountered an error. Check the dashboard logs for details. |
Roll back a deployment
Revert a site to the state of a previous successful deployment. This is useful when a newly published deployment introduces unexpected issues and you need to restore the last known good version quickly. EndpointPath parameters
The unique identifier of the deployment you want to roll back to. This should be the ID of the previously published deployment you want to restore.
Example request
rollback-deployment.sh
Example response
rollback-response.json
Error responses
400 Bad Request — Missing required field
400 Bad Request — Missing required field
Returned when a required body parameter such as
site_id is missing from a create deployment request.400-response.json
404 Not Found — Deployment not found
404 Not Found — Deployment not found
Returned when the deployment
id in the path does not match a deployment on your account.404-response.json
401 Unauthorized
401 Unauthorized