Authorization: Bearer <token> header or an active cookie session with a CSRF token.
Launch a Web Server
Path Parameters
string
required
The ID of the project that will own this web server.
Body Parameters
string
required
Display name for the web server. Used in the dashboard and to derive the service subdomain.
string
required
GitHub repository full name in
owner/repo format (e.g. acme/storefront). The Springwinter GitHub App must already be installed on this repository.string
required
Git branch to build and deploy (e.g.
main).string
Shell command Springwinter runs inside the container build context (e.g.
npm run build). Omit if your Dockerfile handles the build step internally.string
default:"/"
HTTP path the load balancer uses for health checks. Must return
200 OK for the service to become healthy (e.g. /healthz).integer
required
ECS task CPU units. Valid values:
256, 512, 1024, 2048, 4096.integer
required
ECS task memory in MiB. Must be a valid combination for the chosen
cpu value per AWS Fargate sizing rules.boolean
default:"false"
When
true, Springwinter automatically redeploys the service on every push to the configured branch.Response — 201 Created
Get a Web Server
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Response
Update a Web Server
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Body Parameters
string
Switch deployments to a different Git branch.
string
Updated build command.
string
Updated health check path.
integer
Updated CPU units. Triggers a task-definition replacement and rolling redeploy.
integer
Updated memory in MiB.
boolean
Enable or disable automatic deployments on push.
Response
Returns the updated web server object with"status": "deploying" if a redeploy was triggered.
Delete a Web Server
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server to delete.
Response — 204 No Content
An empty body on success.
Redeploy a Web Server
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Response — 202 Accepted
Get Logs
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Response
Get Metrics
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Response
Get Cost Estimate
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Response
Get Environment Variables
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Response
Replace Environment Variables
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Body Parameters
array
required
Array of
{ "name": string, "value": string } objects. This list fully replaces the existing environment — any variable not included in the request is removed.Response — 202 Accepted
Previews
Each web server can have multiple branch preview deployments. Every preview gets its own isolated URL, environment variables, and ECS task — it does not share compute with the production deployment.Create a Preview
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
Body Parameters
string
required
The Git branch to build and deploy as a preview.
201 Created
Get a Preview
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
string
required
The unique ID of the preview deployment.
Response
Delete a Preview
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
string
required
The unique ID of the preview deployment to delete.
Response — 204 No Content
An empty body on success.
Preview Logs
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
string
required
The unique ID of the preview deployment.
Response
Preview Metrics
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
string
required
The unique ID of the preview deployment.
Response
Preview Environment Variables
Path Parameters
string
required
The ID of the project that owns the web server.
string
required
The unique ID of the web server.
string
required
The unique ID of the preview deployment.