---
title: "POST /api/osi/ai-context/reconcile"
method: POST
path: "/api/osi/ai-context/reconcile"
tags: ["/api/osi/ai-context"]
---

# POST /api/osi/ai-context/reconcile

`POST /api/osi/ai-context/reconcile`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/osi/ai-context/reconcile`
- Auth: API key in header `X-API-Key`

Force a reconcile of the library entity index against the application database, blocking until a
  reconcile covering this call finishes.
  Returns the index mutations (`index`) separately from execution timing (`execution`: how long the run
  waited to start, then how long it ran).
  This call never reuses a reconcile already in progress (it may have started before your latest change);
  it starts one if the index is idle, otherwise it queues a single follow-up that any other waiting calls
  share.
  Requires the library entity-retrieval feature; returns a 400 when the index is unavailable (the feature
  isn't licensed, or the pgvector store or embedding backend isn't configured).

## Response `2XX`

Successful response

- object
  - `execution` object, required
    - `ran_ms` integer, required
    - `waited_ms` integer, required
  - `index` object, required
    - `deleted` integer, required
    - `inserted` integer, required
    - `unchanged` integer, required

## Other responses

- `4XX`: Client error response
- `5XX`: Server error response

## Changes

- **2026-11-04** `2e178f5a7934`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/osi/ai-context/reconcile/post.md)

---

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