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

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
