---
title: "Fetch an agent run's runtime status"
description: "Returns the run's host-agnostic execution target and gateway health without exposing sandbox internals: target type (cloud/local), runtime, operational status, gatewayReachable, and machineOffSafe."
api_method: GET
api_path: "/v1/agent-runs/{runId}/runtime-status"
canonical_url: https://wiblo.app/docs/developers/api/agent-runs/get-agent-run-runtime-status
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-runs/get-agent-run-runtime-status.md
---

# Fetch an agent run's runtime status

`GET /v1/agent-runs/{runId}/runtime-status`

Returns the run's host-agnostic execution target and gateway health without exposing sandbox internals: target `type` (`cloud`/`local`), `runtime`, operational `status`, `gatewayReachable`, and `machineOffSafe`. `machineOffSafe` is true for cloud runs (the workflow supervisor keeps them alive while the user's machine is off) and false for local runs. Cross-tenant probes and unknown ids collapse onto the same 404 `AGENT_RUN_NOT_FOUND` envelope. Per-user rate-limited at 120/60s.

## Path parameters

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

## Request

**curl**

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

**TypeScript**

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

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

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

## Responses

**`200`** — The run's target + gateway health summary. Returns `AgentRuntimeStatus`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `runId` | `string` | Yes |  |
| `target` | `AgentRuntimeStatusTarget` | Yes |  |
| `needsReprovision` | `boolean` | No | Defaults to `false`. |
| `snapshot` | `AgentRunSnapshotStatus` | No |  |

**`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`.

**`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`.

### The AgentRuntimeStatusTarget object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | `"cloud" \| "local"` | Yes |  |
| `runtime` | `"vercel-sandbox" \| "desktop-sidecar"` | Yes |  |
| `status` | `"provisioning" \| "active" \| "disconnected" \| "hibernating" \| "hibernated" \| "failed" \| ...` | Yes |  |
| `gatewayReachable` | `boolean` | Yes |  |
| `machineOffSafe` | `boolean` | Yes |  |
| `deviceId` | `string \| null` | No | Defaults to `null`. |
| `sandbox` | `AgentSandboxConfig` | No |  |

### The AgentRunSnapshotStatus object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `available` | `boolean` | Yes |  |
| `expiresAt` | `string \| null` | No | Defaults to `null`. |

### The AgentSandboxConfig object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `runtime` | `string \| null` | No | Defaults to `null`. |
| `vcpus` | `integer \| null` | No | Defaults to `null`. |
| `timeoutMs` | `integer \| null` | No | Defaults to `null`. |
