---
title: "One-call LLM context"
method: POST
path: "/api/v1/memory/recall"
tags: ["memory"]
---

# One-call LLM context

`POST /api/v1/memory/recall`

## Request

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

Short-term turns + long-term matches + surrounding context in one bounded call.

## 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.
  - `query` string, required
  - `limit` integer: Long-term memories to recall. Out of range is refused, not clamped — asking for 20 and silently getting 10 reads as "that is all there is".
  - `context_limit` integer: How much surrounding context is attached around the best match. 0 attaches none.
  - `form` 'memoir' | 'archive': Render each returned memory’s time in this form (Scroll 1.2 and newer; HTTP header equivalent: X-WOS-Form). An unknown form is a 400.
  - `tz` integer: UTC offset in hours, used only while a `form` renders the times.

## Response `200`

Success.

- object
  - `short_term` object
  - `long_term` object
    - `memories` 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
  - `context` object

## 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.

---

[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)
