---
title: "Recalibrate"
method: POST
path: "/api/v1/admin/neural/recalibrate"
tags: ["admin-neural"]
---

# Recalibrate

`POST /api/v1/admin/neural/recalibrate`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/admin/neural/recalibrate`
- Auth: none declared

Enqueue a deduped model-global calibration job.

The ``AdminUser`` dependency rejects non-admins with 403 before this
handler runs. ``model`` is length-bounded and ``dimensions`` is
range-bounded by FastAPI validation. No rate limiting is applied at
this layer — the Redis dedup lock is the single source of truth for
"one job per (model, dims) in flight at a time", and admins can
self-serve retries without hammering the compute.

## Query parameters

- `model` string, required
- `dimensions` integer, required

## Response `202`

Successful Response

- RecalibrateResponse: 202 response body for the admin recalibrate endpoint. Attributes: accepted: ``True`` when the dedup lock was acquired and a calibration task was spawned. ``False`` when a prior job is still in-flight for the same ``(model, dimensions)`` — idempotent; no error raised. model_name: Echo of the requested model. dimensions: Echo of the requested dimensionality.
  - `accepted` boolean, required
  - `model_name` string, required
  - `dimensions` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
