---
title: "Indexing Check"
method: POST
path: "/internal/indexing-check"
tags: ["internal"]
---

# Indexing Check

`POST /internal/indexing-check`

Complete the GitHub Check Run for a finished reindex.

Distinct from ``/notify``: that callback only fires for user-initiated
runs (``user_id`` is set). Auto-sync reindexes — the very ones that
create a check — run with ``user_id=None``, so Modal calls this endpoint
unconditionally when a snapshot flips to ``ready`` / ``failed``.

Looks up the snapshot's persisted ``github_check_run_id`` and PATCHes the
run to success/failure. A no-op (no check created for this snapshot, no
install covering the repo, checks disabled) returns ``ok`` silently.
Strictly best-effort — a failure here must never break indexing.

## Headers

- `x-service-token` string, required

## Request body

- IndexingCheckRequest
  - `snapshot_id` string, required
  - `success` boolean, required
  - `file_count` integer, nullable
  - `error_message` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/repowise/repowise-hosted-api/revisions/1e57283a9737/schema)
