---
title: "Prewarm a run's sandbox on typing intent"
description: "Boot-ahead on user intent (WIBLO-159/160): fired when the user starts composing a message to a run whose sandbox may have idle-stopped, so the resume happens while they type."
api_method: POST
api_path: "/v1/agent-runs/{runId}/prewarm"
canonical_url: https://wiblo.app/docs/developers/api/agent-runs/prewarm-agent-run
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-runs/prewarm-agent-run.md
---

# Prewarm a run's sandbox on typing intent

`POST /v1/agent-runs/{runId}/prewarm`

Boot-ahead on user intent (WIBLO-159/160): fired when the user starts composing a message to a run whose sandbox may have idle-stopped, so the resume happens while they type. `live` — a warm session already holds the run. `starting` — a background boot-only workflow was started. `busy` — a turn (or a prior prewarm) already owns the run, and its boot doubles as the prewarm. Idempotent and safe to repeat; never returns sandbox handles. Per-user rate-limited at 10/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `runId` | `string` | Yes |  |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/agent-runs/{runId}/prewarm \
  -X POST \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

```ts
import { createSdk, prewarmAgentRun } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await prewarmAgentRun({
  client: sdk,
  path: { runId: "..." },
})
```

## Responses

**`200`** — The prewarm state for the run. Returns `PrewarmAgentRunResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `runId` | `string` | Yes |  |
| `status` | `"live" \| "starting" \| "busy"` | Yes |  |

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`404`** — No run visible to the caller with this id (`AGENT_RUN_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`409`** — The run has ended (`AGENT_RUN_ENDED`) — ended runs never reprovision. Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.
