---
title: "Wake Workspace"
method: POST
path: "/agent-loop/workspaces/{workspace_id}/wake"
tags: ["agent-loop"]
---

# Wake Workspace

`POST /agent-loop/workspaces/{workspace_id}/wake`

Ensure the sandbox is running. Returns its current URL.

For Electron workspaces returns 'electron' immediately (no E2B calls).
For E2B workspaces: health-checks the shared sandbox and recreates it if unhealthy.

## Path parameters

- `workspace_id` string, required

## Response `200`

Successful Response

- WakeWorkspaceResponse
  - `sandbox_url` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/tryscott/apis/one-shot-api.md) · [All operations](https://skmtc.net/tryscott/apis/one-shot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryscott/one-shot-api/versions/28bdface01df/schema)
