---
title: "Get Agent State"
method: GET
path: "/api/v1/contexts/{context_id}/state/{key}"
tags: ["agent-state"]
---

# Get Agent State

`GET /api/v1/contexts/{context_id}/state/{key}`

## 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}/state/{key}`
- Auth: none declared

Read one key's live value. 404 when absent or expired.

## Path parameters

- `context_id` string, uuid, required
- `key` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- AgentStateValueResponse: Envelope for a single-key read.
  - `key` string, required
  - `value` 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)
