---
title: "Check GitHub connectors for new commits"
method: POST
path: "/internal/github/reconcile/run"
tags: ["Internal"]
---

# Check GitHub connectors for new commits

`POST /internal/github/reconcile/run`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/internal/github/reconcile/run`
- Auth: HTTP bearer

Checks due GitHub connector targets against their branch heads and queues a resync for each one that moved. Reads due targets in pages and stops when none are due or the run's page or time budget is used; hasMore says due targets are left for the next run. Safe to call while another run is going: each target is claimed by one run. A scheduled caller runs this every few minutes. Answers 404 when DEN_MAINTENANCE_TOKEN is not configured.

## Response `200`

Run finished.

- object
  - `seeded` integer, required
  - `resumed` integer, required
  - `batches` integer, required
  - `claimed` integer, required
  - `probed` integer, required
  - `enqueued` integer, required
  - `skippedSyncing` integer, required
  - `removed` integer, required
  - `hasMore` boolean, required
  - `durationMs` integer, required

## Other responses

- `401`: Missing or wrong maintenance token.
- `404`: Maintenance endpoints are not configured on this deployment.
- `500`: The run failed; targets it claimed are retried once their claim passes.

## Changes

- **2026-12-01** `9e0e1784e377`: 6 warning
  - added the new `invalid_request` enum value to the `error` response property for the response status `401`
  - added the new `invalid_request` enum value to the `error` response property for the response status `404`
  - added the new `invalid_request` enum value to the `error` response property for the response status `500`
  - added the new `prune_failed` enum value to the `error` response property for the response status `401`
  - …2 more
- **2026-11-07** `be73cfed1696`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/internal/github/reconcile/run/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
