---
title: "Archive a memory store (one-way, idempotent) [write]"
method: POST
path: "/memory_stores/{store_id}/archive"
---

# Archive a memory store (one-way, idempotent) \[write\]

`POST /memory_stores/{store_id}/archive`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/memory_stores/{store_id}/archive`
- Auth: HTTP bearer

## Path parameters

- `store_id` string, required

## Response `200`

Archived memory store

- object
  - `memory_store` MemoryStore, required
    - `id` string, required: memstore_…
    - `object` 'memory_store', required
    - `name` string, required
    - `description` string, required
    - `attach_by_default` 'none' | 'read_only', required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `archived_at` string, date-time, nullable, required

## Other responses

- `404`: Error — { error: { code, message } }
- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 2 info
  - added the optional property `error/request_id` to the response with the `404` status
  - added the optional property `error/request_id` to the response with the `default` status

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/memory_stores/:store_id/archive/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
