---
title: "Run an engram"
method: POST
path: "/api/v1/engram/run"
tags: ["engram"]
---

# Run an engram

`POST /api/v1/engram/run`

## Request

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

Built-in multi-hop retrieval in one call. Call GET /api/v1/engram for the catalog the selected model can run, with a description of each. Available: deep_recall, timeline, equilibrium, tone_stabilizer, gather. Input is billed per engine hop the engram performs, output by what it returns.

## Headers

- `X-WOS-Model` string

## Request body

- object
  - `name` 'deep_recall' | 'timeline' | 'equilibrium' | 'tone_stabilizer' | 'gather', required
  - `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
  - `form` string: Delivery form (model-dependent; see GET /api/v1/engram).
  - `tz` integer: UTC offset hours for time-aware forms.

## Response `200`

Success.

- object
  - `engram` string
  - `form` string
  - `user_id` string
  - `hops` integer
  - `count` integer
  - `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.
  - `usage` Usage
    - `input_tokens` integer
    - `output_tokens` integer

## Other responses

- `400`: Unknown engram name, or the selected model cannot run it.
- `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)
