> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memoryo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Service correction review

> An explicit administrator preview and decision for eligible pending service-event candidates.

This operator workflow is separate from source-review cards and typed preference review. It requires an active **tenant-admin API key** and an eligible registered-service candidate. Ordinary application read/write keys and public MCP bearer access are not substitutes.

Keep this workflow in your authorized operator service. Ordinary application clients should request an operator decision rather than receive an administrator key.

## 1. Discover eligible candidates

```http theme={null}
GET /v1/memories/service-corrections?external_user_id=synthetic-customer-123&limit=20
Authorization: ApiKey <operator key>
```

The envelope contains `data` and an optional `next_cursor`. Use the returned candidate ID. Not every pending candidate belongs to this operator workflow.

## 2. Preview the explicit target

```http theme={null}
GET /v1/memories/service-corrections/{candidate_id}?external_user_id=synthetic-customer-123&target_memory_id={target_id}
Authorization: ApiKey <operator key>
```

Choose the intended target through authorized inspection, not similarity, order or a model's guess. The preview supplies candidate/target content, scope, source identity, incoming/target priorities, `target_version`, `review_version`, `actions` and `apply_blockers`.

Inspect that preview before deciding. It reflects current writer rules; a version is an opaque current-state binding, not a permanent approval.

## 3. Apply or decline

```http theme={null}
POST /v1/memories/service-corrections/{candidate_id}/decision
Authorization: ApiKey <operator key>
Content-Type: application/json
```

```json theme={null}
{
  "external_user_id": "synthetic-customer-123",
  "target_memory_id": "<UUID from the preview>",
  "target_version": "<opaque token from the preview>",
  "review_version": "<opaque token from the same preview>",
  "action": "apply"
}
```

Use `apply` only if offered and the operator actually intends that transition; `decline` is the alternative. Changed permissions, policy, candidate or target can invalidate a decision. Preserve the refusal and fetch a new preview; do not drop bindings or silently retarget.

An applied result returns candidate status, memory/claim/winning-revision IDs, `replayed` and `indexing_state`. `indexing_state: "pending"` means vector publication is subsequent, not already complete. Verify current retrieval and provenance after publication. A replay returns the original decision result rather than authorizing another mutation.

This reference describes existing backend behavior. The published SDK references do not promise dedicated operator convenience methods; use an authorized native HTTP client or the repository's local-beta operator example. Apply can use embeddings; obtain provider authorization first.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.