---
title: "Recall"
method: POST
path: "/api/v2/agents/{agent_id}/recall"
tags: ["Sessions & Agents", "Memory Operations"]
---

# Recall

`POST /api/v2/agents/{agent_id}/recall`

## Request

- The document declares no server URL.
- Auth: none declared

Recall memories (Session-based)

Requires:
- X-Session-Token: {session_token}

The session must be for the specified agent_id.

## Path parameters

- `agent_id` string, required

## Headers

- `x-session-token` string, nullable
- `authorization` string, nullable
- `X-Api-Key` string, nullable

## Cookies

- `memanto_session_token` string, nullable

## Request body

- RecallRequest: Request body for semantic memory recall.
  - `query` string, required: Search query
  - `limit` integer, nullable: Max results
  - `status` 'all' | 'active' | 'expired': Lifecycle filter: 'all' (default) returns active and expired memories together so callers can label them, 'active' or 'expired' narrows to one.
  - `min_similarity` number, nullable: Minimum similarity score (0-1)
  - `type` string[], nullable: Memory type filters
  - `tags` string[], nullable: Tag filters
  - `created_after` union: Include only memories created at or after this timestamp. Date-only values (YYYY-MM-DD) use the start of that day.
    - string, date-time
    - string, date
  - `created_before` union: Include only memories created at or before this timestamp. Date-only values (YYYY-MM-DD) use the end of that day.
    - string, date-time
    - string, date
  - `source` string, nullable: Slug of the AI tool making this call (e.g. 'claude-code', 'cursor', 'copilot') for session and connection attribution.

## Response `200`

Successful Response

- RecallResponse
  - `agent_id` string, required
  - `session_id` string, required
  - `query` string, required
  - `memories` MemoryItem[], required
    - `id` string, nullable
    - `title` string
    - `content` string
    - `text` string
    - `type` string, nullable
    - `confidence` number, nullable
    - `status` string, nullable
    - `tags` string[]
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `expired_at` string, nullable
    - `expired_by` string, nullable
    - `actor_id` string, nullable
    - `source` string, nullable
    - `source_ref` string, nullable
    - `agent_id` string, nullable
    - `score` number, nullable
    - `provenance` string
    - `change_type` string, nullable
  - `count` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-28** `20a0f070170b`: 1 info
  - added the new optional request property `source`
- **2026-09-01** `4dbab4daf6d3`: 1 info
  - added the new optional `header` request parameter `authorization`
- **2026-08-20** `7d62b984fff2`: 2 warning, 4 info
  - removed the optional property `memories/items/expires_at` from the response with the `200` status
  - removed the optional property `memories/items/ttl_seconds` from the response with the `200` status
  - added the new optional request property `status`
  - added the optional property `memories/items/expired_at` to the response with the `200` status
  - …2 more
- **2026-07-31** `e0a6984c84a3`: 1 info
  - added the new optional `header` request parameter `X-Api-Key`
- **2026-07-31** `c896819232b5`: 1 warning, 1 info
  - deleted the `header` request parameter `X-Api-Key`
  - added the optional property `memories/items/source_ref` to the response with the `200` status

[Operation history](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/changes/api/v2/agents/:agent_id/recall/post.md)

---

[API](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love.md) - [All operations](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/llms.txt) - [OpenAPI document](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/revisions/ef842776283e?raw)
