Authorization: Bearer <token> header or an active cookie session with a CSRF token.
Launch a Worker
Path Parameters
string
required
The ID of the project that will own this worker.
Body Parameters
string
required
Display name for the worker. Used in the dashboard and CloudWatch log group names.
string
required
GitHub repository full name in
owner/repo format (e.g. acme/jobs). The Springwinter GitHub App must already be installed on this repository.string
required
Git branch to build and deploy (e.g.
main).string
required
Shell command Springwinter uses as the container entry point (e.g.
node dist/worker.js or python -m myapp.worker).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 worker on every push to the configured branch.Workers have no public URL. There is no
health_path field — Springwinter does not register workers with a load balancer or expose them to inbound traffic.Response — 201 Created
Get a Worker
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
Response
Update a Worker
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker to update.
Body Parameters
string
Switch deployments to a different Git branch.
string
Updated container entry point command.
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 worker object with"status": "deploying" if a redeploy was triggered.
Delete a Worker
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker to delete.
Response — 204 No Content
An empty body on success.
Redeploy a Worker
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
Response — 202 Accepted
Get Logs
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
Response
Get Metrics
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
Response
Get Cost Estimate
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
Response
Get Environment Variables
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
Response
Replace Environment Variables
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
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
Workers support branch preview deployments. Each preview runs an isolated ECS task from a different branch, which is useful for testing queue consumers, data pipelines, or cron job logic against a staging environment before merging.Create a Preview
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
Body Parameters
string
required
The Git branch to build and deploy as a preview worker.
201 Created
Worker previews do not have a public URL. You can distinguish preview traffic from production traffic by setting a dedicated environment variable (e.g.
PREVIEW=true) when creating the preview, or by routing to a separate queue.Get a Preview
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
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 worker.
string
required
The unique ID of the worker.
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 worker.
string
required
The unique ID of the worker.
string
required
The unique ID of the preview deployment.
Response
Preview Metrics
Path Parameters
string
required
The ID of the project that owns the worker.
string
required
The unique ID of the worker.
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 worker.
string
required
The unique ID of the worker.
string
required
The unique ID of the preview deployment.