---
title: "Most recent succeeded run for a context"
method: GET
path: "/api/v1/contexts/{context_id}/analyses/active"
tags: ["analyses"]
---

# Most recent succeeded run for a context

`GET /api/v1/contexts/{context_id}/analyses/active`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/contexts/{context_id}/analyses/active`
- Auth: none declared

Returns 404 when the context has no succeeded run yet.

## Path parameters

- `context_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- AnalysisRow: One row in list / single-fetch responses. Fields mirror ``MemoryAnalysis`` columns the API contract surfaces (#496 spec). Internal columns like ``model_snapshot`` are omitted on purpose — the snapshot is a debugging artifact, not part of the public contract, and adds ~500B per row to the list payload. ``validation_alias="id"`` (input-only) maps the ORM column ``id`` → ``run_id`` field while keeping the wire-format key as ``run_id`` for clients (matches the issue spec naming).
  - `run_id` unknown, required
  - `workspace_id` unknown, required
  - `context_id` unknown, required
  - `status` unknown, required
  - `triggered_by` unknown, required
  - `started_at` unknown, required
  - `finished_at` unknown, required
  - `input_count` unknown, required
  - `cost_estimated_cents` unknown, required
  - `cost_actual_cents` unknown, required
  - `error` unknown, required
  - `cancellation_reason` unknown, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/aa9df1a21db9?raw)
