---
title: "Run Memory Consolidation"
method: POST
path: "/memory/consolidate"
tags: ["Memory"]
---

# Run Memory Consolidation

`POST /memory/consolidate`

## Request

- Base URL: `https://synchronex.ai/api/v1`
- URL: `https://synchronex.ai/api/v1/memory/consolidate`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://synchronex.ai/oauth/authorize`, token URL `https://synchronex.ai/api/oauth/token`, scopes: `read`)

Runs budgeted async-style consolidation outside the injection path and records duplicate/stale-memory candidates.

## Request body

- object
  - `workspace_id` string, uuid
  - `compute_budget_tokens` integer

## Response `200`

Consolidation completed.

- object
  - `status` string
  - `runId` string, uuid
  - `corpusDeduplicated` integer
  - `staleDecisionsFlagged` integer
  - `redundancyScore` number

## Other responses

- `400`: Validation error. The request body or query string is invalid.
- `401`: Unauthorized. Missing, malformed, expired, or revoked bearer token.
- `403`: Forbidden. The token scope or account tier is insufficient.
- `429`: Rate limit exceeded. Retry after the indicated reset time.
- `500`: Internal server error.

---

[API](https://skmtc.dev/synchronex/apis/synchronex-api.md) · [All operations](https://skmtc.dev/synchronex/apis/synchronex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/synchronex/apis/synchronex-api/revisions/aa1e0df0a8d5?raw)
