---
title: "A store’s image memories, newest first"
method: POST
path: "/api/v1/memory/images"
tags: ["memory"]
---

# A store’s image memories, newest first

`POST /api/v1/memory/images`

## Request

- Base URL: `https://api.wontopos.com`
- URL: `https://api.wontopos.com/api/v1/memory/images`
- Auth: API key in header `X-API-Key`

Cursor paging, never an offset: hand `next_before` and `next_skip_ids` back as `before` and `skip_ids`. A bulk write stamps many memories with the SAME instant, so cutting on time alone silently drops the rest of that instant. `count` is the store total, so you can show “142 images” without walking every page.

## Headers

- `X-WOS-Model` string

## Request body

- object
  - `user_id` string, required: The store to operate on. Stores are explicit: create one first or use the built-in "default". Use the id the store was created with: 1-64 ASCII letters, digits, ., _ or -, starting with a letter or digit. Ids that differ only by case name one store.
  - `limit` integer: Per page, 5–20 (default 20). Out of range is refused, not clamped.
  - `before` string: Cursor: `next_before` from the previous page (RFC3339).
  - `skip_ids` string[]: Cursor: `next_skip_ids` from the previous page. Accumulates across pages.

## Response `200`

Success.

- object
  - `user_id` string
  - `images` Memory[]
    - `id` string, uuid
    - `content` string
    - `category` string: Category of the memory, e.g. "general".
    - `similarity` number: How close this memory is to the query (0–1), higher is closer. It is NOT the ranking key — results already arrive best-first, and ordering by this field instead produces a WORSE order, not the same one. Take `memories` in the order given. There is no `score` field.
    - `importance` number: How much weight this memory carries, as the engine assigned it.
    - `time_bucket` string: Month bucket, e.g. "2026-07". Omitted when temporal fields are stripped.
    - `is_superseded` boolean: True if a later memory has superseded this one.
    - `superseded_by` string, nullable: Id of the memory that superseded this one, or null.
    - `created_at` string, date-time: When the memory was stored (RFC3339). Omitted when temporal fields are stripped.
    - `event_date` string, date-time: When the content actually happened (RFC3339), if known.
    - `speaker` string: WHO said it: "me" (the agent itself) or a registered person. Absent = untagged.
  - `count` integer: Image memories in the whole store, not on this page.
  - `has_more` boolean
  - `next_before` string, nullable
  - `next_skip_ids` string[]

## Other responses

- `401`: Missing or invalid API key.
- `404`: Store (user_id) does not exist. Create it first: POST /api/v1/memory/collection.
- `429`: Rate limited (per-account, per-tier RPM). Retry after the indicated delay.
- `501`: The selected model’s engine does not implement this endpoint (Tablet 2 and newer do). The message names the model.

---

[API](https://skmtc.dev/wontopos/apis/wontopos-memory-api.md) · [All operations](https://skmtc.dev/wontopos/apis/wontopos-memory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wontopos/apis/wontopos-memory-api/revisions/48dda7326a33?raw)
