---
title: "Re-embed all memories using the current embedding provider"
method: POST
path: "/api/memory/re-embed"
tags: ["Memory"]
---

# Re-embed all memories using the current embedding provider

`POST /api/memory/re-embed`

## Request body

- object
  - `agentId` string, uuid — Re-embed only this agent's memories. Omit for all.
  - `batchSize` integer — Memories per batch

## Response `202`

Re-embedding started

- object
  - `started` boolean, required
  - `totalMemories` number, required

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/e2028c1ef6f5/schema)
