---
title: Fetch an agent run snapshot
description: Returns run metadata plus latestSeq (the highest durably-appended event seq).
api_method: GET
api_path: "/v1/agent-runs/{runId}"
canonical_url: https://wiblo.app/docs/developers/api/agent-runs/get-agent-run
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-runs/get-agent-run.md
---

# Fetch an agent run snapshot

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

Returns run metadata plus `latestSeq` (the highest durably-appended event `seq`). Cross-tenant probes and unknown ids collapse onto the same 404 `AGENT_RUN_NOT_FOUND` envelope (no existence leak). 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} \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

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

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

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

## Responses

**`200`** — The run snapshot. Returns `AgentRunResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `run` | `AgentRun` | Yes |  |
| `defaultThreadId` | `string \| null` | No | Defaults to `null`. |
| `latestSeq` | `integer` | Yes |  |
| `eventsUrl` | `string` | Yes |  |
| `usage` | `AgentRunUsageSummary` | 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 AgentRun object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes |  |
| `workspaceId` | `string` | Yes |  |
| `siteId` | `string \| null` | Yes |  |
| `provider` | `object` | Yes |  |
| `status` | `"pending" \| "running" \| "idle" \| "awaiting_approval" \| "awaiting_input" \| "completed" \| ...` | Yes |  |
| `model` | `string \| null` | Yes |  |
| `branch` | `string \| null` | Yes |  |
| `source` | `AgentRunSource` | No |  |
| `createdBy` | `string` | Yes |  |
| `createdAt` | `string` | Yes |  |
| `updatedAt` | `string` | Yes |  |
| `completedAt` | `string \| null` | Yes |  |

### The AgentRunUsageSummary object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `inputTokens` | `integer` | Yes |  |
| `cachedInputTokens` | `integer` | Yes |  |
| `cacheCreationInputTokens` | `integer` | Yes |  |
| `outputTokens` | `integer` | Yes |  |
| `reasoningTokens` | `integer` | Yes |  |
| `totalCostUsd` | `number \| null` | Yes |  |
| `turns` | `integer` | Yes |  |

### The AgentRunSource object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | `"scratch" \| "template" \| "repo" \| "github"` | Yes |  |
| `repoId` | `string \| null` | No | Defaults to `null`. |
| `repo` | `string \| null` | No | Defaults to `null`. |
| `ref` | `string \| null` | No | Defaults to `null`. |
| `folder` | `string \| null` | No | Defaults to `null`. |
| `lastSyncedSha` | `string \| null` | No | Defaults to `null`. |
