Admin

Backfill one coding source in bounded chunks

POST https://api.rewind.rest/v1/admin/sync/coding/backfill

Runs one bounded backfill chunk for the given coding source, walking history backward. Re-run with the returned next_cursor until it is null.

Authorization

Authorizationheaderstringrequired

API key. Read keys (rw_live_...) access GET endpoints. Admin keys (rw_admin_...) access all endpoints.

Body

sourcebodyenum (string)required

Which coding source to backfill.

Allowed valueswakatimerescuetimegithub
cursorbodystring

Opaque resume token from the previous response. Omit to start a fresh backfill.

Response

application/json

Backfill chunk completed

statusenum (string)required
Allowed valuescompleted
items_syncedintegerrequired
next_cursorstringrequired

Resume token for the next chunk, or null when complete.

timestampstringrequired