---
title: "Retrieve and decrypt a stored value"
method: GET
path: "/v1/agent/memory/{ns}/{key}"
tags: ["Agent Memory"]
---

# Retrieve and decrypt a stored value

`GET /v1/agent/memory/{ns}/{key}`

## Path parameters

- `ns` string, required
- `key` string, required

## Response `200`

Decrypted value

- object
  - `namespace` string
  - `key` string
  - `value` unknown
  - `value_type` string
  - `size_bytes` integer
  - `created_at` string
  - `updated_at` string
  - `expires_at` string, nullable

## Other responses

- `401` — Invalid or missing X-Agent-Key header
- `404` — Key not found

---

[API](https://skmtc.net/voidly/apis/voidly-api.md) · [All operations](https://skmtc.net/voidly/apis/voidly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voidly/voidly-api/revisions/decbe6fd40a8/schema)
